Resources
Resources are the qualifying noun that the action acts upon. Resources are optional and used only when necessary. For example, in the command sf apex generate class
, the resource class
qualifies what the command apex generate
generates. In the command sf org login jwt
, the resource jwt
is the qualifying type of login that takes place.
In many of the core Salesforce CLI commands, if a required resource is missing, the command prompts for it. For example:
- Resources are optional.
- Resources are nouns.
sf org create sandbox
(sandbox
is the resource)sf org login jwt
(jwt
is the resource)sf apex generate class
(class
is the resource)sf cmdt create record
(record
is the resource)