mirror of
https://github.com/kemko/nomad.git
synced 2026-01-11 12:55:42 +03:00
* sectionless files plus acl section * alloc section * config, deployment sections * job section * licence, namespace * node, node-pool * operator * plugin, quota, recommendation * scaling, sentinel, server, service, system, var, volume * Add "ENT" label to left nav for enterprise commands * job tag break into separate folder and files; update options header
37 lines
852 B
Plaintext
37 lines
852 B
Plaintext
---
|
|
layout: docs
|
|
page_title: 'nomad var init command reference'
|
|
description: |
|
|
The `nomad var init` command generates an example variable specification that you can customize for your Nomad variables.
|
|
---
|
|
|
|
# `nomad var init` command reference
|
|
|
|
The `var init` creates an example variable specification file that can be used
|
|
as a starting point to customize further.
|
|
|
|
## Usage
|
|
|
|
```plaintext
|
|
nomad var init <filename>
|
|
```
|
|
|
|
When no filename is supplied, a default filename of "spec.nv.hcl" or
|
|
"spec.nv.json" will be used depending on the output format.
|
|
|
|
## Options
|
|
|
|
- `-out` `(enum: hcl | json)`: Format of generated variable
|
|
specification. Defaults to `hcl`.
|
|
|
|
- `-quiet`: Do not print success message.
|
|
|
|
## Examples
|
|
|
|
Create an example variable specification:
|
|
|
|
```shell-session
|
|
$ nomad var init
|
|
Example variable specification written to spec.nv.hcl
|
|
```
|