# YAML variables aren't interpolated in \`cmd\` values

**URL:** https://community.codefresh.io/t/yaml-variables-arent-interpolated-in-cmd-values/866
**Category:** Pipeline Workflows
**Created:** [January 9, 2023, 6:29pm UTC](https://community.codefresh.io/t/yaml-variables-arent-interpolated-in-cmd-values/866 "2023-01-09T18:29:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![JoshuaCWebDeveloper](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/joshuacwebdeveloper/32/572_2.png) [@JoshuaCWebDeveloper](https://community.codefresh.io/u/JoshuaCWebDeveloper)
#### Post date: [January 9, 2023, 6:29pm UTC](https://community.codefresh.io/t/yaml-variables-arent-interpolated-in-cmd-values/866/1 "2023-01-09T18:29:46Z")

</div>

In my pipeline yaml file, when I use a variable (i.e. `${{myVar}}`) in the `cmd` property of a freestyle step, it is not interpolated. Rather, my entrypoint receives the string literal `"${{myVar}}"`. If `myVar` was equal to the string literal `"hello"`, I would expect my entrypoint to simply receive the string literal `"hello"`.

---

<div class="post-metadata">

### Author: ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)
#### Post date: [January 11, 2023, 9:44am UTC](https://community.codefresh.io/t/yaml-variables-arent-interpolated-in-cmd-values/866/2 "2023-01-11T09:44:11Z")

</div>

Hello

Yes, this is correct. This is how it should work. Variables with double brackets will be expanded in all parts of the pipeline.

It is hard to diagnose this unless we look at your pipeline. Please open a ticket with support so that our team can investigate. Please include the URL of the build that has the issue.

Kostis
