diff --git a/command/push.go b/command/push.go index dac5aa180..614f800aa 100644 --- a/command/push.go +++ b/command/push.go @@ -53,6 +53,10 @@ func (c *PushCommand) Run(args []string) int { return 1 } + if message != "" { + c.Ui.Warn("[DEPRECATED] -m/-message is deprecated and will be removed in a future Packer release") + } + args = f.Args() if len(args) != 1 { f.Usage() @@ -268,9 +272,6 @@ Usage: packer push [options] TEMPLATE Options: - -m, -message= A message to identify the purpose or changes in this - Packer template much like a VCS commit message - -name= The destination build in Atlas. This is in a format "username/name". diff --git a/website/source/docs/command-line/push.html.markdown b/website/source/docs/command-line/push.html.markdown index 0946d4081..20fe5e6ca 100644 --- a/website/source/docs/command-line/push.html.markdown +++ b/website/source/docs/command-line/push.html.markdown @@ -34,10 +34,6 @@ configuration using the options below. ## Options -- `-message` - A message to identify the purpose or changes in this Packer - template much like a VCS commit message. This message will be passed to the - Packer build service. This option is also available as a short option `-m`. - - `-token` - Your access token for the Atlas API. -> Login to Atlas to [generate an Atlas @@ -59,7 +55,7 @@ you can also use `-token` on the command line. Push a Packer template: ``` {.shell} -$ packer push -m "Updating the apache version" template.json +$ packer push template.json ``` Push a Packer template with a custom token: