env

Manage environment variables for an app. Changes take effect on the next deployment — they are not injected into a running deployment automatically.

slasha env list

Print all environment variables currently set for an app.

slasha env --app my-api list

slasha env set

Set one or more environment variables. Pass each variable as a KEY=VALUE pair. Multiple pairs can be set in one command.

slasha env --app my-api set DATABASE_URL=postgres://... SECRET_KEY=abc123

# values that contain spaces must be quoted
slasha env --app my-api set GREETING="hello world"

slasha env unset

Remove one or more environment variables by key.

slasha env --app my-api unset SECRET_KEY

# remove multiple at once
slasha env --app my-api unset KEY1 KEY2 KEY3

For all three subcommands, --app <SLUG> can be omitted if a slasha.toml is present in the current directory.