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

26 lines
608 B
Plaintext
Raw Normal View History

2015-09-22 23:11:11 +00:00
---
layout: "docs"
page_title: "Commands: init"
sidebar_current: "docs-commands-init"
description: >
Generate a skeleton jobspec template.
2015-09-22 23:11:11 +00:00
---
# Command: init
The `init` command creates an example [job specification](/docs/jobspec/) in the current
2015-10-26 00:31:59 +00:00
directory that demonstrates some common configurations for tasks, task groups,
2015-09-22 23:11:11 +00:00
runtime constraints, and resource allocation.
Please refer to the [jobspec](/docs/jobspec/) and [drivers](/docs/drivers/)
pages to learn how to customize the template.
## Examples
Generate an example job file:
2015-09-22 23:11:11 +00:00
```
$ nomad init
Example job file written to example.nomad
2015-09-22 23:11:11 +00:00
```