Select another PSHubContext to change the current PSHubContext
Select-HubContext -ApplicationKey <string> [<CommonParameters>]
Select another PSHubContext to change the current PSHubContext who will be used for all Hub commands.
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.
Select a connected Hub context to current session
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
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.
For more information, type "Get-Help Select-HubContext -detailed". For technical information, type "Get-Help Select-HubContext -full".