Skip to main content

Secret Commands

The kdx secret command manages organization secrets used by platform resources such as Activity steps, modules, and service bridge integrations. Secret values are write-only. The CLI can list secret names, set values securely, and delete names, but it never reads secret values back from the platform.

Available Commands

List Secrets

Example:
Output:
Only names are returned. Values are never printed.

Set a Secret

By default, the CLI prompts for the value with no terminal echo.
For non-interactive workflows, pass exactly one value source. Examples:
Output:
The byte count confirms that a value was sent without showing the value itself.

Delete a Secret

Example:
Deleting a name that does not exist is not treated as an error by the command. Use stable names that describe the external system and purpose:
Keep environment-specific values in environment-specific organizations or sync targets. Do not commit secret values to metadata repositories. For CI/CD, store the value in the CI secret store and pass it with --from-env.

Troubleshooting