diff --git a/installation.mdx b/installation.mdx index 68eca503e..b74227eaa 100644 --- a/installation.mdx +++ b/installation.mdx @@ -1,7 +1,7 @@ --- title: "Install the CLI" description: "Install the Mintlify CLI to preview documentation locally, test changes in real time, and catch build errors before deploying to production." -keywords: ["CLI", "npm", "local development", "Node.js", "pnpm", "mint dev", "broken links", "accessibility"] +keywords: ["CLI", "npm", "local development", "Node.js", "pnpm", "mint dev", "broken links", "accessibility", "mint login", "mint logout", "mint status", "authentication"] --- +## Authentication + +Authenticate with your Mintlify account to use CLI features that require access to your project, such as analytics. + +### Log in + +```bash +mint login +``` + +This command opens your browser to authenticate with Mintlify. After you authorize in the browser, the CLI receives your credentials automatically. If the browser doesn't open, the CLI displays a URL you can copy and a prompt where you can paste the authorization code manually. + +### Check authentication status + +View the account and organization associated with your current session: + +```bash +mint status +``` + +### Log out + +Remove your stored credentials: + +```bash +mint logout +``` + ## Additional commands ### Find broken links