Files
tldr/pages.zh/common/bru.md

28 lines
623 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# bru
> Bruno的命令行工具一个开源的IDE用于探索和测试API。
> 更多信息:<https://docs.usebruno.com/bru-cli/overview>。
- 从当前目录运行所有请求文件:
`bru run`
- 通过指定文件名从当前目录运行单个请求:
`bru run {{file.bru}}`
- 使用环境运行请求:
`bru run --env {{environment_name}}`
- 使用带变量的环境运行请求:
`bru run --env {{environment_name}} --env-var {{variable_name}}={{variable_value}}`
- 运行请求并将结果收集到输出文件中:
`bru run --output {{path/to/output.json}}`
- 显示帮助:
`bru run --help`