mockoon-cli

Create and run mock REST APIs locally and in CI/CD environments.

3|Updated Nov 14, 2025
One-click install
npx skills add https://github.com/evolv3ai/claude-skills-archive --skill mockoon-cli-evolv3ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mockoon-cli
Source: https://github.com/evolv3ai/claude-skills-archive/tree/main/skills/mockoon-cli
Command: npx skills add https://github.com/evolv3ai/claude-skills-archive --skill mockoon-cli-evolv3ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies the creation and management of mock REST APIs, essential for development, testing, and CI/CD pipelines without needing actual backend services.

Core Features & Use Cases

  • Mock API Server: Run mock APIs directly from Mockoon data files or OpenAPI specifications.
  • OpenAPI Integration: Import OpenAPI/Swagger definitions to generate mock environments.
  • Dynamic Data: Utilize Faker.js for generating realistic, dynamic fake data in responses.
  • Docker Support: Easily containerize mock APIs for consistent deployment.
  • CI/CD Ready: Integrate mock APIs into automated workflows.

Quick Start

Install the Mockoon CLI globally and start a mock server using a local data file named 'api-mock.json' on port 3000.

Frequently Asked Questions about mockoon-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a mock REST API from an OpenAPI specification?

To create a mock REST API from an OpenAPI specification, import the OpenAPI/Swagger definitions to automatically generate mock environments. The CLI then serves the simulated endpoints locally, allowing frontend and integration testing without actual backend services.

Can I generate dynamic fake data for my mock API responses?

Yes, you can generate dynamic fake data for mock API responses by utilizing Faker.js. This mechanism allows the CLI to produce realistic, randomized values within your simulated REST endpoints, providing varied payloads for thorough integration testing and development scenarios.

How do I run mock APIs in a CI/CD pipeline?

You can run mock APIs in a CI/CD pipeline by using the command-line interface to start mock servers from data files during automated workflows. This facilitates API development and integration testing by simulating backend responses dynamically within the pipeline environment.

Does this CLI support containerizing mock services with Docker?

Yes, the CLI supports containerizing mock services with Docker to ensure consistent deployment across environments. You can easily create Docker images for your mock APIs, packaging the simulated REST endpoints and data files for portable integration testing.

What's the best way to simulate backend responses for integration testing?

The best way to simulate backend responses for integration testing is running a mock API server directly from local data files. This approach simulates realistic backend responses without needing actual services, facilitating seamless API development and automated CI/CD pipeline workflows.