Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/next' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume committed Aug 16, 2021
2 parents 076cdcf + d37edcb commit 676116a
Show file tree
Hide file tree
Showing 14 changed files with 916 additions and 1,716 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Update NPM
run: |
npm install -g npm@latest
- name: NPM install, lint and build
run: |
npm ci
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: "14"
- name: Update NPM
run: |
npm install -g npm@latest
- name: NPM install and build
run: |
npm ci
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Mockoon's CLI has been tested on Node.js versions 10, 12, 14, and 15.
### Mockoon data files
The CLI currently supports only data files exported using the [main application](https://mockoon.com) in Mockoon's own format.
The CLI can import and migrate data from older versions of Mockoon. If you exported the data file with a more recent version of the application, you may need to update your CLI with the following command: `npm install -g @mockoon/cli`.
## Commands
Expand All @@ -106,12 +107,13 @@ USAGE
$ mockoon-cli start

OPTIONS
-a, --all Run all environments
-d, --data=data (required) Path or URL to your Mockoon data export file
-i, --index=index Environment's index in the data file
-n, --name=name Environment name in the data file
-p, --port=port Override environment's port
-N, --pname=pname Override process name
-a, --all Run all environments
-p, --port=port Override environment's port
-l, --hostname=0.0.0.0 Override default listening hostname (0.0.0.0)
-h, --help show CLI help

EXAMPLES
Expand Down
2 changes: 1 addition & 1 deletion docker/runner.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

mockoon-cli start "$@"
mockoon-cli start "$@" -l 0.0.0.0
sleep infinity & wait $!
Loading

0 comments on commit 676116a

Please sign in to comment.