balena-cli/INSTALL-WINDOWS.md
2020-10-21 00:07:46 +01:00

4.3 KiB

balena CLI Installation Instructions for Windows

These instructions are for the recommended installation option. Advanced users may also be interested in advanced installation options.

Selected operating system: Windows

  1. Download the installer from the latest release page. Look for a file name that ends with "-installer.exe":
    balena-cli-vX.Y.Z-windows-x64-installer.exe

  2. Double click the downloaded file to run the installer. After the installation completes, close and re-open any open command terminal windows (so that the changes made by the installer to the PATH environment variable can take effect).

  3. Check that the installation was successful by running the following commands on a command terminal:

    • balena version - should print the CLI's version
    • balena help - should print a list of available commands

No further steps are required to run most CLI commands. The balena ssh, scan, build, deploy, preload and os configure commands may require additional software to be installed, as described below.

Additional Dependencies

build and deploy

These commands require Docker or balenaEngine to be available (on a local or remote machine). Most users will simply follow Docker's installation instructions to install Docker on the same laptop (dev machine) where the balena CLI is installed. The advanced installation options document describes other possibilities.

balena ssh

The balena ssh command requires the ssh command-line tool to be available. Microsoft started distributing an SSH client with Windows 10, which is automatically installed through Windows Update. To check whether it is installed, run ssh on a Windows Command Prompt or PowerShell. It can also be manually installed if needed. For older versions of Windows, there are several ssh/OpenSSH clients provided by 3rd parties.

The balena ssh command also requires an SSH key to be added to your balena account: see SSH Access documentation. The balena key* command set can also be used to list and manage SSH keys: see balena help -v.

balena scan

The balena scan command requires a multicast DNS (mDNS) service like Apple's Bonjour. Many Windows machines will already have this service installed, as it is bundled in popular applications such as Skype (Wikipedia lists several others). Otherwise, Bonjour for Windows can be downloaded and installed from: https://support.apple.com/kb/DL999

balena preload

Like the build and deploy commands, the preload command requires Docker, with the additional restriction that Docker must be installed on the local machine (because Docker's bind mounting feature is used). Also, for some device types (such as the Raspberry Pi), the preload command requires Docker to support the AUFS storage driver. Unfortunately, Docker Desktop for Windows dropped support for the AUFS filesystem in Docker CE versions greater than 18.06.1. The present workaround is to either:

  • Downgrade Docker Desktop to version 18.06.1. Link: Docker CE for Windows
  • Install the balena CLI on a Linux machine (as Docker for Linux still supports AUFS). A Linux Virtual Machine also works, but a Docker container is not recommended.

Long term, we are working on replacing AUFS with overlay2 for the affected device types.

balena os configure