Class RefreshEndpointCommand
Version: 4.0
Refreshes the connection to the active or specified Sitecore.CH.Cli.Core.Models.Endpoint.
Inheritance
object
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<THandler>Sitecore.CH.Cli.Core.CommandHandlers.Endpoints.RefreshEndpointCommandHandler
RefreshEndpointCommand
Namespace: SitecoreSitecore.CHSitecore.CH.CliSitecore.CH.Cli.CoreSitecore.CH.Cli.Core.CommandsEndpoints
Assembly: Sitecore.CH.Cli.Core.dll
Syntax
RequestResponse
public class RefreshEndpointCommand : BaseCommand<RefreshEndpointCommandHandler>
Remarks
Optional parameters
--password -p
User password.--redirect-uri -d
Specifies a local URI to complete the OAuth flow. Needs to match the value configured for the given OAuth client. Default value: http://localhost:9000/
Global parameters
-? --help -h
Show this help message and exit.-v --verbosity
Enables verbose logging.
Examples
Refresh connection interactively:
RequestResponse
ch-cli endpoint refresh
Refresh connection using a specified password:
RequestResponse
ch-cli endpoint refresh --password "<password>"
Refresh connection using a password from the standard input:
RequestResponse
cat ./password.txt | ch-cli endpoint refresh