I’m trying to start a service with environment variables, but it doesn’t seem like the environment variables are being passed to the command:
sprite-env services create testing --cmd bash --args -c,'echo hello$XX' --env 'XX=world'
{"type":"started","timestamp":1770090537573}
{"type":"stdout","data":"hello\n","timestamp":1770090537577}
The expected output from the command above would be “helloworld” but it doesn’t expand the $XX environment variable.
Here is what sprite-env services list outputs, no sign of env variables here:
{"name":"testing","cmd":"bash","args":["-c","echo hello$XX"],"needs":[],"state":{"name":"testing","status":"stopped","started_at":"2026-02-03T03:53:04.015495107Z","next_restart_at":"0001-01-01T00:00:00Z"}}