github.com/smintz/nomad@v0.8.3/website/source/docs/commands/job/deployments.html.md.erb (about)

     1  ---
     2  layout: "docs"
     3  page_title: "Commands: job deployments"
     4  sidebar_current: "docs-commands-job-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  ```
    17  nomad job deployments [options] <job>
    18  ```
    19  
    20  The `job deployments` command requires a single argument, the job ID or an ID prefix
    21  of a job to display the list of deployments for.
    22  
    23  ## General Options
    24  
    25  <%= partial "docs/commands/_general_options" %>
    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  ## Examples
    38  
    39  List the deployment for a particular job:
    40  
    41  ```
    42  $ nomad job deployments example
    43  ID        Job ID   Job Version  Status      Description
    44  0b23b149  example  1            running     Deployment is running but requires promotion
    45  06ca68a2  example  0            successful  Deployment completed successfully
    46  ```
    47