Skip to content

mockoon-cli list or stop commands #1344

Answered by 255kb
sthuettr asked this question in Help
Discussion options

You must be logged in to vote

Hi,

In the past, the CLI was embarking PM2 to directly manage the running mocks. We removed this in v4.0.0 together with the stop and list commands.

The CLI will now run by default as a foreground process. If you are using the Node.js ecosystem, you can still run it using PM2 but you will have to install it.
On Linux it's also quite easy to run a background process by appending an & at the end of the command. With PowerShell you would have to use Start-Process (or & with PowerShell 6).

The CLI is also able to run multiple mocks:
mockoon-cli start --data ./mock1.json ./mock2.json --port 3000 3001

The official and up-to-date documentation is here and only here. If you found some outdated do…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sthuettr
Comment options

Answer selected by sthuettr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants