milesoft key

Retrieve and manage API key nonces for the authenticated session.

milesoft key create

Create a new key nonce for a specified set of roles. This nonce can be given to a developer, who may use it to create a Personal Access Token (PAT).

  • Usage: milesoft key create --roles <role-1>,<role-2> [flags]
  • Flags:
    • --roles stringSlice (Required): Roles associated with the new key nonce. You can specify multiple roles as a comma-separated list or pass the --roles flag multiple times.
Examples
Terminal TTY Output (Default)
$ milesoft key create --roles ROLE_OPS,ROLE_GUEST
=========================================================================
             Created Key Nonce
=========================================================================
Nonce:         test-nonce-abc-123
=========================================================================
Automated JSON Output (via Pipe, Redirect, or --json)
$ milesoft key create --roles ROLE_OPS,ROLE_GUEST --json

JSON Schema Result:

{
  "nonce": "test-nonce-abc-123"
}