-
Hi all, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 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. The CLI is also able to run multiple mocks: The official and up-to-date documentation is here and only here. If you found some outdated documentation please let us know so we can update or remove it (unless it was an old blog post!). |
Beta Was this translation helpful? Give feedback.
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
andlist
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 useStart-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…