I'm new to AWS and I'm trying to get a Node.js app running using Beanstalk. The app is running now and I would like to deploy code from a prod git branch.

I followed this tutorial: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-reference-branch-environment.html

But when I try to run:

eb branch

I get

$ eb branch
usage: eb (sub-commands ...) [options ...] {arguments ...}
eb: error: unrecognized arguments: branch

I installed EB CLI 3.10.0 (Python 3.6.0) and I'm on maxOS Sierra (10.12.3).

Why is this command not working?

Thanks! nicondev

  • Are you sure that the eb command in your PATH is the version 3.10 that you installed? What does eb --version show? – jordanm Mar 6 '17 at 14:59
  • Yes: $ eb --version EB CLI 3.10.0 (Python 3.6.0) – nicondev Mar 6 '17 at 21:43
  • Is your working directory a git repository? Did you run eb init in step 4? – jordanm Mar 6 '17 at 21:51
  • Yes, both. It's a git repo, currently on a branch called production and I ran eb init before – nicondev Mar 8 '17 at 19:44
  • did you get to tix this issue? i am having the same problem – psychok7 Oct 11 '17 at 14:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.