@@ -4,7 +4,7 @@ external help file: NovaModuleTools-Help.xml
44HelpUri : ' '
55Locale : en-US
66Module Name : NovaModuleTools
7- ms.date : 04/25 /2026
7+ ms.date : 05/06 /2026
88PlatyPS schema version : 2024-05-01
99title : Get-NovaProjectInfo
1010---
@@ -13,16 +13,28 @@ title: Get-NovaProjectInfo
1313
1414## SYNOPSIS
1515
16- Reads ` project.json ` and returns resolved NovaModuleTools project metadata.
16+ Reads ` project.json ` and returns resolved NovaModuleTools project metadata or a version-focused view .
1717
1818## SYNTAX
1919
20- ### __ AllParameterSets
20+ ### ProjectInfo
21+
22+ ``` text
23+ PS> Get-NovaProjectInfo [[-Path] <string>] [<CommonParameters>]
24+ ```
25+
26+ ### ProjectVersion
2127
2228``` text
2329PS> Get-NovaProjectInfo [[-Path] <string>] [-Version] [<CommonParameters>]
2430```
2531
32+ ### InstalledVersion
33+
34+ ``` text
35+ PS> Get-NovaProjectInfo [-Installed] [<CommonParameters>]
36+ ```
37+
2638## DESCRIPTION
2739
2840` Get-NovaProjectInfo ` reads the ` project.json ` file in a NovaModuleTools project and returns a project information
@@ -37,6 +49,9 @@ Use this command from scripts, tests, or troubleshooting when you want one objec
3749
3850When you use ` -Version ` , the command returns only the project version string instead of the full project object.
3951
52+ When you use ` -Installed ` , the command returns the installed ` NovaModuleTools ` module name and version string instead of
53+ project metadata.
54+
4055## EXAMPLES
4156
4257### EXAMPLE 1
@@ -63,6 +78,14 @@ PS> Get-NovaProjectInfo -Version
6378
6479Returns only the version string from ` project.json ` .
6580
81+ ### EXAMPLE 4
82+
83+ ``` text
84+ PS> Get-NovaProjectInfo -Installed
85+ ```
86+
87+ Returns the installed ` NovaModuleTools ` module name and version string.
88+
6689## PARAMETERS
6790
6891### -Path
@@ -75,12 +98,18 @@ DefaultValue: (Get-Location).Path
7598SupportsWildcards : false
7699Aliases : []
77100ParameterSets :
78- - Name : (All)
79- Position : 0
80- IsRequired : false
81- ValueFromPipeline : false
82- ValueFromPipelineByPropertyName : false
83- ValueFromRemainingArguments : false
101+ - Name : ProjectInfo
102+ Position : 0
103+ IsRequired : false
104+ ValueFromPipeline : false
105+ ValueFromPipelineByPropertyName : false
106+ ValueFromRemainingArguments : false
107+ - Name : ProjectVersion
108+ Position : 0
109+ IsRequired : false
110+ ValueFromPipeline : false
111+ ValueFromPipelineByPropertyName : false
112+ ValueFromRemainingArguments : false
84113DontShow : false
85114AcceptedValues : []
86115HelpMessage : ' '
@@ -96,12 +125,33 @@ DefaultValue: False
96125SupportsWildcards : false
97126Aliases : []
98127ParameterSets :
99- - Name : (All)
100- Position : Named
101- IsRequired : false
102- ValueFromPipeline : false
103- ValueFromPipelineByPropertyName : false
104- ValueFromRemainingArguments : false
128+ - Name : ProjectVersion
129+ Position : Named
130+ IsRequired : false
131+ ValueFromPipeline : false
132+ ValueFromPipelineByPropertyName : false
133+ ValueFromRemainingArguments : false
134+ DontShow : false
135+ AcceptedValues : []
136+ HelpMessage : ' '
137+ ` ` `
138+
139+ ### -Installed
140+
141+ Return the installed ` NovaModuleTools` module name and version string instead of project metadata.
142+
143+ ` ` ` yaml
144+ Type: System.Management.Automation.SwitchParameter
145+ DefaultValue: False
146+ SupportsWildcards: false
147+ Aliases: []
148+ ParameterSets:
149+ - Name: InstalledVersion
150+ Position: Named
151+ IsRequired: false
152+ ValueFromPipeline: false
153+ ValueFromPipelineByPropertyName: false
154+ ValueFromRemainingArguments: false
105155DontShow: false
106156AcceptedValues: []
107157HelpMessage: ''
@@ -125,6 +175,10 @@ You can't pipe objects to this cmdlet.
125175
126176Returned when you use `-Version`.
127177
178+ # ## System.String
179+
180+ Returned when you use `-Installed`.
181+
128182# ## PSCustomObject
129183
130184Returned by default. The object includes project metadata, defaulted build settings, and resolved paths.
@@ -133,6 +187,8 @@ Returned by default. The object includes project metadata, defaulted build setti
133187
134188This command throws a clear error when `project.json` is missing or empty.
135189
190+ ` -Installed` does not require a project path or a `project.json` file.
191+
136192# # RELATED LINKS
137193
138194- https://github.com/stiwicourage/NovaModuleTools/blob/main/docs/NovaModuleTools/en-US/Invoke-NovaBuild.md
0 commit comments