Skip to content

Commit

Permalink
docs: add docs for --force option on start
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVandivier committed Jul 24, 2024
1 parent eb2cc58 commit 4bcb812
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions cli/src/commands/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,16 @@ const command = {
aliases: 's',
desc: 'Start a development server running a DHIS2 app within the DHIS2 app-shell',
builder: {
force: {
type: 'boolean',
description:
'Force updating the app shell. Normally, this is only done when a new version of @dhis2/cli-app-scripts is detected',
},
port: {
alias: 'p',
type: 'number',
description: 'The port to use when running the development server',
default: defaultPort,
},
proxy: {
alias: 'P',
Expand Down
9 changes: 6 additions & 3 deletions docs/scripts/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ Global Options:
--config Path to JSON config file

Options:
--cwd working directory to use (defaults to cwd)
--port, -p The port to use when running the development server [number]
--cwd working directory to use (defaults to cwd)
--force Force updating the app shell. Normally, this is only done when a
new version of @dhis2/cli-app-scripts is detected [boolean]
--port, -p The port to use when running the development server
[number] [default: 3000]
--proxy, -P The remote DHIS2 instance the proxy should point to [string]
--proxyPort The port to use when running the proxy [number] [default: 8080]
--host Exposes the server on the local network. Can optionally provide
an address to use. [boolean or string]
an address to use. [boolean or string]
```

0 comments on commit 4bcb812

Please sign in to comment.