dcloud secrets environments promote-manyPromote many secrets into one environment; `dryRun` returns the plan first
Each item gets a `plan`: create, update, unchanged, not-compared (no secrets:CompareSecretValues), needs-reference (synced: confirm `suggestedReference` and send it as the item’s `reference`) or blocked (`error`). Run the dry run, then the same items without `dryRun`. Per item, not atomic.
Synopsis
dcloud secrets environments promote-many --to-environment-id toEnvironmentId --items items [flags]Flags
--to-environment-idRequiredstring
The environment every item is promoted into, or null for Default. An item already in it is blocked; an unknown id blocks every item with 404.
May be null.
--itemsRequiredarray of json
The secrets to promote, 1 to 500, each { secretId, reference? }. Promoted one at a time in this order; each is authorized and answered on its own.
--dry-runOptionalboolean (--dry-run / --no-dry-run)
true: answer with each item’s plan and write nothing (only value comparisons are made, each audited). Omitted or false: promote.
Example
dcloud secrets environments promote-many --to-environment-id example --items '["example"]'Generated from the API description, the same one the API checks requests against and the CLI is built from.