Mockoon release v6.0.1


 Patch 6.0.1 fixes the following issues

  • Fixed a silent crash occuring when focusing a route in a folder of a new environment. (Issue #1210)
  • Fixed a null pointer exception when opening the command palette when no environment is open.
  • Some minor UI fixes.

 v6.0.0 release notes

Welcome to this new release of Mockoon. It brings new exciting features: callbacks, allowing you to make HTTP calls after receiving a request, new CLI import and export commands, and lots of fixes. Read on to learn more about this release.

 Our sponsors

GitHub Localazy

Mockoon is an open-source project built by volunteer maintainers. If you like our application, please consider sponsoring us and join all the Sponsors and Backers who helped this project over time!

sponsor button

 ⚠️ Breaking changes

We introduced some breaking changes in this major release:

  • Routes toggling and folders collapsing are now saved at the application level. More details below.

  • The compatibility of the desktop application with the legacy migration system (pre v1.7.0) was removed. If you are still using a (very!) old version of the desktop application, please upgrade to v5.1.0 before upgrading to v6.0.0. (Issue #1193)

 Routes toggling and folders collapsing migration

Before this update, routes toggling and folders collapsing were saved at the environment level. When working on our team collaboration feature, we realized that this was not the best way to handle this and that these were rather personal preferences as team members may not be working with the same endpoints at the same time. We therefore decided to migrate these settings to the application level.

A data migration will run when you open the application for the first time after the update. This migration will copy your current routes toggling and folders collapsing settings to the application level.

One consequence is that disabled routes in the UI won't be honored by the CLI automatically. If you want to disable some routes when running the CLI, you can use the --disable-routes flag: mockoon-cli start --data ~/data.json --disable-routes route1 route2 (disable all routes containing "route1" or "route2"). This flag supports multiple keywords or UUIDs.

When using the serverless package, you can achieve the same result by passing an array of UUIDs or keywords to the disabledRoutes option:

const mockoonServerless = new mockoon.MockoonServerless(mockEnv, { // disable all routes containing 'users' in their path, and the route with UUID '0999df54-7d57-407e-9325-c18d97fea729' disabledRoutes: ['users', '0999df54-7d57-407e-9325-c18d97fea729'] });

(Issue #1189)

 New callbacks feature

This release introduces a new feature called "callbacks". Callbacks are a way to make one or more HTTP calls after an entering request reaches your route. This is useful to call other APIs or micro-services or to trigger a webhook. Callbacks are fully configurable and can be activated after a certain delay:

the callback configuration interface

You can also associate different callbacks to different route responses:

the callback invocation interface

Head over to the documentation to learn more about this feature.

(Issue #709)

 New CLI import/export commands

Two new commands have been added to the CLI to import and export your mocks from and to an OpenAPI specification file. These commands are the equivalent of the import/export menu options in the desktop application.

Here is an example of how to use the commands:

mockoon-cli import --input ~/openapi-spec.json --output ./mock.json mockoon-cli export --input ~/mock.json --output ./openapi-spec.json

You will find more information about these commands in the CLI documentation.

(Issue #678)

 Desktop application

  • The desktop application now displays the environment name in the title bar.

  • We migrated the interface to Bootstrap 5. This was long overdue and will allow us to use the latest Angular features in the future. It was also a good opportunity to clean up the code and polish the interface. (Issue #1185)

  • When recording requests or mocking from the logs, paths containing parentheses are now correctly handled and escaped in the created route path. (Issue #1190)

  • Copying a route URL to the clipboard (right click -> Copy full path to clipboard) now correctly uses the hostname defined in the environment settings. (Issue #1201)

  • We fixed a bug introduced in v5.1.0, causing the app to start in a blank state in rare conditions. (Issue #1203)


  • Following Faker.js update to v8 in the previous release, it was brought to our attention that the helper was producing numbers from 0 to Number.MAX_SAFE_INTEGER instead of a previous maximum of 99999, which could cause out of bounds exceptions on some systems. We took extra care to migrate all your helpers in the previous version and went through all the changes in Faker.js v8, but this one slipped through. We apologize for the inconvenience and fixed the migration script and usages of the helpers throughout all our resources (documentation, etc.). (Issue #1174)


  • We partially rewrote the desktop application reducer to prepare for the cloud synchronization feature. It was the occasion to fix some small performance issues here and there. (Issue #1203)

 Thank you

A big thank you to the following people who helped to make Mockoon better: