Files
summercms/modules/bonfire/testdata/help_token_create.golden
Jakub Zych 7b58ad5fa5 test(bonfire): goldens for list, help and errors
- list, list --all, list --format=json and an --ansi styled list (D-13, D-16)
- admin:token:create help and a passthrough help; help <cmd> equals --help (D-14)
- error blocks: hint with {bin}, unknown command, -v chain on stderr (D-18)
- CheckDocs gaps in order and sorted; the version header and BuildVersion
- goldens render with color detection cleared; -update rewrites them
2026-10-21 19:22:00 +02:00

34 lines
1.1 KiB
Plaintext

Description:
Create a personal API token for a backend admin
Usage:
admin:token:create <login> [options]
Arguments:
login The admin's login
Options:
--scopes=SCOPES Comma-separated scopes [default: "*"]
--expires=EXPIRES Days until expiry [default: 90]
--json Print the token as JSON
-t, --tag=TAG A tag for the token (multiple values allowed)
Global options:
-h, --help Display help for the given command
-q, --quiet Do not output any message
-v|vv|vvv Increase verbosity
--ansi|no-ansi Force (or disable) ANSI output
-n, --no-interaction Do not ask any interactive question
--env The environment the command runs under
Help:
Creates a token for the admin with the given login and prints it once.
Store it in the client right away; it cannot be shown again.
Examples:
# Token for the MCP server, journal only
bin/acme admin:token:create jane --scopes=journal.*
# Script-friendly output
bin/acme admin:token:create jane --json