0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Bruno】CLIでAPIコレクションを実行する方法

Last updated at Posted at 2025-08-22

Bruno CLIをインストール

Node.js LTSが必要です。各種パッケージマネージャーでグローバルインストールできます:

# npm
npm install -g @usebruno/cli

# yarn
yarn global add @usebruno/cli

# pnpm
pnpm install -g @usebruno/cli

基本的な使用方法

コレクションの実行

# コレクション全体を実行
bru run

# 特定のフォルダを実行
bru run <フォルダ名>

# 特定のリクエストファイルを実行
bru run request.bru

環境設定

# 環境名を指定
bru run --env Local

# 環境ファイルを指定
bru run --env-file ./environments/local.bru

# 環境変数を動的に設定
bru run --env Local --env-var JWT_TOKEN=1234

参考リンク

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?