Ask your question and get a summary of the document by referencing this page and the AI provider of your choice
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
Live Sync commands
Live Sync allows your app to reflect CMS content changes at runtime. No rebuild or redeploy is required. When enabled, updates are streamed to a Live Sync server that refreshes the dictionaries your application reads. See Intlayer CMS for more details.
Copy the code to the clipboard
Arguments:
Configuration options:
--base-dir: Specify the base directory for the project. To retrieve the intlayer configuration, the command will look for theintlayer.config.{ts,js,json,cjs,mjs}file in the base directory.--no-cache: Disable the cache.Example:
npx intlayer dictionary push --env-file .env.production.local--ci: Run the command in every Intlayer project of the monorepo (or only the current one when run from a project directory). Per-project credentials can be injected viaINTLAYER_PROJECT_CREDENTIALS, a JSON map of project path to{ "clientId", "clientSecret" }.Example:
npx intlayer live --ci
Log options:
--verbose: Enable verbose logging for debugging. (defaults to true when using the CLI)
