axm token create
Create a granular access token
Usage
Section titled Usageaxm token create <name> [flags]Arguments
Section titled Arguments| Name | Type | Required | Default | Description |
|---|---|---|---|---|
<name> | string | Yes | Name for the new token, shown by axm token list |
Flags
Section titled Flags| Name | Type | Required | Default | Description |
|---|---|---|---|---|
--registry | string | No | Registry name or absolute URL; defaults to axm.json defaultRegistry | |
--plain | boolean | No | false | Write only the secret to stdout; required when stdout is not a terminal |
--expires | string | No | 30d | Token lifetime, such as 7d, 30d, 1y, or an ISO timestamp; subject to permission limits |
--owner | @handle | No | Grant access to this owner's extensions; omit with --extension for full reach | |
--extension | string | No | Extension selector in @handle/<type>/<name> form | |
--permission | choice (read, publish, admin) | Yes | Maximum permission for this token, within your account's authority |
Examples
Section titled ExamplesCreate a publish token scoped to @foo and show it once
axm token create ci --owner @foo --permission publishWrite only the new token to stdout for a pipe
axm token create ci --extension @foo/skills/review --permission publish --plain