github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/website/pages/docs/commands/deployment/status.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Commands: deployment status'
     4  sidebar_title: status
     5  description: |
     6    The deployment status command is used to display the status of a deployment.
     7  ---
     8  
     9  # Command: deployment status
    10  
    11  The `deployment status` command is used to display the status of a deployment.
    12  The status will display the number of desired changes as well as the currently
    13  applied changes.
    14  
    15  ## Usage
    16  
    17  ```plaintext
    18  nomad deployment status [options] <deployment id>
    19  ```
    20  
    21  The `deployment status` command requires a single argument, a deployment ID or
    22  prefix.
    23  
    24  ## General Options
    25  
    26  @include 'general_options.mdx'
    27  
    28  ## Status Options
    29  
    30  - `-json` : Output the deployment in its JSON format.
    31  - `-t` : Format and display the deployment using a Go template.
    32  - `-verbose`: Show full information.
    33  
    34  ## Examples
    35  
    36  Inspect the status of a complete deployment:
    37  
    38  ```shell-sessionnomad deployment status 06ca68a2
    39  ID          = 06ca68a2
    40  Job ID      = example
    41  Job Version = 0
    42  Status      = successful
    43  Description = Deployment completed successfully
    44  
    45  Deployed
    46  Task Group  Desired  Placed  Healthy  Unhealthy
    47  cache       2        2       2        0
    48  web         2        2       2        0
    49  ```
    50  
    51  Inspect the status of a deployment that is waiting for canary promotion:
    52  
    53  ```shell-sessionnomad deployment status 0b
    54  ID          = 0b23b149
    55  Job ID      = example
    56  Job Version = 1
    57  Status      = running
    58  Description = Deployment is running but requires manual promotion
    59  
    60  Deployed
    61  Task Group  Promoted  Desired  Canaries  Placed  Healthy  Unhealthy
    62  cache       false     2        1         1       0        0
    63  web         N/A       2        0         2       2        0
    64  ```