Skip to main content

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​

--skip-redeploy
save without redeploying; it is delivered with the next deploy
--trim
also remove spaces and line breaks around each value

-y, --yes

don't ask before changing the values

Inherited​

--config <string>
config file (default is $HOME/.config/computesphere/configuration.yaml)
--debug
enable debug logging

-h, --help

show this help message

-i, --interactive

run interactively (prompts, pickers, table browser)
--log-level <string>
log level: [trace|debug|info|warn|error|fatal|panic|disabled||api]
--no-color
disable color output
--no-input
disable interactive mode

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​