csph deployments env unquote
remove the quotes (and with --trim the spaces) around a deployment's setting values
✂️ Remove the quotes around a deployment's setting values.
A value saved with quotes around it ("value" or 'value') gets the quotes too:
your app reads them as part of the value, and a connection string or a key
no longer works. csph deployments env list shows which settings look like
this in its check column.
With no names, every setting wrapped in quotes is changed. With names, only those. --trim also removes spaces and line breaks around each value.
It shows the names it will change and asks first; pass --yes in a script. A secret read from a secret manager is never changed here: fix it in the secret manager. Values are never printed.
Usage
csph deployments env unquote <deployment-id> [NAME...] [flags]
Options
Command Specific
Inherited
Examples
# remove the quotes from every setting wrapped in quotes
> csph deployments env unquote <deployment-id>
# only MONGO_URI, and the spaces around it too
> csph deployments env unquote <deployment-id> MONGO_URI --trim
# in a script: no prompt, and no redeploy yet
> csph deployments env unquote <deployment-id> --yes --skip-redeploy
See also
- csph deployments env — list the setting names a deployment gets
- csph deployments env list — list a deployment's setting names, secret or plain, and where each is set