JWT
npx @telia-ace/alliance-cli jwt [options]
Utility command that creates and outputs an Alliance JWT to use during development.
Arguments
Flag | Alias | Default | Description |
---|---|---|---|
--help | -h | N/A | Display command information. |
--debug | -d | false | To display debug information or not. |
--app | -a | 'the-app' | Token app slug. |
--workspace | -w | 'The Workspace' | Token workspace name. |
--expiration | -e | '1d' | Token expiration time compatible with https://npmjs.com/package/ms. |
--user.name | 'John Doe' | Token user name. | |
--user.type | 'user' | Token user type. | |
--user.email | 'john.doe@mail.com' | Token user email. | |
--user.permission | -p | [] | Token user permission(s). |
--user.sub | -s | '2ccaa1b2-5e34-4dd7-bb47-28435e973969' | Token user object id. |
Example
sh
npx @telia-ace/alliance-cli jwt --debug --user.name John Doe --user.type user --user.email john.doe@mail.com --user.permission one --user.permission two --user.sub c5ec9c7b-9ae6-40ad-9308-0ffc0bf5fcea --workspace The Workspace --app the-app --expiration 10d