CLI reference/Rotation, leases and syncs
clavis tokens
Manage org-wide platform tokens that syncs share
sh
clavis tokens <command>Also available as connections.
A connection stores one provider credential for the whole organization: a Forgejo, GitHub, GitLab, or Fly.io token, AWS keys, a service account. Syncs created with --connection reuse it, so you paste a token once and rotating it updates every sync that uses it. Credentials are never shown again.
Commands
clavis tokens createSave a provider credential for the organizationclavis tokens lsList connections (credentials are never shown)clavis tokens rmDelete a connection that no sync usesclavis tokens rotateReplace a connection's credential (or rename it / change its URL)clavis tokens testCheck that a connection works for the syncs that use itExamples
sh
clavis tokens create "Home Forgejo" --provider forgejo --url https://git.example.com --token -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