jbang: Quarkus CLI won't install

On macOS I’m trying to install the Quarkus CLI by following this guide: https://quarkus.io/version/main/guides/cli-tooling

When I run the install command curl -Ls https://sh.jbang.dev | bash -s - app install --fresh --force quarkus@quarkusio I get errors:

bash: line 100: [: missing ']'
bash: line 100: -f: command not found

The install continues and says that its installed correctly but it doesn’t seem to work. After restarting my terminal (or even without restarting my terminal) I get quarkus: command not found when trying to run quarkus --version.

Additionally, I installed jbang via homebrew and then ran jbang app install --fresh --force quarkus@quarkusio. That didn’t produce any errors but it also didn’t install the quarkus cli. I still get quarkus: command not found when trying to run quarkus --version.

I’m on macOS 11.4

bash --version
GNU bash, version 5.1.8(1)-release (x86_64-apple-darwin20.3.0)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 35 (3 by maintainers)

Most upvoted comments

Did you try with a new shell @edeandrea ?

I opened a new shell and did curl -Ls https://sh.jbang.dev | bash -s - app setup. Then in a new shell I did jbang app install --fresh --force quarkus@quarkusio. Then in a new shell quarkus --version returns quarkus: command not found

@maxandersen I think you’ve got it backwards 😃 It’s running jbang app setup that will make sure that jbang app install jbang is also being done, not the other way around. (That why the documentation tells people to run curl -Ls https://sh.jbang.dev | bash -s - app setup)