Skip to content

hardis:org:diagnose:legacyapi

Description

Checks if an org uses retired or someday retired API version

See article below

Handle Salesforce API versions Deprecation like a pro

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)
eventtype
-e
option Type of EventLogFile event to analyze ApiTotalUsage
flags-dir option undefined
json boolean Format output as json.
limit
-l
option Number of latest EventLogFile events to analyze 999
outputfile
-f
option Force the path and name of output report file. Must end with .csv
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:legacyapi
$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com
$ sf hardis:org:diagnose:legacyapi --outputfile 'c:/path/to/folder/legacyapi.csv'
$ sf hardis:org:diagnose:legacyapi -u hardis@myclient.com --outputfile ./tmp/legacyapi.csv