Salesforce CLI の設定とヒント
大部分の開発およびテストタスクに Salesforce CLI を使用します。これらのタスクには、Dev Hub 組織の認証、スクラッチ組織の作成、スクラッチ組織と VCS 間のソースコードの同期、テストの実行が含まれます。
Salesforce CLI は、インストールの直後に使用を開始できます。
CLI コマンドは、最上位トピックにグループ化されています。たとえば、org の最上位トピックには、org list、org create sandbox、org generate password などの組織を作成および管理するコマンドが含まれています。config の最上位トピックには、設定値を管理するためのコマンドが含まれています。
詳細を取得するには、各レベルで --help を実行します。
1sf --help // lists all top-level topics
2sf org --help // lists all the topics and commands under "org"
3sf org create --help // lists all the commands in the subtopic "org create"
4sf org create sandbox --help // detailed info about the "org create sandbox" command
5sf org create sandbox -h // quick and short info about the "org create sandbox" command次のコマンドを実行すると、使用可能なすべての Salesforce CLI コマンドが表示されます。
1sf commandsすべてのコマンドと、フラグを表示するには、コマンドを実行するときに --json フラグを指定します。
1sf commands --json