Mockoon CLI
An open-source API mock server that lets you create and run fake REST APIs for development and testing. Define endpoints with custom responses, headers, latency, and rules — all without writing backend code.
What You Can Do After Deployment
- Visit your domain — verify the mock server is running
- Define mock routes — configure endpoints via environment files or the Mockoon desktop app
- Send requests — point your frontend or integration tests at the mock server
- Simulate latency — add response delays to test loading states and timeouts
- Use dynamic responses — leverage templating helpers to generate realistic fake data
Key Features
- Create unlimited mock API endpoints with custom responses
- Response rules for conditional responses based on request parameters
- Built-in templating with Faker.js helpers for dynamic data
- Configurable response latency and HTTP status codes
- CORS support out of the box
- Import and export via OpenAPI / Swagger specs
- Proxy mode to forward unmatched requests to a real API
- Logging of all incoming requests for debugging
- Stateless — no database required
License
MIT — GitHub | Website