Skip to content

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

基本オプション

bash
repomix [directory]  # 特定のディレクトリを処理(指定しない場合はカレントディレクトリ)

出力オプション

オプション説明デフォルト
-o, --output <file>出力ファイル名repomix-output.txt
--style <type>出力形式(plain, xml, markdownplain
--output-show-line-numbers行番号を追加false
--copyクリップボードにコピーfalse
--no-file-summaryファイルサマリーを無効化true
--no-directory-structureディレクトリ構造を無効化true
--remove-commentsコメントを削除false
--remove-empty-lines空行を削除false

フィルターオプション

オプション説明
--include <patterns>指定したファイルまたはディレクトリをパッケージング対象に含める
-i, --ignore <patterns>指定したファイルまたはディレクトリをパッケージング対象から除外する

リモートリポジトリ

オプション説明
--remote <url>指定したリモートリポジトリをパッケージングする
--remote-branch <name>リモートリポジトリの特定のブランチ、タグ、またはコミットハッシュを指定する

設定

オプション説明
-c, --config <path>カスタム設定ファイルのパス
--init設定ファイルを作成
--globalグローバル設定を使用

セキュリティ

オプション説明デフォルト
--no-security-checkセキュリティチェックを無効化true

その他のオプション

オプション説明
-v, --versionバージョンを表示
--verbose詳細なログ出力を有効化
--top-files-len <number>上位何件のファイルを詳細出力するかを指定する

使用例

bash
# 基本的な使用方法
repomix

# 出力ファイル名とフォーマットを指定
repomix -o output.xml --style xml

# 特定のファイルを含める、または除外する
repomix --include "src/**/*.ts" --ignore "**/*.test.ts"

# リモートリポジトリをパッケージングする
repomix --remote user/repo --remote-branch main

Released under the MIT License.