github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/commands/volume/init.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Commands: volume init'
     4  description: |
     5    Generate an example volume specification.
     6  ---
     7  
     8  # Command: volume init
     9  
    10  The `volume init` command is used to create an example volume specification
    11  file that can be used as a starting point to customize further.
    12  
    13  ## Usage
    14  
    15  ```plaintext
    16  nomad volume init
    17  ```
    18  
    19  ## Init Options
    20  
    21  - `-json`: Create an example JSON volume specification.
    22  
    23  ## Examples
    24  
    25  Create an example volume specification:
    26  
    27  ```shell-session
    28  $ nomad volume init
    29  Example volume specification written to volume.hcl
    30  ```