Kest CLI
Powerful, lightweight, and developer-first API testing tool. Bring "Documentation as Code" to your terminal.
What's New in v0.7.0?
AI-powered debugging, mock server, snapshot testing, exec steps, and more.
AI-Powered Commands
Diagnose failures with kest why, get suggestions with kest suggest, generate flows with kest gen — all powered by your local request history.
Mock Server & Snapshots
Spin up a zero-config mock server from history. Save and verify API snapshots like Jest for APIs.
Exec Steps & Flow Graph
Run shell commands as flow steps with @type exec. New step/flow/edge blocks for complete flow graphs with Mermaid preview.
Watch Mode
Auto-rerun flow files on save. TDD for APIs — edit your .flow.md and see results instantly.
Snapshot Testing
Save API response snapshots and verify them on subsequent runs. Detect field changes instantly.
Variable Chain Visualization
Visualize how variables flow between steps in your flow files with kest chain.
Documentation is the Test
Markdown Flow
Use human-readable Markdown to define complex test sequences. No more clicking through UI.
Automatic Persistence
Every request is saved to a local SQLite database. Debug failures with full history.
Multi-Environment
Seamlessly switch between local, staging, and production with safe config management.
# 🔐 Auth Flow
## 1. Login
```kest
POST /api/v1/login
{
"username": "admin",
"password": "password123"
}
[Captures]
token: data.access_token
[Asserts]
status == 200
body.data.access_token exists
body.data.password !exists
duration < 300ms
```
## 2. Get Profile
```kest
GET /api/v1/users/profile
Authorization: Bearer {{token}}
[Asserts]
status == 200
body.data.username != ""
```Master the Command Line
Essential commands for your daily workflow.
Setup your .kest project in seconds.
Execute test flows and see results.
AI diagnoses why your last request failed.
Zero-config mock server from history.
Snapshot testing for API responses.
Auto-rerun on file change (TDD).
Trace back every previous execution.
Switch your API base URL safely.
Re-run and diff to catch regressions.
AI generates a .flow.md from text.