HomeSandboxShowcaseAppDocBlog
    • EnglishEnglish
      EN
    • русскийRussian
      RU
    • 日本語Japanese
      JA
    • françaisFrench
      FR
    • 한국어Korean
      KO
    • 中文Chinese
      ZH
    • españolSpanish
      ES
    • DeutschGerman
      DE
    • العربيةArabic
      AR
    • italianoItalian
      IT
    • British EnglishBritish English
      EN-GB
    • portuguêsPortuguese
      PT
    • हिन्दीHindi
      HI
    • TürkçeTurkish
      TR
    • polskiPolish
      PL
    • IndonesiaIndonesian
      ID
    • Tiếng ViệtVietnamese
      VI
    • українськаUkrainian
      UK
    /
    Filter docs by framework
    Alt+←
    Why Intlayer ?
    Get Started
    Concept
    • How Intlayer Works
    • Configuration
    • TestFillBuildWatchExtractLoginPushPullConfigurationListVersionEditorLiveDebugDoc ReviewDoc TranslateSDK
    • Visual Editor
    • CMS
    • CI/CD Integration
    • TranslationPluralEnumerationConditionGenderInsertionFileNestingMarkdownHTMLFunction Fetching
    • Per Locale File
    • Compiler
    • Auto Fill
    • Testing
    • Bundle Optimization
    Environment
    • Next.js 14 and App Router
      Next.js 15
      Next.js no locale path
      Next.js and Page Router
      Compiler
    • Tanstack Start Solid
    • Astro and React
      Astro and Svelte
      Astro and Vue
      Astro and Solid
      Astro and Preact
      Astro and Lit
      Astro and Vanilla JS
    • React Router v7
      React Router v7 (fs-routes)
      Compiler
    • Nuxt and Vue
    • Vite and Solid
    • SvelteKit
    • Vite and Preact
    • Vite and Vanilla JS
    • Vite and Lit
    • Angular 19 (Webpack)
      Analog
    • React CRA
    • React Native and Expo
    • Express.js
      NestJS
      Fastify
      Hono
      Adonis
    • Lynx and React
    Plugins
    • JSON
    • gettext (.po)
    VS Code Extension
    Agent
    • MCP Server
    • Agent skills
    Releases
    • v8
    • v7
    • v6
    Benchmark
    • Next.js
    • TanStack
    • Vue
    • Solid
    • Svelte
    Blog
    Ask a question
    1. Documentation
    2. Concept
    3. CLI
    4. Login
    Creation:2025-12-16Last update:2025-12-16
    Reference this doc to your favorite AI assistant
    ChatGPT
    Claude
    DeepSeek
    Google AI mode
    Gemini
    Perplexity
    Mistral
    Grok

    Ask your question and get a summary of the document by referencing this page and the AI provider of your choice

    Edit this doc

    If you have an idea for improving this documentation, please feel free to contribute by submitting a pull request on GitHub.

    GitHub link to the documentation
    Copy

    Copy doc Markdown to clipboard

    Intlayer CLI Login Command


    Description

    The login command of the Intlayer CLI allows you to authenticate with the Intlayer CMS. This command automatically opens your default browser to complete the authentication process and receive the necessary credentials (Client ID and Client Secret) to use Intlayer services.

    Usage

    bash
    Copy code

    Copy the code to the clipboard

    npx intlayer login [options]

    or

    bash
    Copy code

    Copy the code to the clipboard

    intlayer login [options]

    Options

    --cms-url <url>

    Specify the URL of the Intlayer CMS to connect to for authentication.

    • Type: string
    • Default: The value configured in intlayer.config.* or https://intlayer.org
    • Example:
    bash
    Copy code

    Copy the code to the clipboard

    npx intlayer login --cms-url https://intlayer.org

    Configuration Options

    You can also use common configuration options:

    • --env-file <path>: Path to the environment file
    • -e, --env <env>: Execution environment
    • --base-dir <dir>: Base directory of the project
    • --verbose: Enable detailed output (default: true)
    • --prefix <prefix>: Prefix for logs

    How It Works

    1. Local Server Start: The command starts a local HTTP server on a random port to receive credentials from the CMS
    2. Browser Opening: The command automatically opens your default browser to the CMS login URL
    3. Authentication: Complete authentication in the browser using your Intlayer account
    4. Credentials Reception: The local server receives the Client ID and Client Secret from the CMS
    5. Instructions: The command displays instructions for configuring credentials in your project

    Output

    After a successful login, the command will display:

    1. The received credentials (Client ID and Client Secret)
    2. Instructions for the .env file:
    bash
    Copy code

    Copy the code to the clipboard

    INTLAYER_CLIENT_ID=your_client_idINTLAYER_CLIENT_SECRET=your_client_secret
    1. Instructions for the Intlayer configuration file:
    typescript
    Copy code

    Copy the code to the clipboard

    {  editor: {    cmsURL: 'https://intlayer.org',    clientId: process.env.INTLAYER_CLIENT_ID,    clientSecret: process.env.INTLAYER_CLIENT_SECRET,  },}

    Manual Configuration

    If the browser doesn't open automatically, you can manually visit the URL displayed in the terminal.

    Examples

    Login with Custom CMS URL

    bash
    Copy code

    Copy the code to the clipboard

    npx intlayer login --cms-url https://custom-cms.example.com

    Login with Specific Environment File

    bash
    Copy code

    Copy the code to the clipboard

    npx intlayer login --env-file .env.production

    Login in Verbose Mode

    bash
    Copy code

    Copy the code to the clipboard

    npx intlayer login --verbose

    Troubleshooting

    Browser Doesn't Open

    If the browser doesn't open automatically, copy the URL displayed in the terminal and open it manually in your browser.

    Connection Issues

    If you encounter connection issues, verify:

    1. That the CMS URL is correct
    2. That your internet connection is working properly
    3. That there are no firewalls blocking the connection

    Credentials Not Received

    If credentials are not received:

    1. Make sure you completed the authentication process in the browser
    2. Verify that the local port is not blocked
    3. Try the command again

    Next Steps

    After completing the login:

    1. Add the credentials to your .env file
    2. Configure your intlayer.config.* file with the credentials
    3. Use CLI commands to manage your dictionaries:
      • npx intlayer push - Push dictionaries to the CMS
      • npx intlayer pull - Pull dictionaries from the CMS
      • npx intlayer fill - Fill missing translations

    See Also

    • CLI Documentation
    • Intlayer Configuration
    • Intlayer CMS
    Extract
    Push
    Alt+→

    In this page

      Discussions are anonymous and regularly reviewed to address common issues. Feel free to share feature ideas, feedback on the documentation, or anything related to Intlayer, we use this input to shape our roadmap and improve the product.

      npx intlayer login [options]
      intlayer login [options]
      npx intlayer login --cms-url https://intlayer.org
      INTLAYER_CLIENT_ID=your_client_idINTLAYER_CLIENT_SECRET=your_client_secret
      {  editor: {    cmsURL: 'https://intlayer.org',    clientId: process.env.INTLAYER_CLIENT_ID,    clientSecret: process.env.INTLAYER_CLIENT_SECRET,  },}
      npx intlayer login --cms-url https://custom-cms.example.com
      npx intlayer login --env-file .env.production
      npx intlayer login --verbose