CLI
Manage project secrets stored in the system keychain.
secrets create
Create a new secret. If no source flag is provided, you will be prompted interactively.
| Flag | Type | Default | Description |
|---|---|---|---|
| --from-env | string | Name of the environment variable to read the secret from | |
| --from-file | string | Path to a file to read the secret from | |
| --project | string | Project ID |
Secrets are stored in the system keychain and are scoped per project.
strait secrets create MY_SECRET --project my-project --from-env LOCAL_VARsecrets list
List secrets for a project.
| Flag | Type | Default | Description |
|---|---|---|---|
| --project | string | Project ID |
strait secrets list --project my-projectsecrets delete
Delete a secret by name.
| Flag | Type | Default | Description |
|---|---|---|---|
| --project | string | Project ID |
strait secrets delete MY_SECRET --project my-projectSecret injection into jobs requires the SECRET_ENCRYPTION_KEY environment variable to be set.
Was this page helpful?