Skip to content

コマンドラインオプション

基本オプション

  • -v, --version: バージョンを表示

出力オプション

  • -o, --output <file>: 出力ファイル名(デフォルト: repomix-output.txt
  • --style <type>: 出力形式(plain, xml, markdown)(デフォルト: plain
  • --parsable-style: 選択したスタイルスキーマに基づいてパース可能な出力を有効化(デフォルト: false
  • --output-show-line-numbers: 行番号を追加(デフォルト: false
  • --copy: クリップボードにコピー(デフォルト: false
  • --no-file-summary: ファイルサマリーを無効化(デフォルト: true
  • --no-directory-structure: ディレクトリ構造を無効化(デフォルト: true
  • --remove-comments: コメントを削除(デフォルト: false
  • --remove-empty-lines: 空行を削除(デフォルト: false
  • --header-text <text>: ファイルヘッダーに含めるカスタムテキスト
  • --instruction-file-path <path>: 詳細なカスタム指示を含むファイルのパス
  • --include-empty-directories: 空のディレクトリを出力に含める(デフォルト: false

フィルターオプション

  • --include <patterns>: インクルードパターン(カンマ区切り)
  • -i, --ignore <patterns>: 除外パターン(カンマ区切り)
  • --no-gitignore: .gitignoreファイルの使用を無効化
  • --no-default-patterns: デフォルトパターンを無効化

リモートリポジトリオプション

  • --remote <url>: リモートリポジトリを処理
  • --remote-branch <name>: リモートブランチ名、タグ、またはコミットハッシュを指定(デフォルトはリポジトリのデフォルトブランチ)

設定オプション

  • -c, --config <path>: カスタム設定ファイルのパス
  • --init: 設定ファイルを作成
  • --global: グローバル設定を使用

セキュリティオプション

  • --no-security-check: セキュリティチェックを無効化(デフォルト: true

トークンカウントオプション

  • --token-count-encoding <encoding>: トークンカウントのエンコーディングを指定(例: o200k_base, cl100k_base)(デフォルト: o200k_base

その他のオプション

  • --top-files-len <number>: 表示するトップファイルの数(デフォルト: 5
  • --verbose: 詳細なログを有効化

使用例

bash
# 基本的な使用方法
repomix

# カスタム出力
repomix -o output.xml --style xml

# 特定のファイルを処理
repomix --include "src/**/*.ts" --ignore "**/*.test.ts"

# ブランチを指定したリモートリポジトリ
repomix --remote https://github.com/user/repo/tree/main

# コミットを指定したリモートリポジトリ
repomix --remote https://github.com/user/repo/commit/836abcd7335137228ad77feb28655d85712680f1

# ショートハンド形式のリモートリポジトリ
repomix --remote user/repo

Released under the MIT License.