Creation:2024-08-11Last update:2025-11-22
将此文档参考到您的 AI 助手ChatGPTClaudeDeepSeekGoogle AI modeGeminiPerplexityMistralGrok
使用您最喜欢的AI助手总结文档,并引用此页面和AI提供商
此页面的内容已使用 AI 翻译。
查看英文原文的最新版本Edit this doc
If 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
Copy doc Markdown to clipboard
管理配置
获取配置
configuration get 命令用于检索当前 Intlayer 的配置,特别是语言环境设置。这对于验证您的设置非常有用。
bash
复制代码
复制代码到剪贴板
npx intlayer configuration get别名:
npx intlayer config getnpx intlayer conf get
参数:
--env:指定环境(例如,development,production)。--env-file:提供自定义环境文件以加载变量。--base-dir:指定项目的基础目录。--verbose:启用详细日志以进行调试。(默认通过 CLI 设置为 true)--no-cache:禁用缓存。
推送配置
configuration push 命令将您的配置上传到 Intlayer CMS 和编辑器。此步骤对于启用 Intlayer 可视化编辑器中远程词典的使用是必要的。
bash
复制代码
复制代码到剪贴板
npx intlayer configuration push别名:
npx intlayer config pushnpx intlayer conf push
参数:
--env:指定环境(例如,development,production)。--env-file:提供自定义环境文件以加载变量。--base-dir:指定项目的基础目录。--verbose:启用详细日志以便调试。(CLI 默认启用)--no-cache:禁用缓存。
通过推送配置,您的项目将完全集成到 Intlayer CMS 中,实现团队间无缝的词典管理。