Skip to content

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
apply-to-triggers boolean Apply bypass to Triggers
apply-to-vrs boolean Apply bypass to Validation Rules
automations
-a
option Comma-separated automations to bypass: Flow, Trigger, VR
flags-dir option undefined
json boolean Format output as json.
metadata-source
-r
option Source of metadata elements to apply bypass to. Options: 'org' or 'local'.
objects
-s
option Comma-separated list of sObjects to bypass (e.g., Account,Contact,Opportunity). If omitted, you will be prompted to select.
skip-credits
-k
boolean 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 --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 --skipCredits
$ sf hardis:project:generate:bypass --apply-to-vrs
$ sf hardis:project:generate:bypass --apply-to-triggers
$ sf hardis:project:generate:bypass --metadata-source org