Ask your question and get a summary of the document by referencing this page and the AI provider of your choice
Version History
- "Add upgrade command"v9.5.89/23/2026
- "Add init infra command"v9.5.69/21/2026
- "Replace the `ci` command by the `--ci` flag"v9.5.29/12/2026
- "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
Dictionary Management
Component Management
- Extract Strings - Extract strings from components into a .content file close to the component
Configuration
Documentation Management
Editor & Live Sync
Auditing & Diagnostics
- Scan Website - Measure page size and audit i18n/SEO health of any public URL
Development Tools
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
