Commit 8194846d authored by Seth Vargo's avatar Seth Vargo

Update push command docs to remove `-token`

parent 75b4f50f
...@@ -7,27 +7,34 @@ description: |- ...@@ -7,27 +7,34 @@ description: |-
# Command-Line: Push # Command-Line: Push
The `packer push` Packer command takes a template and pushes it to a build The `packer push` Packer command takes a template and pushes it to a Packer
service. The build service will automatically build your Packer template and build service such as [HashiCorp's Atlas](https://atlas.hashicorp.com). The
expose the artifacts. build service will automatically build your Packer template and expose the
artifacts.
This command currently only sends templates to External build services such as HashiCorp's Atlas make it easy to iterate on
[Atlas](https://atlas.hashicorp.com) by HashiCorp, but the command will Packer templates, especially when the builder you are running may not be easily
be pluggable in the future with alternate implementations.
External build services such as Atlas make it easy to iterate on Packer
templates, especially when the builder you're running may not be easily
accessable (such as developing `qemu` builders on Mac or Windows). accessable (such as developing `qemu` builders on Mac or Windows).
For the `push` command to work, the For the `push` command to work, the [push configuration](/docs/templates/push.html)
[push configuration](/docs/templates/push.html)
must be completed within the template. must be completed within the template.
## Options ## Options
* `-create=true` - If the build configuration matching the name of the push * `-token` - An access token for authenticating the push to the Packer build
doesn't exist, it will be created if this is true. This defaults to true. service such as Atlas. This can also be specified within the push
configuration in the template.
## Examples
Push a Packer template:
```shell
$ packer push template.json
```
Push a Packer template with a custom token:
* `-token=FOO` - An access token for authenticating the push. This can also ```shell
be specified within the push configuration in the template. By setting this $ packer push -token ABCD1234 template.json
in the template, you can take advantage of user variables. ```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment