Ask your question and get a summary of the document by referencing this page and the AI provider of your choice
By integrating the Intlayer MCP Server to your favourite AI assistant can retrieve all the doc directly from ChatGPT, DeepSeek, Cursor, VSCode, etc.
See MCP Server docVersion History
- Add transform commandv7.2.322/11/2025
- Add skipIfExists option to translate commandv7.1.005/11/2025
- Add aliases for CLI arguments and commandsv6.1.427/01/2025
- Add build option to commandsv6.1.305/10/2025
- Add version commandv6.1.226/09/2025
- Set verbose option to default to true using CLIv6.1.026/09/2025
- Add watch command and with optionv6.1.023/09/2025
- Add editor commandv6.0.123/09/2025
- Add content test and list commandv6.0.017/09/2025
- Update CLI command parameters documentationv5.5.1111/07/2025
- Init historyv5.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
Table of Contents
Install Package
Install the necessary packages using npm:
npm install intlayer-cli -gIf the intlayer package is already installed, the CLI is automatically installed. You can skip this step.
intlayer-cli package
The intlayer-cli package is intended 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 use 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
- Build Dictionaries - Build your dictionaries from content declaration files
- Watch Dictionaries - Watch for changes and automatically build dictionaries
- Check CLI Version - Check the installed Intlayer CLI version
Dictionary Management
- Push Dictionaries - Push dictionaries to the Intlayer editor and CMS
- Pull Dictionaries - Pull 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
- Transform Components - Transform existing components to use Intlayer
Configuration
- Manage Configuration - Get and push your Intlayer configuration to the CMS
Documentation Management
- Translate Document - Automatically translate documentation files using AI
- Review Document - Review documentation files for quality and consistency
Editor & Live Sync
- Editor Commands - Use the Intlayer editor commands
- Live Sync Commands - Use Live Sync to reflect CMS content changes at runtime
Development Tools
- CLI SDK - Use the Intlayer CLI SDK in your own code
- Debug Intlayer Command - Debug and troubleshoot Intlayer CLI issues
Use intlayer commands in your package.json
Copy the code to the clipboard
"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