Skip to content

Rotate an Automation Secret

Issue a new automation secret when the old one should no longer be trusted, then replace it everywhere the old secret was used.

Best for Workspace manager Updated April 3, 2026
CLI In this interface
4 steps Steps
3 interfaces Available in
Use this path when

The CLI rotate command can also store the new secret as the active token when the next step stays in the terminal.

What you'll finish here
  • Rotate intentionally.
  • Copy the new secret immediately.
  • Replace the old secret everywhere.

Where this happens

LabelValueNotes
Command./backlog.sh admin automations rotate <automationId> [options]Rotates the automation secret.

Same Task, Other Interfaces

Use the version that matches where you are working now. The subject matter stays the same; the delivery changes by surface.

Do the work

  1. 1. Run the rotate command with the automation id.
  2. 2. Add `--credential-label` if the new secret should have a specific label.
  3. 3. Add `--use` when the CLI profile should immediately switch to the new secret.
  4. 4. Replace the old secret in every external system that still holds it.

Keep Going in Automation and Agents

Stay in the same interface and move to the next closest task in this topic when needed.

Nearby Guides

These guides stay close to the current workflow so you can keep moving without restarting discovery.