open-nomad/website/source/docs/commands/quota/apply.html.md.erb

41 lines
873 B
Plaintext
Raw Normal View History

2017-10-13 21:02:30 +00:00
---
layout: "docs"
page_title: "Commands: quota apply"
sidebar_current: "docs-commands-quota-apply"
description: >
The quota apply command is used to create or update quota specifications.
---
# Command: quota apply
The `quota apply` command is used to create or update quota specifications.
2018-03-22 20:39:18 +00:00
~> Quota commands are new in Nomad 0.7 and are only available with Nomad
Enterprise.
2017-10-13 21:02:30 +00:00
## Usage
```
nomad quota apply [options] <name> <path>
```
The `quota apply` command requires the path to the specification file. The
specification can be read from stdin by setting the path to "-".
## General Options
<%= partial "docs/commands/_general_options" %>
## Apply Options
* `-json`: Parse the input as a JSON quota specification.
## Examples
Create a new quota specification:
```
$ nomad quota apply my-quota.hcl
Successfully applied quota specification "my-quota"!
```