Select-HubContext
2025-01-30
Select-HubContext
SYNOPSIS
Select another PSHubContext to change the current PSHubContext
SYNTAX
__AllParameterSets
Select-HubContext -ApplicationKey <string> [<CommonParameters>]
ALIASES
This cmdlet has the following aliases,
DESCRIPTION
Select another PSHubContext to change the current PSHubContext who will be used for all Hub commands.
EXAMPLES
EXAMPLE
PS C:> $availCtxs = Get-HubContext; Select-HubContext -ApplicationKey $availCtxs[2].ApplicationKey
The user fetches all available contexts and set the third one as the new current context.
PARAMETERS
-ApplicationKey
Select a connected Hub context to current session
Type: System.String
DefaultValue: ''
SupportsWildcards: false
ParameterValue: []
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: true
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.
INPUTS
OUTPUTS
NOTES
For more information, type "Get-Help Select-HubContext -detailed". For technical information, type "Get-Help Select-HubContext -full".