Installing Balena Cli with OSX

Is there a way to install Balena Cli using OSX because I don’t see an installer for OSX?

Thank you!

Hello @agabq,

You can get more information about setting up the balena-cli on osx here https://github.com/balena-io/balena-cli#getting-started.

If you have npm running on your system, you can use the command:
npm install balena-cli -g --production --unsafe-perm to install it.

Otherwise, you can use the standalone version, which you can download from here https://github.com/balena-io/balena-cli/releases/latest

With the file in your system, you need to extract it to somewhere like /usr/local/lib/balena-cli and configure the PATH to that directory (guide here).

Let me know if you still have issues with this.
Thank you!

Thanks for all the help dansku!

So I got balena-cli standalone on computer and seems to be working okay cause I get the Balena help info. But now when I try to login to BalenaCloud It wants me too login to Docker Hub,

“Login with your Docker ID to push and pull images from Docker Hub”

What did I do wrong?

Thank you again for all the help…

Hi @agabq,

Could you please provide more info so we can reproduce this issue?

Which OSX version are you using? How did you install balena CLI at the end? And what version is it? (balena version) Which command are you using to login to balenaCloud?

So I downloaded " [balena-cli-v9.12.0-darwin-x64.zip]" and moved it to /usr/local/lib/ and set a path to /usr/local/lib/balena-cli/. I then went to terminal with in dashboard Balena Cloud and typed Balena login and it displays this…

=============================================================
Welcome to balenaOS

root@b1ecfe2:~# balena login
Login with your Docker ID to push and pull images from Docker Hub. If you don’t have a Docker ID, head over to https://hub.docker.com to create one.
Username (agabq):

I’m running OSX High Sierra 10.13.6

thank for all the help

Hello !
Is the log you’ve posted from the MacOS machine you’re trying to install the CLI on, or from a device that you are trying to connect to ? I’m asking because on devices there is a tool called balena that is not the balena CLI.

It is the login from the Host OS device on Dashboard Balena Cloud.

What would you like to achieve - could you share your use case ?

Typically the balena CLI is to be used from a developer machine while iterating on the solution you deploy; not the device itself.

Okay I understand now. I’m trying to install BalenaDash on Raspberry Pi 3+.

Now I’m having problems pushing the image to the device. I keep getting “no such file or directory”

a42$ balena push balenaDash
/ Packaging the project source…No such file or directory: /Users/a42/Library/Saved Application State/com.apple.QuickTimePlayerX.savedState

If you need help, don’t hesitate in contacting us at:

GitHub: https://github.com/balena-io/balena-cli/issues/new
Forums: https://forums.balena.io

Could you try without using any balena cli tool, just using git push ? You would need to setup git remote for your project, an example would be similar to the one described here : https://www.balena.io/docs/learn/getting-started/raspberrypi3/nodejs/

Excellent I got it to work…this is so cool!!!

Thank you so much cyplo, dansku and gelbal for all the help I really appreciate it!!!

1 Like