hardis:project:generate:bypass
Description
Generates bypass custom permissions and permission sets for specified sObjects and automations (Flows, Triggers, and Validation Rules). If no parameters are provided, it prompts for user selection.
Parameters
Name | Type | Description | Default | Required | Options |
---|---|---|---|---|---|
automations -a |
option | Comma-separated list of automations to bypass. Allowed values: Flow, Trigger, VR | |||
flags-dir | option | undefined | |||
global -g |
boolean | Generate global bypasses for all automations (Flow, Trigger, VR) without selecting sObjects. | |||
json | boolean | Format output as json. | |||
sObjects -s |
option | Comma-separated list of sObjects to bypass (e.g., Account,Contact,Opportunity). If omitted, you will be prompted to select. | |||
skipCredits -k |
boolean | If true, omit the "Generated by" line in the XML files. | |||
skipauth | boolean | Skip authentication check when a default username is required | |||
target-org -o |
option | undefined | |||
websocket | option | Websocket host:port for VsCode SFDX Hardis UI integration |
Examples
$ sf hardis:project:generate:bypass
$ sf hardis:project:generate:bypass --global
$ sf hardis:project:generate:bypass --sObjects Account,Contact,Opportunity
$ sf hardis:project:generate:bypass --automations Flow,Trigger,VR
$ sf hardis:project:generate:bypass --sObjects Account,Opportunity --automations Flow,Trigger
$ sf hardis:project:generate:bypass --skip-credits