Creation:2024-08-11Last update:2026-03-31

    Intlayer CLI - All Intlayer CLI commands for your multilingual website


    Table of Contents


    Installing the package

    Install the necessary packages using npm:

    bash
    npm install intlayer-cli -g
    If the intlayer package is already installed, the CLI is automatically installed. You can skip this step.

    The intlayer-cli package

    The intlayer-cli package is designed to transpile your Intlayer declarations into dictionaries.

    This package transpiles all Intlayer files, such as src/**/*.content.{ts|js|mjs|cjs|json|tsx|jsx|md|mdx|yaml|yml}. See how to declare your Intlayer declaration files.

    To interpret the Intlayer dictionaries, you can use interpreters, such as react-intlayer or next-intlayer.

    Config file support

    Intlayer accepts several configuration file formats:

    • intlayer.config.ts
    • intlayer.config.js
    • intlayer.config.json
    • intlayer.config.cjs
    • intlayer.config.mjs
    • .intlayerrc

    To learn how to configure the available languages or other parameters, take a look at the configuration documentation here.

    Executing Intlayer commands

    Authentication

    • Login - Authenticate with the Intlayer CMS and get the access credentials

    Core Commands

    Dictionary Management

    Component Management

    • Extract Strings - Extract strings from components into a .content file near the component

    Configuration

    Doc Management

    Editor and Live Sync

    CI/CD and Automation

    • CI Command - Execute Intlayer commands with automatically injected credentials for CI/CD flows

    Developer Tools

    Use the intlayer commands in your package.json file

    package.json
    "scripts": {  "intlayer:init": "npx intlayer init",  "intlayer:login": "npx intlayer login",  "intlayer:build": "npx intlayer build",  "intlayer:watch": "npx intlayer build --watch",  "intlayer:standalone": "npx intlayer standalone --packages intlayer vanilla-intlayer",  "intlayer:push": "npx intlayer push",  "intlayer:pull": "npx intlayer pull",  "intlayer:fill": "npx intlayer fill",  "intlayer:list": "npx intlayer content list",  "intlayer:test": "npx intlayer content test",  "intlayer:extract": "npx intlayer extract",  "intlayer:projects": "npx intlayer projects list",  "intlayer:doc:translate": "npx intlayer doc translate",  "intlayer:doc:review": "npx intlayer doc review"}

    Note: You can also use the shorter aliases:

    • npx intlayer list: replaces npx intlayer content list
    • npx intlayer test: replaces npx intlayer content test
    • npx intlayer projects-list or npx intlayer pl: replaces npx intlayer projects list