-
Notifications
You must be signed in to change notification settings - Fork 25
Design Guidelines Actions
Matt Graham edited this page Apr 28, 2023
·
1 revision
Actions define tasks in the developer workflow. They act on either a topic or a subtopic. Actions should be as consistent as possible, even across topics.
For example, sf apex generate class
and sf lightning generate app
follow the same pattern, even though they generate different things. Another example is sf project deploy start
and sf slack-app deploy start
. In these examples, the topic and flags may change, but the command structure is the same.
Where appropriate, use these standard action names: sf command common actions.
- Actions are verbs.
- Keep actions as short and precise as possible.
- Every Salesforce CLI command is required to have a primary action.
- Commands may have secondary clarifying actions.
- Example:
sf project deploy start
- Example:
sf org alias set
- Example:
sf apex generate class
sf apex run test
sf org login web
-
sf project deploy start
- sub-action of
start
clarifies the primary action category
- sub-action of
-
sf org alias set [email protected]
- sub-action of
set
clarifies the primary action category
- sub-action of
© Copyright 2024 Salesforce.com, inc. All rights reserved. Various trademarks held by their respective owners.
- Quick Intro to Developing sf Plugins
- Get Started: Create Your First Plugin
- Design Guidelines
- Code Your Plugin
- Debug Your Plugin
- Write Useful Messages
- Test Your Plugin
- Maintain Your Plugin
- Integrate Your Plugin With the Doctor Command
- Migrate Plugins Built for sfdx
- Conceptual Overview of Salesforce CLI