Intlayerの今後のリリースに関する通知を受け取る
    作成:2024-08-11最終更新:2025-11-22

    遠隔辞書のプル

    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の設定を取得するために、コマンドはベースディレクトリ内の intlayer.config.{ts,js,json,cjs,mjs} ファイルを探します。

      例: npx intlayer dictionary push --env-file .env.production.local
    • --no-cache: キャッシュを無効にします。

      例: npx intlayer build --no-cache

    環境変数オプション:

    • --env: 環境を指定します(例: developmentproduction)。
    • --env-file: 変数を読み込むためのカスタム環境ファイルを指定します。
    • --base-dir: プロジェクトのベースディレクトリを指定します。intlayerの設定を取得するために、コマンドはベースディレクトリ内の intlayer.config.{ts,js,json,cjs,mjs} ファイルを探します。

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

    出力オプション:

    • --new-dictionaries-path : 新しい辞書が保存されるディレクトリへのパス。指定しない場合、新しい辞書はプロジェクトの ./intlayer-dictionaries ディレクトリに保存されます。辞書の内容に filePath フィールドが指定されている場合、この引数は無視され、指定された filePath ディレクトリに保存されます。

    ログオプション:

    • --verbose: デバッグのために詳細なログを有効にします。(CLIではデフォルトでtrue)

    例:

    npx intlayer dictionary pull --newDictionariesPath ./my-dictionaries-dir/
    Intlayerの今後のリリースに関する通知を受け取る