Skip to content

Configuration

Cloud configuration is scoped to a project and stage. Set values separately for each stage, such as Development and Production, using pfcli. Use the same key names that your organisation or plugins read.

Sign in with pfcli, then provide the project number, stage name, and a key and value. Replace the example project number and values with your own:

Terminal window
pfcli config set --project 0000-0000-0002 --stage Development SUPPORT_EMAIL=support@example.com
pfcli config set --project 0000-0000-0002 --stage Production SUPPORT_EMAIL=help@example.com

Running config set again for the same key updates its value in that stage. You can also pass the key and value as separate arguments, quoting values that contain spaces:

Terminal window
pfcli config set --project 0000-0000-0002 --stage Production NOTIFICATION_SENDER_NAME "Example School"

Use --secret for credentials such as API keys and client secrets. To avoid exposing a secret in command arguments, follow the pfcli guidance for secrets. Keep secret values out of source code, shell history, and logs.

List a stage’s configuration or retrieve an entry by key:

Terminal window
pfcli config list --project 0000-0000-0002 --stage Development
pfcli config get --project 0000-0000-0002 --stage Development SUPPORT_EMAIL

Secret values are masked in both config list and config get; you cannot retrieve the original value with these commands. To replace a secret, run config set --secret again with the new value.

Remove an entry when it is no longer needed:

Terminal window
pfcli config delete --project 0000-0000-0002 --stage Development SUPPORT_EMAIL

For how to read these keys in your organisation, including required values and defaults, see Configuration.