Validate Command
The validate command validates the deployed configurations in Asset 360 orgs. When you use the validate command, the deployment of configuration items is validated against the target org.
The following table provides the svmx:validate command information.
Command Options/Arguments
Description
Command:
$ sfdx svmx:validate [-t <array>] [-n <array>] [-p <string>] [-u <string>] [-c <string>] [--apiversion <string>]
[--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
-t
Used to specify the Asset 360 configuration types to validate.
* 
Specify the configuration types in a comma-separated string.
For information about configuration types you can pass as arguments, see the table in the retrieve command.
-n
Used to specify the configuration developer name.
-p
Used to specify the path of the stored configuration JSON files.
-u
Used to specify the org username or the alias for the target org. This value overrides the default target org.
-c
Used to specify the name of the json file that contains information as to which configurations must be validated.
--apiversion
Used to specify the API version. This overrides the API version used for API requests made by this command.
--json
Used to specify that the output format is JSON.
--loglevel
Used to specify the logging level. The available options are (trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL).
The default logging level is WARN.
The following table lists the available validate commands:
Command
Description
Example
svmx:validate
Used to validate all the available configurations.
sfdx svmx:validate -u user@salesforce.com
sfdx svmx:validate -u user@salesforce.com -t Expression,Mapping,TechnicalAttribute
sfdx svmx:validate -u user@salesforce.com -c configuration.json
svmx:validate:assethierarchy
Used to validate asset hierarchy configurations.
sfdx svmx:validate:assethierarchy -u user@salesforce.com
svmx:validate:assettimeline
Used to validate asset hierarchy configurations.
sfdx svmx:validate:assettimeline -u user@salesforce.com
svmx:validate:entitlementrule
Used to validate auto-entitlement rules.
sfdx svmx:validate:entitlementrule -u user@salesforce.com
svmx:validate:esarule
Used to validate entitled service assignment rules.
sfdx svmx:validate:esarule -u user@salesforce.com
svmx:validate:expression
Used to validate expressions.
sfdx svmx:validate:expression -u user@salesforce.com
sfdx svmx:validate:expression -u user@salesforce.com -n <DEVELOPER_NAME,...>
svmx:validate:mapping
Used to validate mappings.
sfdx svmx:validate:mapping -u user@salesforce.com
svmx:validate:parule
Used to validate pricebook assignment rules.
sfdx svmx:validate:mapping -u user@salesforce.com
svmx:validate:screen
Used to validate screen configurations.
sfdx svmx:validate:screen -u user@salesforce.com
svmx:validate:transaction
Used to validate transactions.
sfdx svmx:validate:transaction -u user@salesforce.com
svmx:validate:wizard
Used to validate wizards.
sfdx svmx:validate:wizard -u user@salesforce.com
svmx:validate:psc
Used to validate PSC configurations.
sfdx svmx:validate:psc -u user@salesforce.com
svmx:validate:techattr
Used to validate asset technical attributes.
sfdx svmx:validate:techattr -u user@salesforce.com
The following is a sample screen of the svmx:validate command run and the output.
Was this helpful?