Secret Commands
Thekdx 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
| Command | Description |
|---|---|
list | List secret names in an organization |
set | Create or update a secret value |
delete | Delete a secret name |
List Secrets
Set a Secret
| Flag | Description |
|---|---|
--from-file <path> | Read the value from a file and trim a single trailing newline |
--from-env <name> | Read the value from an environment variable |
--from-stdin | Read the value from standard input |
Delete a Secret
Recommended Patterns
Use stable names that describe the external system and purpose:--from-env.
Troubleshooting
| Symptom | What to check |
|---|---|
organization not found | Confirm the organization slug and active profile. |
environment variable is not set | Confirm the variable exists in the current shell or CI job. |
stdin is not a terminal | In non-interactive mode, pass --from-file, --from-env, or --from-stdin. |
| Secret appears to be missing at runtime | Confirm the Activity step or service bridge references the exact secret name. |
