1. AddEndpointCommand

クラス AddEndpointCommand

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

新しい Sitecore.CH.Cli.Core.Models.Endpoint を追加し、アクティブとして選択します。

継承
System.Object
Sitecore.CH.Cli.Core.Abstractions.Commands.BaseCommand<Sitecore.CH.Cli.Core.CommandHandlers.Endpoints.AddEndpointCommandHandler>
AddEndpointCommand
名前空間: Sitecore.CH.Cli.Core.Commands.Endpoints
アセンブリ: Sitecore.CH.Cli.Core.dll
構文
public class AddEndpointCommand : BaseCommand<AddEndpointCommandHandler>
備考

必要なパラメーター

  • --name -n エンドポイントの名前。
  • --url -r エンドポイントの URL。
  • --client-id -i エンドポイントのクライアント ID。
  • --client-secret -s エンドポイントのクライアント シークレット。

任意のパラメーター

  • --password -p ユーザー パスワード。
  • --username -u ユーザー名。
  • --redirect-uri -d OAuth フローを完了するためのローカル URI を指定します。指定された OAuth クライアント用に設定された値と一致する必要があります。既定値: http://localhost:9000/

グローバル パラメーター

  • -? --help -hこのヘルプ メッセージを表示し、終了します。
  • -v --verbosity 詳細ログを有効にします。

標準入力のユーザー名とパスワードを使用して、エンドポイントで認証します。

cat ./password.txt | ch-cli endpoint add -n "<endpoint name>" -r "<endpoint url>" -i "<client id>" -s "<client secret>" -u "<user name>"

ユーザー名とパスワードを使用して、エンドポイントで認証します。

ch-cli endpoint add -n "<endpoint name>" -r "<endpoint url>" -i "<client id>" -s "<client secret>" -u "<user name>" -p "<password>"

エンドポイントでインタラクティブに認証します。

ch-cli endpoint add -n "<endpoint name>" -r "<endpoint url>" -i "<client id>" -s "<client secret>"

既定以外のリダイレクト URI を使用して、エンドポイントで認証します。

ch-cli endpoint add -n "<endpoint name>" -r "<endpoint url>" -i "<client id>" -s "<client secret>" --redirect-uri "http://localhost:9005/"
この記事を改善するための提案がある場合は、 お知らせください!