首页演练场案例展示应用文档博客
    • English英语
      EN
    • русский俄语
      RU
    • 日本語日语
      JA
    • français法语
      FR
    • 한국어韩语
      KO
    • 中文中文
      ZH
    • español西班牙语
      ES
    • Deutsch德语
      DE
    • العربية阿拉伯语
      AR
    • italiano意大利语
      IT
    • British English英国英语
      EN-GB
    • português葡萄牙语
      PT
    • हिन्दी印地语
      HI
    • Türkçe土耳其语
      TR
    • polski波兰语
      PL
    • Indonesia印度尼西亚语
      ID
    • Tiếng Việt越南语
      VI
    • українська乌克兰语
      UK
    /
    按框架筛选文档
    Alt+←
    为什么Intlayer?
    开始
    概念
    • Intlayer如何工作
    • 配置
    • TestFillBuildWatchExtractLoginPushPullConfigurationListVersionEditorLiveDebugDoc ReviewDoc TranslateSDK
    • 可视化编辑器
    • CMS
    • CI/CD集成
    • 翻译复数枚举条件性别插入文件嵌套MarkdownHTML函数获取
    • 每个语言环境的文件
    • 编译器
    • 自动填充
    • 测试
    • 打包优化
    环境
    • Next.js 14和应用路由器
      Next.js 15
      Next.js 无 locale URL
      Next.js和页面路由器
      编译器
    • Tanstack Start Solid
    • Astro和React
      Astro和Svelte
      Astro和Vue
      Astro和Solid
      Astro和Preact
      Astro和Lit
      Astro和Vanilla JS
    • React Router v7
      React Router v7 (fs-routes)
      Compiler
    • Nuxt和Vue
    • Vite和Solid
    • SvelteKit
    • Vite和Preact
    • Vite和Vanilla JS
    • Vite和Lit
    • Angular 19 (Webpack)
      Analog
    • React CRA
    • React Native和Expo
    • Express.js
      NestJS
      Fastify
      Hono
      Adonis
    • Lynx和React
    Plugins
    • JSON
    • gettext (.po)
    VS Code扩展
    代理
    • MCP服务器
    • 代理技能
    发布
    • v8
    • v7
    • v6
    基准测试
    • Next.js
    • TanStack
    • Vue
    • Solid
    • Svelte
    博客
    问问题
    1. Documentation
    2. 概念
    3. CLI
    4. Pull
    Creation:2024-08-11Last update:2025-11-22
    将此文档参考到您的 AI 助手
    ChatGPT
    Claude
    DeepSeek
    Google AI mode
    Gemini
    Perplexity
    Mistral
    Grok

    使用您最喜欢的AI助手总结文档,并引用此页面和AI提供商

    此页面的内容已使用 AI 翻译。

    查看英文原文的最新版本
    编辑此文档

    如果您有改善此文档的想法,请随时通过在GitHub上提交拉取请求来贡献。

    文档的 GitHub 链接
    Copy

    复制文档 Markdown 到剪贴板

    拉取远程词典

    bash
    复制代码

    复制代码到剪贴板

    npx intlayer pull

    如果已安装 intlayer 编辑器,你也可以从编辑器拉取词典。通过这种方式,你可以根据应用需求覆盖词典内容。

    别名:

    • npx intlayer dictionaries pull
    • npx intlayer dictionary pull
    • npx intlayer dic pull

    参数:

    词典选项:

    • -d, --dictionaries:要拉取的词典 ID。如果未指定,则会拉取所有词典。

      示例:npx intlayer dictionary pull -d my-dictionary-id my-other-dictionary-id
    • --dictionary:要拉取的词典 ID(--dictionaries 的别名)。

      示例:npx intlayer dictionary pull --dictionary my-dictionary-id my-other-dictionary-id

    配置选项:

    • --base-dir:指定项目的基础目录。命令会在该目录中查找 intlayer.config.{ts,js,json,cjs,mjs} 文件以获取 intlayer 配置。

      示例:npx intlayer dictionary push --env-file .env.production.local
    • --no-cache:禁用缓存。

      示例:npx intlayer build --no-cache

    环境变量选项:

    • --env:指定环境(例如,development,production)。
    • --env-file:提供自定义环境文件以加载变量。
    • --base-dir:指定项目的基础目录。命令会在该目录中查找 intlayer.config.{ts,js,json,cjs,mjs} 文件以获取 intlayer 配置。

      示例:npx intlayer dictionary push --env-file .env.production.local
      示例:npx intlayer dictionary push --env production

    输出选项:

    • --new-dictionaries-path :新词典将被保存的目录路径。如果未指定,新词典将保存在项目的 ./intlayer-dictionaries 目录中。如果在词典内容中指定了 filePath 字段,词典将忽略此参数,并保存在指定的 filePath 目录中。

    日志选项:

    • --verbose:启用详细日志以便调试。(CLI 默认启用)

    示例:

    bash
    复制代码

    复制代码到剪贴板

    npx intlayer dictionary pull --newDictionariesPath ./my-dictionaries-dir/
    Push
    Configuration
    Alt+→

    在此页面

      讨论是匿名的,并会定期审查以解决常见问题。欢迎分享功能想法、对文档的反馈或任何与 Intlayer 相关的内容, 我们会利用这些意见来制定路线图并改进产品。

      npx intlayer pull
      npx intlayer dictionary pull --newDictionariesPath ./my-dictionaries-dir/