Install
Install Mock Studio 1.2.0 on Linux from a .deb package or from the Snap Store, then open it for the first time.
If you have not installed a .deb or a snap before, Installing apps explains both.
Which package to choose
| Package | Works on | Public tunnels |
|---|---|---|
.deb | Debian, Ubuntu and related systems, amd64 | Yes, with cloudflared or ngrok installed |
| Snap | Any system with snapd | Not from inside the app |
Both contain the same app. The difference is tunnels: a snap runs in a sandbox and cannot start the cloudflared or ngrok programs on your computer. Sharing on your local network works in both. If you want the Start public tunnel button to work, use the .deb. With the snap you can still run the tunnel program yourself in a terminal; see Share on LAN or the internet.
Install the .deb package
Open the 1.2.0 release page and download
mockstudio_1.2.0_amd64.deb.Optional: download
mockstudio_1.2.0_amd64.deb.sha256into the same folder and check the download.bashsha256sum -c mockstudio_1.2.0_amd64.deb.sha256The command prints
OKwhen the file is intact.Install the package from the folder you downloaded it to.
bashsudo apt install ./mockstudio_1.2.0_amd64.deb
The package needs GTK 3, which apt installs for you if it is missing.
Install the snap
sudo snap install mockstudioOpen Mock Studio
Find Mock Studio in your applications menu, or run mockstudio in a terminal.
The first time it opens, Mock Studio creates a sample project called My First Mock API with four endpoints, so there is something to try straight away. The server is stopped until you press Start server.
Good to know
Hover help is on when you first open the app. Point at any question-mark icon to read what a field does, with an example. You can turn it off later in Settings.
Optional: install a tunnel program
You only need this to give your mock a public internet address, for example to receive webhooks. Mock Studio does not include a tunnel program; it starts one that is installed on your computer.
cloudflared needs no account. Install it from Cloudflare's download page or its GitHub releases.
ngrok needs a free account. After installing it, save your token once:
bashngrok config add-authtoken <token>
Share on LAN or the internet explains how to use them and what to be careful about.
Uninstall
sudo apt remove mockstudio # the .deb
sudo snap remove mockstudio # the snapRemoving the .deb leaves your project files in place. See Projects, files and Git for where they are.