Receive notifications about upcoming Intlayer releases
    Creation:2024-08-11Last update:2025-11-22

    Intlayer CLI - All Intlayer CLI commands for your multilingual website


    Table of Contents


    Install Package

    Install the necessary packages using npm:

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

    intlayer-cli package

    intlayer-cli package intend to transpile your intlayer declarations into dictionaries.

    This package will transpile all intlayer files, such as src/**/*.content.{ts|js|mjs|cjs|json}. See how to declare your Intlayer declaration files.

    To interpret intlayer dictionaries you can interpreters, such as react-intlayer, or next-intlayer

    Configuration File Support

    Intlayer accepts multiple configuration file formats:

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

    To see how to configure available locales, or other parameters, refer to the configuration documentation here.

    Run intlayer commands

    Core Commands

    Dictionary Management

    Component Management

    Configuration

    Documentation Management

    Editor & Live Sync

    Development Tools

    Use intlayer commands in your package.json

    package.json
    "scripts": {  "intlayer:build": "npx intlayer build",  "intlayer:watch": "npx intlayer build --watch",  "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:transform": "npx intlayer transform",  "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 instead of npx intlayer content list
    • npx intlayer test instead of npx intlayer content test
    Receive notifications about upcoming Intlayer releases