hardis:org:diagnose:deployments
Description
Analyzes metadata deployments and validations by querying DeployRequest records via the Tooling API.
Tracks: - Deployment/validation status (Succeeded, Failed, InProgress, Canceled) - Pending time (CreatedDate to StartDate) - Duration (StartDate to CompletedDate) - Separation of deployments vs validations (CheckOnly)
Key functionalities:
- Deployments vs validations: Distinguishes actual deployments from validation-only (CheckOnly) runs.
- Timing analysis: Pending time (queue) and deployment/validation duration in minutes.
- CSV report: Generates a report of recent deployment/validation activity.
- Notifications: Sends to Grafana, Slack, MS Teams.
This command is part of sfdx-hardis Monitoring and can output Grafana, Slack and MsTeams Notifications.
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. | |||
| outputfile -f |
option | Force the path and name of output report file. Must end with .csv | |||
| period -p |
option | Time period to analyze: daily (last 24h), weekly (last 7 days), or all (no date filter) | daily | daily weekly all |
|
| 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:org:diagnose:deployments
$ sf hardis:org:diagnose:deployments --period daily
$ sf hardis:org:diagnose:deployments --period weekly
$ sf hardis:org:diagnose:deployments --period all