github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/website/content/docs/commands/quota/apply.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Commands: quota apply'
     4  sidebar_title: apply
     5  description: |
     6    The quota apply command is used to create or update quota specifications.
     7  ---
     8  
     9  # Command: quota apply
    10  
    11  The `quota apply` command is used to create or update quota specifications.
    12  
    13  ~> Quota commands are new in Nomad 0.7 and are only available with Nomad
    14  Enterprise.
    15  
    16  ## Usage
    17  
    18  ```plaintext
    19  nomad quota apply [options] <path>
    20  ```
    21  
    22  The `quota apply` command requires the path to the specification file. The
    23  specification can be read from stdin by setting the path to "-".
    24  
    25  If ACLs are enabled, this command requires a token with the `quota:write`
    26  capability.
    27  
    28  ## General Options
    29  
    30  @include 'general_options.mdx'
    31  
    32  ## Apply Options
    33  
    34  - `-json`: Parse the input as a JSON quota specification.
    35  
    36  ## Examples
    37  
    38  Create a new quota specification:
    39  
    40  ```shell-session
    41  $ nomad quota apply my-quota.hcl
    42  Successfully applied quota specification "my-quota"!
    43  ```