Files
nomad/website/content/docs/commands/volume/init.mdx
Aimee Ukasick dae496e427 Docs: SEO front matter description for search: commands section (#25175)
* Enhance front matter description for search

* acl section

* alloc section

* config section

* deployment section

* eval section

* job section

* license section

* namespace section

* node section

* node pool section

* operator section

* plugin section

* quota section

* recommendation section

* scaling section

* sentinel section

* server section

* service section

* setup section

* system section

* tls section

* var section

* volume section

* change reference to command reference

* Apply suggestions from code review

Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>

---------

Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>
2025-03-19 12:02:02 -05:00

34 lines
730 B
Plaintext

---
layout: docs
page_title: 'nomad volume init command reference'
description: |
The `nomad volume init` command generates an example storage volume specification.
---
# `nomad volume init` command reference
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.
- `-type`: Create an example for a specific type of volume. Use either "csi" or
"host", defaults to "csi".
## Examples
Create an example volume specification:
```shell-session
$ nomad volume init
Example volume specification written to volume.hcl
```