open-nomad/website/source/docs/commands/job/init.html.md.erb

28 lines
726 B
Plaintext
Raw Normal View History

---
layout: "docs"
2018-03-22 17:56:06 +00:00
page_title: "Commands: job init"
sidebar_current: "docs-commands-job-init"
description: >
2018-03-22 17:56:06 +00:00
The job init command is used to generate a skeleton jobspec template.
---
2018-03-22 17:56:06 +00:00
# Command: job init
2018-03-22 17:56:06 +00:00
The `job init` command creates an example [job specification][jobspec] 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](/docs/drivers/index.html)
pages to learn how to customize the template.
## Examples
Generate an example job file:
```text
2018-03-22 17:56:06 +00:00
$ nomad job init
Example job file written to example.nomad
```
[jobspec]: /docs/job-specification/index.html "Nomad Job Specification"