File tree 1 file changed +27
-2
lines changed
1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ $ bump --help
88
88
The Bump.sh CLI is used to interact with your API documentation hosted on Bump.sh by using the API of developers.bump.sh
89
89
90
90
VERSION
91
- bump-cli/2.9.2 linux-x64 node-v20.18.1
91
+ bump-cli/2.9.3 linux-x64 node-v20.18.1
92
92
93
93
USAGE
94
94
$ bump [COMMAND]
@@ -325,12 +325,37 @@ Make sure to have Node.js (At least v20) installed on your machine.
325
325
```
326
326
327
327
- Run the test suites
328
-
328
+
329
329
``` shell
330
330
npm run test
331
331
npm run test-coverage # Run tests with coverage
332
332
```
333
333
334
+ ### Use package in local environment
335
+
336
+ You can run the package by executing the file ` bin/run.js ` locally:
337
+
338
+ ``` shell
339
+ bin/run.js
340
+ ```
341
+
342
+ For example to generate a preview:
343
+
344
+ ``` shell
345
+ ./bin/run.js preview path/to/file.json
346
+ > Your preview is visible at: https://bump.sh/preview/42
347
+ ```
348
+
349
+ Please note that even if CLI is running locally, by default requests are sent to [ Bump.sh API] ( https://developers.bump.sh/ ) .
350
+
351
+ If you have a local version of the Bump.sh API, you can run CLI 100% in local environment
352
+ by setting the environment variable ` BUMP_HOST ` :
353
+
354
+ ``` shell
355
+ BUMP_HOST=" http://localhost:3000" ./bin/run.js preview path/to/file.json
356
+ > Your preview is visible at: http://localhost:3000/preview/42
357
+ ```
358
+
334
359
## License
335
360
336
361
The Bump CLI project is released under the [ MIT License] ( http://opensource.org/licenses/MIT ) .
You can’t perform that action at this time.
0 commit comments