CLI reference/Rotation, leases and syncs/tokens
clavis tokens rotate
Replace a connection's credential (or rename it / change its URL)
sh
clavis tokens rotate ID [flags]Replace a connection's credential, or rename it or change its URL. Every sync that uses it picks up the new value.
Examples
sh
clavis tokens rotate 123e4567 --token -
clavis tokens rotate 123e4567 --name "Forgejo (main)"Flags
--aws-access-key string- AWS access key ID
--aws-secret-key string- AWS secret access key
--aws-session-token string- AWS session token
--gcp-service-account-json string- GCP service account JSON or @file
--github-app-id string- GitHub App ID
--github-installation-id string- GitHub App installation ID
--github-private-key string- GitHub App private key PEM or @file
--name string- new name
--token string- access token (Forgejo, GitHub, GitLab, Vercel, Netlify, Cloudflare, Vault); - reads stdin
--url string- new instance or API URL
Global flags
These work with every command.
--debug- enable debug logging
--env string- environment slug
--json- output machine-readable JSON
--org string- organization slug
--overlay string- tenant/region overlay slug
--path string- folder path (default /)
--project string- project slug
--server string- Clavis server URL (default: from .clavis.yaml or saved login)
-h, --help- help for any command