Secrets
Command
Section titled “Command”layer secret set NAME [options]layer secret rotate [project] [options]Options
Section titled “Options”| Option | Value | Notes |
|---|---|---|
--value | <value> | Secret value. |
--value-env | <name> | Read the secret value from an environment variable. |
--from-stdin | Read the secret value from stdin. | |
--env | <name> | Environment name for rotation checks. |
--apply | Write due generated Secret rotations to Cloudflare. | |
--yes, -y | Confirm non-interactive rotation apply. | |
-h, --help | Show help. |
Value Sources
Section titled “Value Sources”Cloudflare Secrets Store
Section titled “Cloudflare Secrets Store”Examples
Section titled “Examples”Check due generated Secret rotations:
layer secret rotate --env productionWrite due rotations:
layer secret rotate --env production --apply --yesUse the apply command in cron when local direct deploys should rotate generated Secret values on a schedule.