Files
nomad/website/content/docs/commands/job/deployments.mdx
Aimee Ukasick dae496e427 Docs: SEO front matter description for search: commands section (#25175)
* Enhance front matter description for search

* acl section

* alloc section

* config section

* deployment section

* eval section

* job section

* license section

* namespace section

* node section

* node pool section

* operator section

* plugin section

* quota section

* recommendation section

* scaling section

* sentinel section

* server section

* service section

* setup section

* system section

* tls section

* var section

* volume section

* change reference to command reference

* Apply suggestions from code review

Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>

---------

Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>
2025-03-19 12:02:02 -05:00

53 lines
1.4 KiB
Plaintext

---
layout: docs
page_title: 'nomad job deployments command reference'
description: |
The `nomad job deployments` command lists deployments for a job.
---
# `nomad job deployments` command reference
The `job deployments` command is used to display the deployments for a
particular job.
## Usage
```plaintext
nomad job deployments [options] <job>
```
The `job deployments` command requires a single argument, the job ID or an ID
prefix of a job to display the list of deployments for.
When ACLs are enabled, this command requires a token with the `read-job`
capability for the job's namespace. The `list-jobs` capability is required to
run the command with a job prefix instead of the exact job ID.
## General options
@include 'general_options.mdx'
## Deployment options
- `-latest`: Display the latest deployment only.
- `-json` : Output the deployment in its JSON format.
- `-t` : Format and display the deployment using a Go template.
- `-verbose`: Show full information.
- `-all`: Display all deployments matching the job ID, even those from an
older instance of the job.
## Examples
List the deployment for a particular job:
```shell-session
$ nomad job deployments example
ID Job ID Job Version Status Description
0b23b149 example 1 running Deployment is running but requires manual promotion
06ca68a2 example 0 successful Deployment completed successfully
```