@montte/cli/auth

Store and retrieve Montte CLI API credentials with environment variable authentication.

6|4|Updated Nov 1, 2025
One-click install
npx skills add https://github.com/Montte-erp/montte-nx --skill montte-cli-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: @montte/cli/auth
Source: https://github.com/Montte-erp/montte-nx/tree/main/libraries/cli/skills/auth
Command: npx skills add https://github.com/Montte-erp/montte-nx --skill montte-cli-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates CLI authentication workflows by securely managing API keys, session state, and environment variable overrides to prevent repeated login prompts.

Core Features & Use Cases

  • Login/Logout: Persist API keys locally and clear them securely.
  • Whoami: Reveal the active identity and any host overrides.
  • Env Var Auth: Support API key via MONTTE_API_KEY for CI/CD pipelines.

Quick Start

Login to the CLI by running montte login --key <your-api-key>.

Frequently Asked Questions about @montte/cli/auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authenticate CLI commands using an API key for CI/CD pipelines?

Authenticate CLI commands in CI/CD pipelines by setting the MONTTE_API_KEY environment variable, which enables seamless authentication for automated workflows without repeated login prompts.

How does the whoami command work for verifying active CLI login sessions?

The whoami command reveals the active identity and any host overrides applied, allowing you to verify the currently authenticated user for your CLI session.

Can I override the default API host when authenticating the CLI?

Yes, you can override the default API host during CLI authentication by setting the MONTTE_HOST environment variable to specify a custom target endpoint.

What is the best way to persist API credentials locally for CLI usage?

Persist API credentials locally by running the login command with your API key, which securely stores the authentication state to prevent repeated login prompts during development workflows.

Does CLI authentication support both local development and CI/CD environments?

Yes, CLI authentication supports local development through persistent login and CI/CD environments via the MONTTE_API_KEY environment variable, ensuring seamless authentication across workflows.

Why does my CLI session keep prompting for login despite having credentials?

Repeated login prompts occur when API keys are not persisted locally or the MONTTE_API_KEY environment variable is not set, preventing the CLI from retrieving valid authentication credentials.