mistralM

Docs

sideBar

Scaffold a project with Vibe Code

Use Vibe Code to scaffold a new project from a natural-language description, reviewing every change before it's applied. ~10 minutes.
flagThis step takes ~10 minutes to complete.

Use the Vibe CLI to generate a full project from a natural-language description, review every change before it's applied, and run the result.

  • Natural-language scaffolding: describe what you want and the CLI creates the files.
  • Step-by-step confirmation: Vibe Code splits large tasks into steps and asks for approval.
  • Full preview: see every file change before it's written to disk.

By the end you'll have a working project scaffolded from a single prompt.

Time to complete: ~10 minutes

Prerequisites

  • Vibe CLI installed and configured. If you haven't done that yet, run the Install the Vibe CLI quickstart first.
lightbulb

This quickstart uses the ask agent, which asks for approval before every edit. It's the safest choice for a first run. By default, Vibe starts with accept-edits, which writes files in your working directory without prompting per step.

Step 1: Create an empty directory and launch the CLI

Start in a fresh directory so the CLI generates the project from scratch. Launch the CLI with the ask agent so you can review each change:

mkdir my-project && cd my-project
vibe --agent ask

The CLI starts with an empty context, ready to scaffold.

pen

If you run vibe in an existing project that contains an AGENTS.md file or Vibe configuration (such as .vibe/config.toml or .agents/skills/), the CLI asks whether you trust the folder before loading any local configuration. See Trusted folders.

Step 2: Describe your project

Give the CLI a clear description. Be specific about language, framework, and key features. For example:

Create a Python Flask API with two endpoints: a /health endpoint that returns {"status": "ok"} and a /predict endpoint that accepts a JSON body with a "text" field and returns {"label": "positive", "score": 0.95}. Include a requirements.txt and a README.

Vibe Code breaks the request into steps and begins generating files. Before creating or editing any file, it shows a preview.

Vibe Code showing a preview of changes and asking for confirmation

Step 3: Review and approve changes

For each step, the CLI displays the files it plans to create or modify, the content of each file, and a confirmation prompt. Press one of the approval keys:

  • 1 or y to allow this edit once.
  • 2 to allow this kind of edit for the rest of the session.
  • 3 to always allow it.
  • 4, n, or Escape to deny it.

You can also move between options with the arrow keys and press Enter, or click an option.

After each approved step, the CLI shows the result.

Vibe Code displaying generated output and completed steps

Continue approving steps until the project is complete.

Verify

Check that the project was created:

ls -la

You should see the files Vibe Code generated (for example, app.py, requirements.txt, README.md).

Ask the CLI to start the server and test the endpoints for you:

Install the dependencies, start the server, and run a curl against /health and /predict to verify they work.

Or run it yourself:

pip install -r requirements.txt
python app.py

Test the endpoints:

curl http://localhost:5000/health
curl -X POST http://localhost:5000/predict \
  -H "Content-Type: application/json" \
  -d '{"text": "Mistral is great"}'

Both endpoints should return valid JSON responses.

Next quickstarts

Keep going with the next step.
Install the Vibe CLI and send your first prompt
logoVibecode

Install the Vibe CLI and send your first prompt

Install the Vibe CLI, configure your API key, and send your first prompt from the terminal. ~5 minutes.

clock

5 min to complete

chevronRight

Going further

Work with the CLI
illustrationChatCode

Work with the CLI

Use the Vibe Code CLI in interactive or programmatic mode: reference files, run slash and shell commands, and review changes before they apply.

CLI agents
illustrationRobot

CLI agents

Use the built-in agents of the Vibe Code CLI, or define custom agents and subagents with their own prompts, models, tools, and approvals.

CLI Skills
illustrationPotion

CLI Skills

Write SKILL.md files to add reusable workflows and custom slash commands to Vibe Code, and choose where skills load from.

Choose CLI, VS Code, web, or Desktop sessions
illustrationClock

Choose CLI, VS Code, web, or Desktop sessions

Compare the Vibe Code CLI, VS Code extension, Vibe Code Web, and Vibe Desktop to choose the surface that fits your task.