# Installing Balena Cli with OSX

**URL:** <https://forums.balena.io/t/installing-balena-cli-with-osx/5457>\
**Category:** Product support\
**Tags:** balena-cli\
**Created:** [February 26, 2019, 8:39am UTC](https://forums.balena.io/t/installing-balena-cli-with-osx/5457 "2019-02-26T08:39:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![agabq](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@agabq](https://forums.balena.io/u/agabq)\
**Post date:** [February 26, 2019, 8:39am UTC](https://forums.balena.io/t/installing-balena-cli-with-osx/5457/1 "2019-02-26T08:39:36Z")

</div>

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

Thank you!

---

<div class="post-metadata">

**Author:** ![dansku](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dansku/32/1183_2.png) [@dansku](https://forums.balena.io/u/dansku)\
**Post date:** [February 26, 2019, 10:34am UTC](https://forums.balena.io/t/installing-balena-cli-with-osx/5457/4 "2019-02-26T10:34:00Z")

</div>

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](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](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](https://stackoverflow.com/questions/22465332/setting-path-environment-variable-in-osx-permanently)).

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

---

<div class="post-metadata">

**Author:** ![agabq](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@agabq](https://forums.balena.io/u/agabq)\
**Post date:** [February 28, 2019, 1:50am UTC](https://forums.balena.io/t/installing-balena-cli-with-osx/5457/52 "2019-02-28T01:50:46Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![gelbal](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/gelbal/32/1109_2.png) [@gelbal](https://forums.balena.io/u/gelbal)\
**Post date:** [February 28, 2019, 10:11am UTC](https://forums.balena.io/t/installing-balena-cli-with-osx/5457/54 "2019-02-28T10:11:24Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![agabq](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@agabq](https://forums.balena.io/u/agabq)\
**Post date:** [February 28, 2019, 4:23pm UTC](https://forums.balena.io/t/installing-balena-cli-with-osx/5457/55 "2019-02-28T16:23:15Z")

</div>

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](https://hub.docker.com) to create one.  
Username (agabq):

I’m running OSX High Sierra 10.13.6

thank for all the help

---

<div class="post-metadata">

**Author:** ![cyplo](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/cyplo/32/1224_2.png) [@cyplo](https://forums.balena.io/u/cyplo)\
**Post date:** [February 28, 2019, 4:42pm UTC](https://forums.balena.io/t/installing-balena-cli-with-osx/5457/64 "2019-02-28T16:42:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![agabq](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@agabq](https://forums.balena.io/u/agabq)\
**Post date:** [February 28, 2019, 4:46pm UTC](https://forums.balena.io/t/installing-balena-cli-with-osx/5457/65 "2019-02-28T16:46:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cyplo](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/cyplo/32/1224_2.png) [@cyplo](https://forums.balena.io/u/cyplo)\
**Post date:** [February 28, 2019, 4:48pm UTC](https://forums.balena.io/t/installing-balena-cli-with-osx/5457/67 "2019-02-28T16:48:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![agabq](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@agabq](https://forums.balena.io/u/agabq)\
**Post date:** [February 28, 2019, 5:12pm UTC](https://forums.balena.io/t/installing-balena-cli-with-osx/5457/87 "2019-02-28T17:12:11Z")

</div>

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](https://github.com/balena-io/balena-cli/issues/new)  
Forums: [https://forums.balena.io](https://forums.balena.io)

---

<div class="post-metadata">

**Author:** ![cyplo](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/cyplo/32/1224_2.png) [@cyplo](https://forums.balena.io/u/cyplo)\
**Post date:** [February 28, 2019, 5:39pm UTC](https://forums.balena.io/t/installing-balena-cli-with-osx/5457/92 "2019-02-28T17:39:14Z")

</div>

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/](https://www.balena.io/docs/learn/getting-started/raspberrypi3/nodejs/)

---

<div class="post-metadata">

**Author:** ![agabq](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@agabq](https://forums.balena.io/u/agabq)\
**Post date:** [February 28, 2019, 6:01pm UTC](https://forums.balena.io/t/installing-balena-cli-with-osx/5457/93 "2019-02-28T18:01:57Z")

</div>

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!!!
