Personal Access Tokens (PATs) are long-lived credentials that let scripts, CI/CD pipelines, and automation tools authenticate to the Mikrom platform without requiring an interactive username and password login. Instead of callingDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/mikronita/mikrom/llms.txt
Use this file to discover all available pages before exploring further.
mikrom auth login in an automated environment, you generate a PAT once, store it securely, and configure the CLI to use it. PATs are scoped to the project that was active when the token was created, so they only grant access to resources within that project.
PATs are scoped to the active project at the time of creation. If you need to automate operations across multiple projects, create a separate PAT in each project after switching context with
mikrom project switch.mikrom pat list
List all Personal Access Tokens associated with the current project. The token value itself is never shown after creation — only the token ID, name, and creation date are displayed.mikrom pat create
Create a new Personal Access Token with a descriptive name. The full token value is printed once immediately after creation and cannot be retrieved again.A human-readable label that identifies where or how this token is used (e.g.
github-actions, deploy-script).Using a PAT to authenticate the CLI
Instead of runningmikrom auth login, configure the CLI to use a PAT by setting it as the API token in the configuration:
mikrom commands:
mikrom pat revoke
Revoke a Personal Access Token by its ID. Once revoked, any automation using that token will immediately lose access to the platform. Prompts for confirmation unless--yes is supplied.
The ID of the token to revoke, as shown in
mikrom pat list.Skip the interactive confirmation prompt.
Recommended Automation Workflow
Switch to the target project
Save the token in your secrets manager
Copy the printed token value and store it as a secret (e.g.
MIKROM_PAT in GitHub Actions repository secrets).