Problem when I try to put several variables in my --vars

Hello,
I can’t seem to use multiple values in my --vars using vars like this :

–vars ‘{“\”suffix“”:“\”$(date +%Y_%m_%d)\“”,“\”suffix2\“”:“\”$(date +%Y_%m_%d)\“”}’

I get this error:
18:11:47 The YAML provided in the --vars argument is not valid.
Usage: dbt test [OPTIONS]
Try ‘dbt test -h’ for help.

Error: Invalid value for ‘–vars’: String ‘“suffix”: “2025_01_27”’ is not valid YAML

But it works when I try to do with 1 variable:
‘{“\”suffix\“”:“\”$(date +%Y_%m_%d)\“”}’

Can you please help me?

try

--vars "{suffix: '$(date +%Y_%m_%d)', suffix2:'$(date +%Y_%m_%d)'}"

Note: @mares originally posted this reply in Slack. It might not have transferred perfectly.