@@ -29,31 +29,17 @@ PS> Invoke-NovaCli [[-Command] <string>] [[-Arguments] <string[]>] [-WhatIf] [-C
2929
3030Use it when you need scripted routing inside PowerShell, for example in tests, automation, or wrapper functions.
3131
32- Use the installed ` nova ` launcher when you want the end-user CLI experience. The module does not export ` nova ` as a
33- PowerShell alias .
32+ ` Invoke-NovaCli ` routes the same top-level command names as the bundled command-line launcher, but it keeps the entry
33+ surface explicit for PowerShell callers .
3434
35- ` Invoke-NovaCli ` routes the same top-level commands that the launcher supports, including ` % nova info ` , `% nova
36- version` , ` % nova --version` , ` % nova --help` , ` % nova build` , ` % nova test` , ` % nova package` , ` % nova deploy` , ` % nova
37- init` , ` % nova bump` , ` % nova update` , ` % nova notification` , ` % nova publish` , and ` % nova release`.
35+ Use ` -Command ` to select the routed command and ` -Arguments ` when a routed command needs additional raw arguments.
3836
39- Mutating routed commands forward CLI ` --verbose ` /` -v ` and ` --what-if ` /` -w ` to the underlying cmdlet. Routed CLI
40- ` --confirm ` /` -c ` is handled by the shared CLI confirmation flow so the launcher never exposes PowerShell's interactive
41- ` Suspend ` prompt.
42-
43- Only the supported mutating ` nova ` commands accept ` --confirm ` /` -c ` . Read-only routes and ` % nova init ` reject the CLI
44- confirm flag with a clear validation error.
37+ When ` -Command ` is omitted, ` Invoke-NovaCli ` routes to the root help view.
4538
4639Direct PowerShell cmdlets such as ` Invoke-NovaBuild ` , ` Publish-NovaModule ` , ` Deploy-NovaPackage ` ,
4740` Update-NovaModuleVersion ` , and ` Invoke-NovaRelease ` keep their native ` -WhatIf ` and ` -Confirm ` behavior when called
4841directly.
4942
50- Use ` % nova <command> --help ` or ` % nova <command> -h ` when you want short CLI help for a specific command.
51-
52- Use ` % nova --help <command> ` or ` % nova -h <command> ` when you want long CLI help for a specific command.
53-
54- The launcher help is CLI-native and uses CLI option spellings such as ` --repository ` and ` -r ` . Use PowerShell
55- ` Get-Help ` when you want cmdlet help instead.
56-
5743## EXAMPLES
5844
5945### EXAMPLE 1
@@ -67,68 +53,44 @@ Routes the build workflow through the explicit PowerShell cmdlet entrypoint.
6753### EXAMPLE 2
6854
6955``` text
70- PS> Invoke-NovaCli -Command publish -Arguments @('--local') -WhatIf
56+ PS> Invoke-NovaCli -Command version
7157```
7258
73- Routes the local publish workflow while keeping native PowerShell ` -WhatIf ` on the outer call .
59+ Routes the version workflow through the explicit PowerShell cmdlet entrypoint .
7460
7561### EXAMPLE 3
7662
7763``` text
78- PS> Invoke-NovaCli -Command init -Arguments @('--example', '--path', '~/Work')
64+ PS> Invoke-NovaCli -Command update -WhatIf
7965```
8066
81- Starts the example scaffold flow from the explicit PowerShell cmdlet entrypoint .
67+ Routes the self-update workflow while previewing the outer PowerShell action .
8268
8369### EXAMPLE 4
8470
8571``` text
86- % nova build --confirm
72+ PS> Invoke-NovaCli -Command notification
8773```
8874
89- Runs the routed build workflow through the launcher-facing CLI surface and uses the shared CLI confirmation flow .
75+ Routes the notification-preference status workflow through the explicit PowerShell cmdlet entrypoint .
9076
9177### EXAMPLE 5
9278
9379``` text
94- % nova version --installed
95- ```
96-
97- Returns the locally installed version of the current project/module.
98-
99- ### EXAMPLE 6
100-
101- ``` text
102- % nova --version
103- ```
104-
105- Returns the installed ` NovaModuleTools ` module version.
106-
107- ### EXAMPLE 7
108-
109- ``` text
110- % nova update
111- ```
112-
113- Runs the self-update flow through the launcher-oriented CLI surface.
114-
115- ### EXAMPLE 8
116-
117- ``` text
118- % nova notification --disable
80+ PS> Invoke-NovaCli -Command build -Confirm
11981```
12082
121- Disables prerelease self-update eligibility through the launcher-facing CLI surface .
83+ Prompts before the routed build workflow starts .
12284
12385## PARAMETERS
12486
12587### -Command
12688
127- Top-level Nova command to route. Defaults to ` -- help` .
89+ Top-level Nova command to route. When omitted, the cmdlet routes to the root help view .
12890
12991``` yaml
13092Type : System.String
131- DefaultValue : -- help
93+ DefaultValue : (root help view)
13294SupportsWildcards : false
13395Aliases : [ ]
13496ParameterSets :
@@ -147,6 +109,8 @@ HelpMessage: ''
147109
148110Raw routed argument list for the selected Nova command.
149111
112+ Use this parameter when a routed command needs additional command-specific arguments.
113+
150114` ` ` yaml
151115Type : System.String[]
152116DefaultValue : ' '
@@ -187,10 +151,11 @@ Returns the same output that the selected routed Nova command returns.
187151Use `Invoke-NovaCli` directly when you need the underlying PowerShell command in scripts, tests, or command dispatch
188152scenarios.
189153
190- Install the bundled `nova` launcher with `Install-NovaCli` when you want `% nova ...` available from your shell.
154+ Install the bundled command-line launcher with `Install-NovaCli` when you want the same routed command surface from
155+ your shell.
191156
192157` Invoke-NovaCli` uses `SupportsShouldProcess` so the outer PowerShell call still surfaces native `-WhatIf` and
193- ` -Confirm` , while routed CLI `--confirm`/`-c` stays inside the shared CLI confirmation flow .
158+ ` -Confirm` support .
194159
195160# # RELATED LINKS
196161
0 commit comments