diff --git a/cmd/push.go b/cmd/push.go index 50ca5fe9d3..3934e8fc7c 100644 --- a/cmd/push.go +++ b/cmd/push.go @@ -55,6 +55,10 @@ func push(cmd *cobra.Command, args []string) error { installationID = args[2] } + if background && len(installationID) == 0 { + return fmt.Errorf("Background push won't do anything unless you also specify an installation ID") + } + if apiToken == "" { apiToken = os.Getenv(APITokenEnv) }