» Command: job init

Alias: nomad init

The job init command creates an example job specification in the current directory that demonstrates some common configurations for tasks, task groups, runtime constraints, and resource allocation.

Please refer to the jobspec and drivers pages to learn how to customize the template.

» Examples

Generate an example job file:

$ nomad job init
Example job file written to example.nomad