github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/website/pages/docs/commands/job/deployments.mdx (about) 1 --- 2 layout: docs 3 page_title: 'Commands: job deployments' 4 sidebar_title: deployments 5 description: | 6 The deployments command is used to list deployments for a job. 7 --- 8 9 # Command: job deployments 10 11 The `job deployments` command is used to display the deployments for a 12 particular job. 13 14 ## Usage 15 16 ```plaintext 17 nomad job deployments [options] <job> 18 ``` 19 20 The `job deployments` command requires a single argument, the job ID or an ID 21 prefix of a job to display the list of deployments for. 22 23 ## General Options 24 25 @include 'general_options.mdx' 26 27 ## Deployment Options 28 29 - `-latest`: Display the latest deployment only. 30 31 - `-json` : Output the deployment in its JSON format. 32 33 - `-t` : Format and display the deployment using a Go template. 34 35 - `-verbose`: Show full information. 36 37 - `-all`: Display all deployments matching the job ID, even those from an 38 older instance of the job. 39 40 ## Examples 41 42 List the deployment for a particular job: 43 44 ```shell-sessionnomad job deployments example 45 ID Job ID Job Version Status Description 46 0b23b149 example 1 running Deployment is running but requires manual promotion 47 06ca68a2 example 0 successful Deployment completed successfully 48 ```