If a command returns 401, check lim-beta auth whoami first. If it returns a user, then the next
thing to verify is the active company.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"lim","colors":{"primary":"#18181B","light":"#F4F4F5","dark":"#18181B"},"logo":{"light":"https://mintcdn.com/ship-81dac153/mOROYUi8HgK4gxX2/images/logo-light.svg?fit=max\u0026auto=format\u0026n=mOROYUi8HgK4gxX2\u0026q=85\u0026s=5cbee52fbb53f79b9c10eddcf5863726","dark":"https://mintcdn.com/ship-81dac153/mOROYUi8HgK4gxX2/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=mOROYUi8HgK4gxX2\u0026q=85\u0026s=46d582a37762e2c7bff74aca9107a0e3"},"favicon":"/images/favicon.svg","navbar":{"primary":{"type":"button","label":"Get Started","href":"https://app.uselim.com"}},"footer":{},"seo":{"metatags":{"canonical":"https://docs.uselim.com"}},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":"introduction"},{"language":"ja","href":"ja/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ship-81dac153","hasAudioNarration":false,"actualSubdomain":"ship-81dac153","customDomains":["docs.uselim.com"],"gitSource":{"type":"github","owner":"ship-hq","repo":"lim","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae940148e17361c5bf925f3:success","clientVersion":"0.0.4227","searchFilterCounts":[{"language":"en","tag":"Guides","count":34},{"language":"ja","tag":"ガイド","count":34},{"language":"en","tag":"CLI","count":17},{"language":"ja","tag":"CLI","count":17},{"language":"en","tag":"CLI Basics","count":9},{"language":"ja","tag":"CLI 基本","count":9},{"language":"en","tag":"AI Agents","count":8},{"language":"en","tag":"Money In \u0026 Money Out","count":4},{"language":"en","tag":"Operations \u0026 Compliance","count":4},{"language":"en","tag":"Concepts","count":4},{"language":"ja","tag":"AI Agent","count":4},{"language":"ja","tag":"AI Agent連携","count":4},{"language":"ja","tag":"入出金と書類","count":4},{"language":"ja","tag":"運用と内部統制","count":4},{"language":"ja","tag":"コンセプト","count":4},{"language":"en","tag":"Getting Started","count":2},{"language":"ja","tag":"はじめに","count":2},{"language":"en","tag":"API","count":1},{"language":"en","tag":"API Reference","count":1},{"language":"ja","tag":"API","count":1}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"cli/auth-and-diagnostics","slug":"/cli/auth-and-diagnostics","pageMetadata":{"title":"auth, doctor, and env","sidebarTitle":"auth \u0026 diagnostics","description":"Authenticate the CLI, inspect the active environment, and verify staging or production connectivity.","href":"/cli/auth-and-diagnostics"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Authenticate the CLI, inspect the active environment, and verify staging or production connectivity.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`auth-doctor-and-env`,children:`auth, doctor, and env`}),`\n`,_jsx(_components.p,{children:`Use these commands first on a fresh machine or when switching between production and the private beta.`}),`\n`,_jsx(Heading,{level:`2`,id:`auth`,children:`auth`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`lim`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`lim`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` whoami`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`lim`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` logout`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`For staging validation with the private package:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`lim-beta`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`lim-beta`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` whoami`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`auth login`}),` opens the browser, completes WorkOS sign-in, and stores a local CLI token.`]}),`\n`,_jsx(Heading,{level:`2`,id:`doctor`,children:`doctor`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`lim`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` doctor`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`lim-beta`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` doctor`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`doctor`}),` prints:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`effective API URL`}),`\n`,_jsx(_components.li,{children:`effective web URL`}),`\n`,_jsx(_components.li,{children:`active channel`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`healthz`}),` reachability`]}),`\n`,_jsx(_components.li,{children:`local Node.js version`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Use it before filing issues. It is the fastest way to verify whether a problem is local config, auth, or API reachability.`}),`\n`,_jsx(Heading,{level:`2`,id:`env`,children:`env`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`lim`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` env`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`lim-beta`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` env`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`env`}),` shows both the config-file values and the effective values after environment-variable overrides.`]}),`\n`,_jsx(Heading,{level:`2`,id:`common-staging-workflow`,children:`Common staging workflow`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`lim-beta`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` doctor`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`lim-beta`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` env`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`lim-beta`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`lim-beta`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` auth`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` whoami`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`environment-variables`,children:`Environment variables`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`LIM_API_URL`})}),_jsx(_components.td,{children:`Override the API origin`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`LIM_WEB_URL`})}),_jsx(_components.td,{children:`Override the web origin`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`LIM_CHANNEL`})}),_jsxs(_components.td,{children:[`Force `,_jsx(_components.code,{children:`beta`}),` or `,_jsx(_components.code,{children:`production`})]})]})]})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`If a command returns `,_jsx(_components.code,{children:`401`}),`, check `,_jsx(_components.code,{children:`lim-beta auth whoami`}),` first. If it returns a user, then the next\nthing to verify is the active company.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"auth, doctor, and env","sidebarTitle":"auth \u0026 diagnostics","description":"Authenticate the CLI, inspect the active environment, and verify staging or production connectivity.","href":"/cli/auth-and-diagnostics"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"auth, doctor, and env","slug":"auth-doctor-and-env","depth":1,"children":[]},{"title":"auth","slug":"auth","depth":2,"children":[]},{"title":"doctor","slug":"doctor","depth":2,"children":[]},{"title":"env","slug":"env","depth":2,"children":[]},{"title":"Common staging workflow","slug":"common-staging-workflow","depth":2,"children":[]},{"title":"Environment variables","slug":"environment-variables","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"ship-81dac153","siteName":"lim","title":"auth, doctor, and env - lim","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/cli/auth-and-diagnostics","matchLevel":0},"ja":{"href":"/ja/cli/auth-and-diagnostics","matchLevel":1}}},"lastModified":"2026-03-22T13:07:38.558Z","originalFileLocation":"cli/auth-and-diagnostics.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Authenticate the CLI, inspect the active environment, and verify staging or production connectivity.\">\u003cmeta data-mint-head name=\"application-name\" content=\"lim\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ship-81dac153/ocalmLxiSejS9oPG/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/ship-81dac153/ocalmLxiSejS9oPG/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ship-81dac153/ocalmLxiSejS9oPG/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ship-81dac153/ocalmLxiSejS9oPG/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ship-81dac153/ocalmLxiSejS9oPG/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ship-81dac153/ocalmLxiSejS9oPG/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ship-81dac153/ocalmLxiSejS9oPG/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ship-81dac153/ocalmLxiSejS9oPG/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ship-81dac153/ocalmLxiSejS9oPG/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"auth, doctor, and env - lim\">\u003cmeta data-mint-head property=\"og:description\" content=\"Authenticate the CLI, inspect the active environment, and verify staging or production connectivity.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"lim\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.uselim.com/cli/auth-and-diagnostics\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ship-81dac153.mintlify.site/_mintlify/api/og/v2?division=CLI+Basics\u0026amp;title=auth%2C+doctor%2C+and+env\u0026amp;description=Authenticate+the+CLI%2C+inspect+the+active+environment%2C+and+verify+staging+or+production+connectivity.\u0026amp;theme=c8bcb6cabcf1745c835da490\u0026amp;signature=1e490a6bc95932ef2c5dafa80c701b718dd7e9d7ce5966bc89ba090f3fb09d22\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"auth, doctor, and env - lim\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Authenticate the CLI, inspect the active environment, and verify staging or production connectivity.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ship-81dac153.mintlify.site/_mintlify/api/og/v2?division=CLI+Basics\u0026amp;title=auth%2C+doctor%2C+and+env\u0026amp;description=Authenticate+the+CLI%2C+inspect+the+active+environment%2C+and+verify+staging+or+production+connectivity.\u0026amp;theme=c8bcb6cabcf1745c835da490\u0026amp;signature=1e490a6bc95932ef2c5dafa80c701b718dd7e9d7ce5966bc89ba090f3fb09d22\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ship-81dac153/ocalmLxiSejS9oPG/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"lim\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#18181B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.uselim.com/cli/auth-and-diagnostics\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cli/auth-and-diagnostics.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.uselim.com/cli/auth-and-diagnostics\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.uselim.com/ja/cli/auth-and-diagnostics\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.uselim.com/cli/auth-and-diagnostics\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.uselim.com/#organization\",\"name\":\"lim\",\"url\":\"https://docs.uselim.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ship-81dac153/mOROYUi8HgK4gxX2/images/logo-light.svg?fit=max\u0026auto=format\u0026n=mOROYUi8HgK4gxX2\u0026q=85\u0026s=5cbee52fbb53f79b9c10eddcf5863726\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.uselim.com#website\",\"name\":\"lim\",\"url\":\"https://docs.uselim.com\",\"publisher\":{\"@id\":\"https://docs.uselim.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.uselim.com/cli/auth-and-diagnostics#webpage\",\"url\":\"https://docs.uselim.com/cli/auth-and-diagnostics\",\"name\":\"auth, doctor, and env\",\"description\":\"Authenticate the CLI, inspect the active environment, and verify staging or production connectivity.\",\"dateModified\":\"2026-03-22T13:07:38.558Z\",\"isPartOf\":{\"@id\":\"https://docs.uselim.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.uselim.com/cli/auth-and-diagnostics#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.uselim.com/cli/auth-and-diagnostics#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"CLI Basics\",\"item\":\"https://docs.uselim.com/cli/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"auth, doctor, and env\",\"item\":\"https://docs.uselim.com/cli/auth-and-diagnostics\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.uselim.com/cli/auth-and-diagnostics#article\",\"headline\":\"auth, doctor, and env\",\"name\":\"auth, doctor, and env\",\"description\":\"Authenticate the CLI, inspect the active environment, and verify staging or production connectivity.\",\"url\":\"https://docs.uselim.com/cli/auth-and-diagnostics\",\"mainEntityOfPage\":{\"@id\":\"https://docs.uselim.com/cli/auth-and-diagnostics#webpage\"},\"dateModified\":\"2026-03-22T13:07:38.558Z\",\"publisher\":{\"@id\":\"https://docs.uselim.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.uselim.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"lim\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"lim\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/cli/auth-and-diagnostics.md","siteName":"lim","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"CLI","groups":[{"group":"CLI Basics","pages":[{"title":"CLI Overview","sidebarTitle":"Overview","description":"Install and configure the lim CLI, including the private beta package for staging validation.","href":"/cli/overview"},{"title":"auth, doctor, and env","sidebarTitle":"auth \u0026 diagnostics","href":"/cli/auth-and-diagnostics"},{"title":"lim dashboard","sidebarTitle":"dashboard","description":"Inspect runway, P\u0026L, and learning flywheel metrics from the CLI.","href":"/cli/dashboard"},{"title":"lim add","sidebarTitle":"add","href":"/cli/add"},{"title":"lim companies","sidebarTitle":"companies","href":"/cli/companies"},{"title":"lim accounts","sidebarTitle":"accounts","href":"/cli/accounts"},{"title":"lim journals","sidebarTitle":"journals","href":"/cli/journals"},{"title":"lim reports","sidebarTitle":"reports","href":"/cli/reports"},{"title":"lim stats \u0026 dashboard","sidebarTitle":"stats","href":"/cli/stats"}]},{"group":"Money In \u0026 Money Out","pages":[{"title":"invoices and payments","sidebarTitle":"invoices \u0026 payments","href":"/cli/invoices-and-payments"},{"title":"lim bank","sidebarTitle":"banking","href":"/cli/banking"},{"title":"lim docs","sidebarTitle":"documents","href":"/cli/documents"},{"title":"lim import and export","sidebarTitle":"import \u0026 export","href":"/cli/import-and-export"}]},{"group":"Operations \u0026 Compliance","pages":[{"title":"people, payroll, and approvals","sidebarTitle":"people \u0026 payroll","href":"/cli/people-and-payroll"},{"title":"dispatch and worker alerts","sidebarTitle":"dispatch \u0026 workers","href":"/cli/dispatch-and-workers"},{"title":"close, fx, labels, tax codes, and events","sidebarTitle":"close \u0026 compliance","href":"/cli/periods-and-compliance"},{"title":"contracts, assets, scenarios, and accruals","sidebarTitle":"planning \u0026 automation","href":"/cli/planning-and-automation"}]}]},{"tab":"API","pages":[{"title":"API","href":"/api/overview"}]},{"tab":"AI Agents","pages":[{"title":"AI Agents","href":"/agents/overview"}]}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/cli/auth-and-diagnostics"}]}]},"basePath":"","title":"auth, doctor, and env - lim","deploymentId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","buildId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","dynamics":[],"chunks":[]}