The CLI supports all of Mockoon's features: dynamic templating, response rules, proxy mode, OpenAPI compatibility, etc.
View all featuresDeploy lighting fast mock servers in your CI environment with a simple and easy to use NPM package or Docker image.
How to use itAlso available as a Docker image and a GitHub Action, run your mock APIs in your favorite CI platform!
Getting started tutorialCopy- name: Run Mockoon CLI uses: mockoon/cli-action@v2 with: # Mockoon CLI version, default to 'latest' version: "latest" # Mockoon local data file or URL data-file: "./mockoon-data.json" # port, default to 3000 port: 3000 - name: Make test call run: curl -X GET http://localhost:3000/endpoint