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

     1  ---
     2  layout: docs
     3  page_title: 'Commands: namespace apply'
     4  sidebar_title: apply
     5  description: |
     6    The namespace apply command is used create or update a namespace.
     7  ---
     8  
     9  # Command: namespace apply
    10  
    11  The `namespace apply` command is used create or update a namespace.
    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 apply [options] <namespace>
    20  ```
    21  
    22  The `namespace apply` command requires the name of the namespace to be created
    23  or updated.
    24  
    25  ## General Options
    26  
    27  @include 'general_options.mdx'
    28  
    29  ## Apply Options
    30  
    31  - `-quota` : An optional quota to apply to the namespace.
    32  
    33  - `-description` : An optional human readable description for the namespace.
    34  
    35  ## Examples
    36  
    37  Create a namespace with a quota
    38  
    39  ```shell-sessionnomad namespace apply -description "Prod API servers" -quota prod api-prod
    40  Successfully applied namespace "api-prod"!
    41  ```