| createdAt | 2024-08-11 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| updatedAt | 2026-03-31 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| title | CLI - All Intlayer CLI commands for your multilingual website | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description | Discover how to use the Intlayer CLI to manage your multilingual website. Follow the steps in this online documentation to set up your project in a few minutes. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| keywords |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| slugs |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| history |
|
Install the necessary packages using npm:
npm install intlayer-cli -gyarn add intlayer-cli -gpnpm add intlayer-cli -gbun add intlayer-cli -gIf
intlayerpackage is already installed, the cli is automatically installed. You can skip this step.
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|tsx|jsx|md|mdx|yaml|yml}. See how to declare your Intlayer declaration files.
To interpret intlayer dictionaries you can interpreters, such as react-intlayer, or next-intlayer
Intlayer accepts multiple configuration file formats:
intlayer.config.tsintlayer.config.jsintlayer.config.jsonintlayer.config.cjsintlayer.config.mjs.intlayerrc
To see how to configure available locales, or other parameters, refer to the configuration documentation here.
- Login - Authenticate with the Intlayer CMS and get access credentials
- Build Dictionaries - Build your dictionaries from content declaration files
- Watch Dictionaries - Watch for changes and automatically build 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
- 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
- Extract Strings - Extract strings from components into a .content file close to the component
- Initialize Intlayer - Set up Intlayer in your project with automatic configuration
- Manage Configuration - Get and push your Intlayer configuration to the CMS
- Translate Document - Automatically translate documentation files using AI
- Review Document - Review documentation files for quality and consistency
- Editor Commands - Use the Intlayer editor commands
- Live Sync Commands - Use Live Sync to reflect CMS content changes at runtime
- CI Command - Run Intlayer commands with auto-injected credentials for CI/CD pipelines
- CLI SDK - Use the Intlayer CLI SDK in your own code
- Debug Intlayer Command - Debug and troubleshoot Intlayer CLI issues
"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 listinstead ofnpx intlayer content listnpx intlayer testinstead ofnpx intlayer content testnpx intlayer projects-listornpx intlayer plinstead ofnpx intlayer projects list