psm stack list-templates

Use this command to list all stack templates.

Syntax

psm stack list-templates 
   [-of|--output-format json|html|short]

Parameters

Parameter Description
-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.

Example

$ psm stack list-templates -of json
{
    "identityDomain":"MyStack",
    "templates":[
        {
            "templateName":"AnAppWithMySQL",
            "templateVersion":"1.0.0",
            "templateDescription":"Sample application running against a MySQL database",
            "identityDomain":"MyStack",
            "createdBy":"MY_SM_PLATFORM_APPID",
            "creationTime":"2016-07-26T13:57:57.492+0000",
            "templateUri":"http://example.org:7200//paas/api/v1.1/instancemgmt/MyStack/templates/cst/instances/AnAppWithMySQL/export?version=1.0.0",
            "stacks":[
                {
                    "serviceName":"AppWithMySQL1",
                    "serviceURI":"http://example.org:7200//paas/api/v1.1/instancemgmt/MyStack/services/stack/instances/AnAppWithMySQL"
                }
            ]
        },
        {
            "templateName":"AnAppWithMySQLTest",
            "templateVersion":"1.0.1",
            "templateDescription":"Sample application running against a MySQL database",
            "identityDomain":"MyStack",
            "createdBy":"MY_SM_PLATFORM_APPID",
            "creationTime":"2016-07-28T22:40:03.563+0000",
            "templateUri":"http://example.org:7200//paas/api/v1.1/instancemgmt/MyStack/templates/cst/instances/AnAppWithMySQLTest/export?version=1.0.1",
            "stacks":[]
        }
    ]
}