Balena Staging on Windows 10

Hello,

I am trying to upload some containers to my beaglebone running a staging image of balenaOS. I am able to use

BALENARC_BALENA_URL=balena-staging.com balena login

successfully on my mac, however windows is not playing nice. I keep getting this error:

PS C:\Users\dreyp\Desktop\Mgb2App> BALENARC_BALENA_URL=balena-staging.com balena login
BALENARC_BALENA_URL=balena-staging.com : The term 'BALENARC_BALENA_URL=balena-staging.com' is not recognized as the name of a cmdlet, function, script file, or operable program. 
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ BALENARC_BALENA_URL=balena-staging.com balena login
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (BALENARC_BALENA_URL=balena-staging.com:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

What can I do to get this working?

Hey Drey,

I think you’re probably using Windows Powershell rather than a command prompt. If you enter cmd on the windows run menu, you’ll definitely get the command prompt (note: the new Windows Terminal will default to Powershell).

Now do:

set BALENARC_BALENA_URL=balena-staging.com
and then run
balena login

You should see:

 _            _
| |__   __ _ | |  ____  _ __    __ _
| '_ \ / _` || | / __ \| '_ \  / _` |
| |_) | (_) || ||  ___/| | | || (_) |
|_.__/ \__,_||_| \____/|_| |_| \__,_|


Logging in to balena-staging.com balena login

Let me know if this sorts it.

Phil

1 Like

Yep, that was my issue! Thank you.