2015-09-22 23:11:11 +00:00
|
|
|
---
|
|
|
|
layout: "docs"
|
|
|
|
page_title: "Commands: init"
|
|
|
|
sidebar_current: "docs-commands-init"
|
|
|
|
description: >
|
2015-09-23 00:06:23 +00:00
|
|
|
Generate a skeleton jobspec template.
|
2015-09-22 23:11:11 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# Command: init
|
|
|
|
|
2015-09-23 00:06:23 +00:00
|
|
|
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.
|
|
|
|
|
2015-09-23 00:06:23 +00:00
|
|
|
## Examples
|
|
|
|
|
|
|
|
Generate an example job file:
|
2015-09-22 23:11:11 +00:00
|
|
|
|
|
|
|
```
|
2015-09-23 00:06:23 +00:00
|
|
|
$ nomad init
|
|
|
|
Example job file written to example.nomad
|
2015-09-22 23:11:11 +00:00
|
|
|
```
|