2017-10-13 21:02:30 +00:00
|
|
|
---
|
2020-02-06 23:45:31 +00:00
|
|
|
layout: docs
|
|
|
|
page_title: 'Commands: quota init'
|
|
|
|
sidebar_title: init
|
|
|
|
description: |
|
2017-10-13 21:02:30 +00:00
|
|
|
Generate an example quota specification.
|
|
|
|
---
|
|
|
|
|
|
|
|
# Command: quota init
|
|
|
|
|
|
|
|
The `quota init` command is used to create an example quota specification file
|
|
|
|
that can be used as a starting point to customize further.
|
|
|
|
|
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
|
|
|
|
|
2019-10-22 13:44:00 +00:00
|
|
|
```plaintext
|
2017-10-13 21:02:30 +00:00
|
|
|
nomad quota init
|
|
|
|
```
|
|
|
|
|
|
|
|
## Init Options
|
|
|
|
|
2019-10-22 13:44:00 +00:00
|
|
|
- `-json`: Create an example JSON quota specification.
|
2017-10-13 21:02:30 +00:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Create an example quota specification:
|
|
|
|
|
2020-05-18 20:53:06 +00:00
|
|
|
```shell-session
|
|
|
|
$ nomad quota init
|
2017-10-13 21:02:30 +00:00
|
|
|
Example quota specification written to spec.hcl
|
|
|
|
```
|