heroku / heroku/cli

All heroku commands on Windows exit with code 1 on success

Open
#1,051 8 comments 0 reactions 0 assignees View on GitHub
on-call reviewed
Dominant language
TypeScript
Stars
889
Forks
236
Avg merge
2d 10h
Merged PRs (30d)
33

Description

Hello, I'm on Heroku CLI 7.16.0 using Windows 10 and it seems like _all_ Heroku commands exit with status code 1 even when they succeed using git bash, e.g.:

```bash
$ heroku maintenance:on
Enabling maintenance mode for ⬢ tenants2... done
$ echo $?
1
```

Or:

```bash
$ heroku container:push -R
... stuff happens ...
Your image has been successfully pushed. You can now release it with the
'container:release' command.
$ echo $?
1
```

This might be a more general case of #955. In any case, it makes automating things with the CLI not terribly reliable.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.