Skip to content

JWT

npx @telia-ace/alliance-cli jwt [options]

Utility command that creates and outputs an Alliance JWT to use during development.

Arguments

FlagAliasDefaultDescription
--help-hN/ADisplay command information.
--debug-dfalseTo 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