8cc938c9d4
Create a convenience command for generating example CSI volume specifications, similar to the existing `nomad job init` or `nomad quota init` commands.
32 lines
568 B
Plaintext
32 lines
568 B
Plaintext
---
|
|
layout: docs
|
|
page_title: 'Commands: volume init'
|
|
sidebar_title: init
|
|
description: |
|
|
Generate an example volume specification.
|
|
---
|
|
|
|
# Command: volume init
|
|
|
|
The `volume init` command is used to create an example volume specification
|
|
file that can be used as a starting point to customize further.
|
|
|
|
## Usage
|
|
|
|
```plaintext
|
|
nomad volume init
|
|
```
|
|
|
|
## Init Options
|
|
|
|
- `-json`: Create an example JSON volume specification.
|
|
|
|
## Examples
|
|
|
|
Create an example volume specification:
|
|
|
|
```shell-session
|
|
$ nomad volume init
|
|
Example volume specification written to volume.hcl
|
|
```
|