Ask your question and get a summary of the document by referencing this page and the AI provider of your choice
Version History
- "Added standalone command content"v8.6.431/03/2026
- "Added CI command content"v7.5.1106/01/2026
- "Added list projects command content"v7.5.1106/01/2026
- "Added init command content"v7.5.930/12/2025
- "Added extract command content"v7.2.322/11/2025
- "Added skipIfExists option to translate command"v7.1.005/11/2025
- "Added aliases for CLI arguments and commands"v6.1.427/01/2025
- "Added build option to commands"v6.1.305/10/2025
- "Added version command content"v6.1.226/09/2025
- "Set verbose option to true by default via CLI"v6.1.026/09/2025
- "Added watch command and with option"v6.1.023/09/2025
- "Added editor command content"v6.0.123/09/2025
- "Added content test and list commands"v6.0.017/09/2025
- "Updated documentation for CLI command parameters"v5.5.1111/07/2025
- "Init history"v5.5.1029/06/2025
The content of this page was translated using an AI.
See the last version of the original content in EnglishIf you have an idea for improving this documentation, please feel free to contribute by submitting a pull request on GitHub.
GitHub link to the documentationCopy doc Markdown to clipboard
Intlayer CLI - All Intlayer CLI commands for your multilingual website
Table of Contents
Installing the package
Install the necessary packages using npm:
Copy the code to the clipboard
npm install intlayer-cli -gIf 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}. 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.tsintlayer.config.jsintlayer.config.jsonintlayer.config.cjsintlayer.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
- Build Dictionaries - Build your dictionaries from your content declaration files
- Watch Dictionaries - Watch for changes and automatically rebuild dictionaries
- Create Standalone Bundle - Create a standalone JavaScript bundle containing Intlayer and specified packages.
- Check CLI Version - Check the installed Intlayer CLI version
- List Projects - List all Intlayer projects in a directory or git repository
Dictionary Management
- Push Dictionaries - Push the dictionaries to the Intlayer Editor and CMS
- Pull Dictionaries - Pull the dictionaries from the Intlayer Editor and CMS
- Fill Dictionaries - Fill, audit, and translate dictionaries using AI
- Test Missing Translations - Test and identify missing translations
- List Content Declaration Files - List all content declaration files in your project
Component Management
- Extract Strings - Extract strings from components into a .content file near the component
Configuration
- Initialise Intlayer - Set up Intlayer in your project with automatic configuration
- Manage Configuration - Get your Intlayer configuration and push it to the CMS
Doc Management
- Translate Document - Automatically translate document files using AI
- Review Document - Review document files for quality and consistency
Editor and Live Sync
- Editor Commands - Use the Intlayer Editor commands
- Live Sync Commands - Use Live Sync to apply content changes from CMS in real time
CI/CD and Automation
- CI Command - Execute Intlayer commands with automatically injected credentials for CI/CD flows
Developer Tools
- CLI SDK - Use the Intlayer CLI SDK in your own code
- Debug Intlayer Command - Debug and resolve issues with the Intlayer CLI
Use the intlayer commands in your package.json file
Copy the code to the clipboard
"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: replacesnpx intlayer content listnpx intlayer test: replacesnpx intlayer content testnpx intlayer projects-listornpx intlayer pl: replacesnpx intlayer projects list