github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/commands/quota/apply.mdx (about)

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