Publish-AdmfContext
SYNOPSIS
Publishes a Context as a PowerShell Package.
SYNTAX
Path
Publish-AdmfContext -Path <string> -Repository <string> [-ApiKey <string>] [-GetV3]
[<CommonParameters>]
Store
Publish-AdmfContext -Name <string> -Repository <string> [-Store <string>] [-Version <version>]
[-ApiKey <string>] [-GetV3] [<CommonParameters>]
DESCRIPTION
Publishes a Context as a PowerShell Package.
This wraps a Context as its own PowerShell module named "ADMF.Context.<ContextName>".
It uses the version number in the context.json for the module version. All dependent contexts are declared as a module dependency following the same naming scheme.
EXAMPLES
EXAMPLE 1
Publish-AdmfContext -Path 'C:\ADMF\Default\1.0.0' -Repository Contoso
Publishes the "Default" Context to the Contoso repository
PARAMETERS
-ApiKey
API Key of the repository to publish to. Defaults to "Whatever"
Type: System.String
DefaultValue: whatever
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-GetV3
Use PowerShellGet V3 or later. Defaults to the configuration setting of ADMF.PowerShellGet.UseV3.
Type: System.Management.Automation.SwitchParameter
DefaultValue: (Get-PSFConfigValue -FullName ADMF.PowerShellGet.UseV3 -Fallback $false)
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Name
Name of the Context to publish. Will search known Context stores for available Contexts.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Store
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Path
Path to the Context to publish.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Path
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Repository
Repository to publish the Context to.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Store
Store to search for the Context to publish. Will search all stores if not otherwise specified.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Store
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Version
Version of the Context to publish. Will publish the latest version if not specified.
Type: System.Version
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Store
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.