Ask your question and get a summary of the document by referencing this page and the AI provider of your choice
Version History
- "Add scan command"v9.0.06/11/2026
- "Add standalone command"v8.6.43/31/2026
- "Add CI command"v7.5.111/6/2026
- "Add projects list command"v7.5.111/6/2026
- "Add init command"v7.5.912/30/2025
- "Add extract command"v7.2.311/22/2025
- "Add skipIfExists option to translate command"v7.1.011/5/2025
- "Add aliases for CLI arguments and commands"v6.1.41/27/2025
- "Add build option to commands"v6.1.310/5/2025
- "Add version command"v6.1.29/26/2025
- "Set verbose option to default to true using CLI"v6.1.09/26/2025
- "Add watch command and with option"v6.1.09/23/2025
- "Add editor command"v6.0.19/23/2025
- "Add content test and list command"v6.0.09/17/2025
- "Update CLI command parameters documentation"v5.5.117/11/2025
- "Init history"v5.5.106/29/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
Install Package
Install the necessary packages using npm:
Copy the code to the clipboard
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|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
Configuration File Support
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.
Run intlayer commands
Authentication
- Login - Authenticate with the Intlayer CMS and get access credentials
intlayer loginissues an access key (clientId/clientSecret) that every credentialed command uses. The secret is a server-side credential and never reaches your client bundle — see Keeping the access key safe.
Core Commands
- 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
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
- Extract Strings - Extract strings from components into a .content file close to the component
Configuration
- Initialize Intlayer - Set up Intlayer in your project with automatic 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
CI/CD & Automation
- CI Command - Run Intlayer commands with auto-injected credentials for CI/CD pipelines
Auditing & Diagnostics
- Scan Website - Measure page size and audit i18n/SEO health of any public URL
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
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
