cant install balena cli on wsl (moved from websdr ticket)

Indeed. :slight_smile: With the goal of unblocking your use of balena CLI / balena platform, check if the following works better for you. Run the commands on a WSL / Ubuntu prompt.

paulo@DESKTOP-3021L0B:~$ cd && pwd
/home/paulo
paulo@DESKTOP-3021L0B:~$ curl -LO https://github.com/balena-io/balena-cli/releases/download/v11.29.5/balena-cli-v11.29.5-linux-x64-standalone.zip
...
paulo@DESKTOP-3021L0B:~$ unzip balena-cli-v11.29.5-linux-x64-standalone.zip
...
paulo@DESKTOP-3021L0B:~$ ./balena-cli/balena version -a
balena-cli version "11.29.5"
Node.js version "10.17.0"

If you get the version output as shown above, you’re ready to use the balena CLI on WSL. :slight_smile:

For additional convenience, you can add the balena-cli folder to the shell PATH variable, so you can run the CLI by simply typing “balena”. Follow the instructions at: bash - How to permanently set $PATH on Linux/Unix - Stack Overflow

balena zip fails on wsl opensuse

balena-cli/balena login
_ _
| |__ __ _ | | ____ _ __ __ _
| '_ \ / || | / __ \| '_ \ / _ |
| |
) | () || || /| | | || () |
|
.
_/ _
,||| _/|| || _,_|

Logging in to balena-cloud.com
? How would you like to login? Web authorization (recommended)
Connecting to the web dashboard
Error: spawn cmd.exe ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)

balena cli zip does work on wsl ubuntu

$ balena-cli/balena login
_ _
| |__ __ _ | | ____ _ __ __ _
| '_ \ / || | / __ \| '_ \ / _ |
| |
) | () || || /| | | || () |
|
.
_/ _
,||| _/|| || _,_|

Logging in to balena-cloud.com
? How would you like to login? Web authorization (recommended)
Connecting to the web dashboard
Successfully logged in as: gh_osde8info

Find out about the available commands by running:

$ balena help

If you need help, or just want to say hi, don’t hesitate in reaching out
through our discussion and support forums at https://forums.balena.io

For bug reports or feature requests, have a look at the GitHub issues or
create a new one at: Issues · balena-io/balena-cli · GitHub

1 Like

but

balena scan

doesnt return any nodes

Hello, just to confirm, do you have any balena devices connected to the same network as the computer you are using the cli from?

also can you try to run your terminal as admin and the do a balena scan?

yes i have a pi 3 and a pi 4 on this net

sorry just too many bugs

balena login is now broken too just keeps jumping to

https://dashboard.balena-cloud.com/apps

SORRY I HAVE NO MORE TIME TO SPEND ON THIS

MIGHT LOOK AT BALENA AGAIN IN A FEW MONTHS

I am getting the same error that you had on Opensuse with WSL Ubuntu, like it can’t open my browser. Do you know how to resolve it?