Skip to main content

axm token create

Create a granular access token

axm token create <name> [flags]
NameTypeRequiredDefaultDescription
<name>stringYesName for the new token, shown by axm token list
NameTypeRequiredDefaultDescription
--registrystringNoRegistry name or absolute URL; defaults to axm.json defaultRegistry
--plainbooleanNofalseWrite only the secret to stdout; required when stdout is not a terminal
--expiresstringNo30dToken lifetime, such as 7d, 30d, 1y, or an ISO timestamp; subject to permission limits
--owner@handleNoGrant access to this owner's extensions; omit with --extension for full reach
--extensionstringNoExtension selector in @handle/<type>/<name> form
--permissionchoice (read, publish, admin)YesMaximum permission for this token, within your account's authority

Create a publish token scoped to @foo and show it once

axm token create ci --owner @foo --permission publish

Write only the new token to stdout for a pipe

axm token create ci --extension @foo/skills/review --permission publish --plain