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

Commit 676116a

Browse files
author
Guillaume
committed
Merge branch 'release/next' into main
2 parents 076cdcf + d37edcb commit 676116a

14 files changed

+916
-1716
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
uses: actions/setup-node@v2
2525
with:
2626
node-version: ${{ matrix.node }}
27+
- name: Update NPM
28+
run: |
29+
npm install -g npm@latest
2730
- name: NPM install, lint and build
2831
run: |
2932
npm ci

.github/workflows/publish.yml

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
uses: actions/setup-node@v2
2121
with:
2222
node-version: "14"
23+
- name: Update NPM
24+
run: |
25+
npm install -g npm@latest
2326
- name: NPM install and build
2427
run: |
2528
npm ci

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ Mockoon's CLI has been tested on Node.js versions 10, 12, 14, and 15.
8686
8787
### Mockoon data files
8888
89+
The CLI currently supports only data files exported using the [main application](https://mockoon.com) in Mockoon's own format.
8990
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`.
9091
9192
## Commands
@@ -106,12 +107,13 @@ USAGE
106107
$ mockoon-cli start
107108

108109
OPTIONS
110+
-a, --all Run all environments
109111
-d, --data=data (required) Path or URL to your Mockoon data export file
110112
-i, --index=index Environment's index in the data file
111113
-n, --name=name Environment name in the data file
112-
-p, --port=port Override environment's port
113114
-N, --pname=pname Override process name
114-
-a, --all Run all environments
115+
-p, --port=port Override environment's port
116+
-l, --hostname=0.0.0.0 Override default listening hostname (0.0.0.0)
115117
-h, --help show CLI help
116118

117119
EXAMPLES

docker/runner.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22

3-
mockoon-cli start "$@"
3+
mockoon-cli start "$@" -l 0.0.0.0
44
sleep infinity & wait $!

0 commit comments

Comments
 (0)