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

     1  ---
     2  layout: docs
     3  page_title: 'Commands: namespace list'
     4  sidebar_title: list
     5  description: |
     6    The namespace list command is used to list namespaces.
     7  ---
     8  
     9  # Command: namespace list
    10  
    11  The `namespace list` command is used list available namespaces.
    12  
    13  ~> Namespace commands are new in Nomad 0.7 and are only available with Nomad
    14  Enterprise.
    15  
    16  ## Usage
    17  
    18  ```plaintext
    19  nomad namespace list [options]
    20  ```
    21  
    22  The `namespace list` command requires no arguments.
    23  
    24  ## General Options
    25  
    26  @include 'general_options.mdx'
    27  
    28  ## List Options
    29  
    30  - `-json` : Output the namespaces in their JSON format.
    31  
    32  - `-t` : Format and display the namespaces using a Go template.
    33  
    34  ## Examples
    35  
    36  List all namespaces:
    37  
    38  ```shell-sessionnomad namespace list
    39  Name      Description
    40  default   Default shared namespace
    41  api-prod  Production instances of backend API servers
    42  api-qa    QA instances of backend API servers
    43  web-prod  Production instances of webservers
    44  web-qa    QA instances of webservers
    45  ```