psm stack validate-template

Use this command to validate a Stack template (file) before importing it to the Cloud.


psm stack validate-template -f|--template filePath
    [-p|--parameter-values key:ValuePair]
    [-of|--output-format json|html|short]
    [-wc|--wait-until-complete true|false]


All parameters are required unless otherwise noted.

Parameter Description
-f|--template filePath Fully-qualified path to the stack YAML template.
-p|--parameter-values key:ValuePair (Optional) The key:value pair that specifies the values for parameters in the template YAML file. Template parameters are seperated by spaces.
-of|--output-format json|html|short (Optional) Desired output format.

Accepted values: json, html, short

The default output format is the one you specified when using the psm setup command to configure the psm CLI.

-wc|--wait-until-complete true|false

(Optional) A boolean value that, when set to true, makes the command behave synchronously; that is, it does not return until the submitted job is complete. The following message is displayed until the job is complete:
Waiting for the job to complete... (it cannot be cancelled)
Default: false


$ psm stack validate-template -f myDevTeamStack.yaml -of json
        "message":"Validation completed. No errors found"