Skip to content

hardis:work:save

Description

When a work task is completed, guide user to create a merge request

Advanced instructions in Publish a task

  • Generate package-xml diff using sfdx-git-delta
  • Automatically update manifest/package.xml and manifest/destructiveChanges.xml according to the committed updates
  • Automatically Clean XML files using .sfdx-hardis.yml properties
    • autocleantypes: List of auto-performed sources cleanings, available on command hardis:project:clean:references
    • autoRemoveUserPermissions: List of userPermission to automatically remove from profile metadatas

Example:

autoCleanTypes:
  - checkPermissions
  - destructivechanges
  - datadotcom
  - minimizeProfiles
  - listViewsMine
autoRemoveUserPermissions:
  - EnableCommunityAppLauncher
  - FieldServiceAccess
  - OmnichannelInventorySync
  - SendExternalEmailAvailable
  - UseOmnichannelInventoryAPIs
  - ViewDataLeakageEvents
  - ViewMLModels
  - ViewPlatformEvents
  - WorkCalibrationUser
  • Push commit to server

Parameters

Name Type Description Default Required Options
auto boolean No user prompts (when called from CI for example)
debug
-d
boolean Activate debug mode (more logs)
flags-dir option undefined
json boolean Format output as json.
noclean
-c
boolean No cleaning of local sources
nogit
-g
boolean No automated git operations
nopull
-n
boolean No scratch pull before save
skipauth boolean Skip authentication check when a default username is required
target-org
-o
option undefined
targetbranch option Name of the Merge Request target branch. Will be guessed or prompted if not provided.
websocket option Websocket host:port for VsCode SFDX Hardis UI integration

Examples

$ sf hardis:work:task:save
$ sf hardis:work:task:save --nopull --nogit --noclean