mirror of
https://github.com/kemko/nomad.git
synced 2026-01-09 03:45:41 +03:00
* sectionless files plus acl section * alloc section * config, deployment sections * job section * licence, namespace * node, node-pool * operator * plugin, quota, recommendation * scaling, sentinel, server, service, system, var, volume * Add "ENT" label to left nav for enterprise commands * job tag break into separate folder and files; update options header
53 lines
1.4 KiB
Plaintext
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.
|
|
|
|
## 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
|
|
```
|
|
|
|
## General options
|
|
|
|
@include 'general_options.mdx'
|