github.com/quite/nomad@v0.8.6/website/source/docs/commands/job/init.html.md.erb (about) 1 --- 2 layout: "docs" 3 page_title: "Commands: job init" 4 sidebar_current: "docs-commands-job-init" 5 description: > 6 The job init command is used to generate a skeleton jobspec template. 7 --- 8 9 # Command: job init 10 **Alias: `nomad init`** 11 12 The `job init` command creates an example [job specification][jobspec] in the 13 current directory that demonstrates some common configurations for tasks, task 14 groups, runtime constraints, and resource allocation. 15 16 Please refer to the [jobspec][] and [drivers](/docs/drivers/index.html) 17 pages to learn how to customize the template. 18 19 ## Init Options 20 21 * `-short`: If set, a minimal jobspec without comments is emitted. 22 23 ## Examples 24 25 Generate an example job file: 26 27 ```text 28 $ nomad job init 29 Example job file written to example.nomad 30 ``` 31 32 [jobspec]: /docs/job-specification/index.html "Nomad Job Specification"