← 返回命令列表

Linux command

vibe 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start an interactive session

vibe

Start with an initial prompt

vibe "[refactor the main function to be more modular]"

Run non-interactively for scripting

vibe --prompt "[add unit tests for the auth module]"

Auto-approve all tool executions

vibe --auto-approve

Use a custom agent configuration

vibe --agent [my_custom_agent]

Resume the most recent session

vibe --continue

Resume a specific session

vibe --resume [session_id]

Limit turns and cost in non-interactive mode

vibe --prompt "[fix lint errors]" --max-turns [10] --max-price [2.50]

Reference a file in prompt

vibe``` then ```@[path/to/file.py] [explain this code]

Execute a shell command directly

vibe``` then ```![ls -la]

说明

Mistral Vibe CLI is an open-source command-line coding assistant powered by Devstral 2, Mistral's 123B-parameter coding model with a 256K context window. It explores, modifies, and executes changes across your codebase using natural language. The tool provides project-aware context by automatically scanning your file structure and Git status. Features include smart file references with @ autocomplete, shell command execution with !, and multi-file orchestration that understands your entire codebase. It supports the Agent Communication Protocol (ACP) for IDE integration. Vibe runs in interactive chat mode by default, offering a conversational AI agent that breaks down complex tasks into actionable steps. Non-interactive mode enables scripting and automation workflows.

参数

--prompt _TEXT_
Run non-interactively with the provided prompt (auto-approve enabled by default).
--auto-approve
Automatically approve all tool executions without prompting.
--agent _NAME_
Select an agent profile (built-ins: default, plan, accept-edits, auto-approve) or load a custom TOML from the agents directory.
-c, --continue
Resume the most recent session.
--resume _SESSION_ID_
Resume a specific session by ID.
--max-turns _N_
Limit the number of assistant turns in non-interactive mode.
--max-price _DOLLARS_
Abort the session if cost exceeds the specified dollar amount.
--enabled-tools _TOOL_
Restrict which built-in tools are available (supports glob patterns).
--output _FORMAT_
Output format: `text`, `json`, or `stream`.
--workdir _PATH_
Set the working directory for the session.
--setup
Run interactive API key configuration.

FAQ

What is the vibe command used for?

Mistral Vibe CLI is an open-source command-line coding assistant powered by Devstral 2, Mistral's 123B-parameter coding model with a 256K context window. It explores, modifies, and executes changes across your codebase using natural language. The tool provides project-aware context by automatically scanning your file structure and Git status. Features include smart file references with @ autocomplete, shell command execution with !, and multi-file orchestration that understands your entire codebase. It supports the Agent Communication Protocol (ACP) for IDE integration. Vibe runs in interactive chat mode by default, offering a conversational AI agent that breaks down complex tasks into actionable steps. Non-interactive mode enables scripting and automation workflows.

How do I run a basic vibe example?

Run `vibe` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --prompt _TEXT_ do in vibe?

Run non-interactively with the provided prompt (auto-approve enabled by default).