hardis:work:new
Description
Assisted menu to start working on a Salesforce task.
Advanced instructions in Create New Task documentation
At the end of the command, it will allow you to work on either a scratch org or a sandbox, depending on your choices.
Under the hood, it can:
- Make git pull to be up to date with target branch
- Create new git branch with formatted name (you can override the choices using .sfdx-hardis.yml property branchPrefixChoices)
- Create and initialize a scratch org or a source-tracked sandbox (config can be defined using
config/.sfdx-hardis.yml
): - (and for scratch org only for now):
- Install packages
- Use property
installedPackages
- Push sources
- Assign permission sets
- Use property
initPermissionSets
- Use property
- Run apex initialization scripts
- Use property
scratchOrgInitApexScripts
- Use property
- Load data
- Use property
dataPackages
- Use property
- Install packages
- Use property
Parameters
Name | Type | Description | Default | Required | Options |
---|---|---|---|---|---|
debug -d |
boolean | Activate debug mode (more logs) | |||
flags-dir | option | undefined | |||
json | boolean | Format output as json. | |||
skipauth | boolean | Skip authentication check when a default username is required | |||
target-dev-hub -v |
option | undefined | |||
target-org -o |
option | undefined | |||
websocket | option | Websocket host:port for VsCode SFDX Hardis UI integration |
Examples
$ sf hardis:work:task:new