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.823/09/2026
- "Add init infra command"v9.5.621/09/2026
- "Replace the `ci` command by the `--ci` flag"v9.5.212/09/2026
- "Added scan command"v9.0.011/06/2026
- "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
If 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|tsx|jsx|md|mdx|yaml|yml}. 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
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 near the component
Configuration
Doc Management
Editor and Live Sync
Auditing & Diagnostics
- Scan Website - Measure page size and audit i18n/SEO health of any public URL
Developer Tools
Use the intlayer commands in your package.json file
Copy the code to the clipboard
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
