LinuxCommandLibrary

balena

Manage IoT device fleets

TLDR

Login to Balena Cloud

$ balena login
copy
List devices
$ balena devices
copy
Push code to device
$ balena push [myApp]
copy
SSH into device
$ balena ssh [device-uuid]
copy
View logs
$ balena logs [device-uuid]
copy
Create new application
$ balena app create [myApp]
copy

SYNOPSIS

balena command [options]

DESCRIPTION

balena is the command-line interface for Balena (formerly Resin.io), a platform for deploying and managing IoT device fleets. It enables building, deploying, and monitoring containerized applications on edge devices.
The CLI provides tools for device provisioning, application deployment, remote access, and fleet management.

PARAMETERS

login

Authenticate with Balena Cloud
push application
Deploy code to application
devices
List devices
ssh device
SSH into device
logs device
View device logs
scan
Scan for local Balena devices
os
OS image management commands
env
Environment variable management
--application, -a name
Application name
--device, -d uuid
Device UUID

FEATURES

- Container-based deployments
- Over-the-air updates
- Remote device access
- Environment variable management
- Multi-architecture support
- Device fleet management

WORKFLOW

$ # Login
balena login

# Create app
balena app create myApp

# Push code
cd my-project
balena push myApp

# Monitor
balena logs <device>
copy

CAVEATS

Requires Balena account. Device must run BalenaOS. Internet connectivity needed for cloud features. Some operations require payment plan. Local mode available for offline development.

HISTORY

Balena CLI was developed by Balena (formerly Resin.io) starting around 2013 as a platform for IoT fleet management and edge computing.

SEE ALSO

docker(1), kubectl(1), etcher(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community