☁️ Data synchronization and team collaboration are available as part of our Mockoon Cloud subscription. It allows you to share your environments with your team and collaborate in real-time.
Each file can be easily shared with other Mockoon's users, "as-is". After locating your environment file, you can share it with your coworkers by using Git for example. You coworkers can then save the file in any folder and open it directly using the "Open environment" button:
You can save your environment data files in a Git-tracked folder to make sharing easier. By default, an environment file JSON content is saved pretty-printed to allow comparing changes between two commits. You can disable pretty printing in the settings:
The CLI is directly compatible with environment files. After locating your environment file, you run them with the CLI using the following command: mockoon-cli start -d ./path-to-file/environment-data-file.json
.
Mockoon allows you to easily copy an environment or a route's JSON configuration to the clipboard and create a new environment or route from the clipboard's data.
To copy a specific environment or route's JSON data to the clipboard, right-click on the environment or route and select Copy to clipboard (JSON):
The resulting JSON can be saved in a file and directly opened in the desktop app or used with the CLI.
To create a new environment from data present in the clipboard, open the File menu and select New environment from clipboard:
You will be prompted to choose a save location for your new environment.
To create a new route from data present in the clipboard, open the Routes menu and select Add route from clipboard:
The new route will be added to your active environment's routes.