Skip to content

Commit

Permalink
Add options for self-update
Browse files Browse the repository at this point in the history
  • Loading branch information
Pete Bishop committed Feb 10, 2025
1 parent d8bc946 commit 25eda9a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
2 changes: 0 additions & 2 deletions Writerside/topics/New.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ nativecli new <directory-name>

## Options

Describe what each option is used for:

<tip>The options below are only available from version 1.0.1-release.1 and later.</tip>

--ios
Expand Down
2 changes: 0 additions & 2 deletions Writerside/topics/cache-clear.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ nativecli cache:clear [OPTIONS]

## Options

Describe what each option is used for:

-c, --cache
: Select a specific cache to clear. If not specified, all caches will be cleared.

Expand Down
4 changes: 1 addition & 3 deletions Writerside/topics/check-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ nativecli check-update [OPTIONS]

## Options

Describe what each option is used for:

-f, --format
: By default, update status is output in `text`. For progrmatic use, `json` is also a valid option:
: By default, update status is output in `text`. For programmatic use, `json` is also a valid option:

: ```nativecli check-update --format json```

Expand Down
11 changes: 8 additions & 3 deletions Writerside/topics/self-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ nativecli self-update [VERSION]

## Options

Describe what each option is used for:
<tip>All options are only available since v1.0.1-release.1</tip>

Version
: No flag required. If a version is specified, NativeCLI will attempt to update to that version. If no version is specified, NativeCLI will update to the latest stable version.
-f, --format
: By default, update status is output in `text`. For programmatic use, `json` is also a valid option:

: ```nativecli self-update --format json```

--check
: Check for updates without updating.

## Examples

Expand Down
2 changes: 0 additions & 2 deletions Writerside/topics/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ nativecli update [OPTIONS]

## Options

Describe what each option is used for:

-n, --non-interactive
: Provides a non-interactive experience, suitable for CI. Updates are processed immediately to the
latest available version.
Expand Down

0 comments on commit 25eda9a

Please sign in to comment.