שאלו את שאלתכם וקבלו סיכום של המסמך על ידי הפניה לדף הזה ולספק ה-AI שתבחרו
היסטוריית גרסאות
- "Add upgrade command"v9.5.823.9.2026
- "Add init infra command"v9.5.621.9.2026
- "Replace the `ci` command by the `--ci` flag"v9.5.212.9.2026
- "Add scan command"v9.0.011.6.2026
- "Add standalone command"v8.6.431.3.2026
- "Add CI command"v7.5.116.1.2026
- "Add projects list command"v7.5.116.1.2026
- "Add init command"v7.5.930.12.2025
- "Add extract command"v7.2.322.11.2025
- "Add skipIfExists option to translate command"v7.1.05.11.2025
- "Add aliases for CLI arguments and commands"v6.1.427.1.2025
- "Add build option to commands"v6.1.35.10.2025
- "Add version command"v6.1.226.9.2025
- "Set verbose option to default to true using CLI"v6.1.026.9.2025
- "Add watch command and with option"v6.1.023.9.2025
- "Add editor command"v6.0.123.9.2025
- "Add content test and list command"v6.0.017.9.2025
- "Update CLI command parameters documentation"v5.5.1111.7.2025
- "Init history"v5.5.1029.6.2025
התוכן של הדף הזה תורגם באמצעות AI.
צפייה בגרסה האחרונה של התוכן המקורי באנגליתאם יש לכם רעיון לשיפור התיעוד הזה, אל תהססו לתרום על ידי הגשת Pull Request ב-GitHub.
קישור GitHub לתיעודהעתקת ה-Markdown של המסמך ללוח
Intlayer CLI - All Intlayer CLI commands for your multilingual website
Table of Contents
Install Package
Install the necessary packages using npm:
העתקת הקוד ללוח
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
העתקת הקוד ללוח
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
