cli icon indicating copy to clipboard operation
cli copied to clipboard

All heroku commands on Windows exit with code 1 on success

Open toolness opened this issue 7 years ago • 7 comments
trafficstars

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.:

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

Or:

$ 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.

toolness avatar Sep 26 '18 12:09 toolness

Hey, this seems to have been fixed at some point between 7.16.0 and 7.16.6! So I'll close this issue.

toolness avatar Oct 12 '18 10:10 toolness

We didn't change anything

jdx avatar Oct 12 '18 14:10 jdx

This should be reopened since the issue is still occuring.

Heroku CLI: 7.19.4 NodeJS: 11.3.0 Windows: 10 x64

thierry2015 avatar Jan 27 '19 18:01 thierry2015

Please re-open this. It's still broken!

frederikhors avatar May 16 '22 16:05 frederikhors

Hello - I'm Feb 28th, 2024, and this is still happening ? It's confusing I updated my heroku

$ heroku update heroku: Updating CLI from 8.7.1-3f5e369 to 8.10.0-25f0948... done

and then ...

$ heroku container:login echo $? Login Succeed 1

Ezequiel-MO avatar Feb 28 '24 11:02 Ezequiel-MO

Reopening this here instead of maintaining a duplicate over at Oclif.

justinwilaby avatar Mar 01 '24 21:03 justinwilaby

Under heroku cli 10.0.0, running commands in bash under windows returns "0" when successful. After updating to 10.12.0, I'm getting return values of "1" for the same commands, which terminates my bash script. It's deja-vu all over again.

tcfprobus avatar Aug 19 '25 13:08 tcfprobus