Skip to Content

App Commands

The app group calls an IronFlock instance from your computer, using the login described in Log In & Manage Devices. It runs on Linux, macOS and Windows, needs no root, and refuses --host and --hosts. Every command accepts --instance, repeated --ca-cert, and the global flags.

--project is a project key or an unambiguous name. --app is an app key or technical name; --device is a device key or an unambiguous name. Lookups need read scopes: devices:read for devices and project names, apps:read for apps. The operation’s scope is required in addition. A key’s restrictions and its account’s privileges still apply.

List, Inspect and Read Logs

ironflock app list --project 12 ironflock app status --project 12 --app line_monitor ironflock app logs --project 12 --app line_monitor --device 17 --tail 50 --since 30m
CommandScopeWhat it returns
app list --project <project>apps:readProject apps, including apps on no device, once per PROD/DEV stage, with device and running counts
app status --project <project> --app <app> [--dev]apps:readDevice state, current/pending version and data arrival. Offline devices show their last reported state; this command does not wait
app logs --project <project> --app <app> [--device <device>]... [--dev]logs:readThe newest log lines, oldest first. Repeat --device for up to five devices; --tail is 1–200 (default 200), and --since accepts an absolute time or duration

Without --device, app logs target devices where the app is not running, or ask you to choose when more than three qualify. --dev selects the development run; otherwise status and logs refer to the installed release. App logs are a snapshot, not a continuous stream.

Install, Update, Start and Stop

ironflock app install --app line_monitor --device 17 ironflock app update --project 12 --app line_monitor --device 17 --version 1.2.0 ironflock app stop --app line_monitor --device 17 ironflock app start --app line_monitor --device 17
CommandScopeBehavior
app install --app <app> --device <device>apps:writeInstalls the newest release on one device; explains the change and asks first
app update --project <project> --app <app> [--device <device>]... [--version <version>]apps:writeUpdates all project devices that have the app, or up to ten explicitly selected devices. Restarts the app and asks first
app start --app <app> --device <device> [--dev]apps:write, or apps:develop with --devRequests RUNNING; use app status to inspect progress
app stop --app <app> --device <device> [--dev]apps:write, or apps:develop with --devRequests a stopped app; stopping DEV also cancels a development build in progress

install, start and stop also accept --project to disambiguate the target. --yes confirms a question; without a terminal or with --json, commands that ask require --yes or exit 4. Start and stop send the requested state without a separate confirmation question.

app update defaults to the newest release. --version 1.1.0 can roll back to an older version. The version must exist, not be deleted, and support the target device’s architecture. Inspect failures before retrying. To update a device group, use the REST update route or MCP update_app; this CLI command has no group flag.

Build a Development Run

ironflock app dev --device 17 --branch feature/gauge ironflock app dev --app 55 --device 17 --working-copy

Cloud only. app dev builds the app as DEV, starts it and prints the newest runtime log lines. PROD is left unchanged. The device must be online; the account needs DEVELOP on it and VIEW_CODE on the app. Use apps:develop, apps:read, logs:read and devices:read for the command and its lookups.

FlagMeaning
--device <device>Required build device
--app <app>App key or technical name; otherwise inferred from the checkout’s origin or folder name
--folder <folder>Checkout to inspect, default current folder
--branch <branch>Build the branch as pushed to the app’s main repository
--commit <commit>Build a pushed commit, a hexadecimal hash of at least 7 characters
--working-copyBuild the API key owner’s cloud IDE working copy, including uncommitted edits
--timeout <duration>1 minute to 10 minutes, default 10 minutes
--tail <lines>Runtime log tail, 1–200 lines, default 100

Choose only one source flag. Without one, the command uses the IDE working copy when it recognizes that checkout, otherwise the local checkout’s pushed branch. Unpushed files are not uploaded. A branch that is not pushed is refused with exit code 3; push first. Develop and Release an App explains connecting an external repository.

A failed build prints the output tail and the error and exits 1. A build still running at the timeout also exits 1, but continues on the device: inspect its build record before starting another. A successful command prints a log snapshot after starting DEV; it does not keep following the log.

Release a Version

ironflock app release --app 55 --device 17 --branch main \ --version 1.2.0 --notes "Improves the gauge"

Cloud only. Builds and releases a version from the repository on the selected device, for that device’s architecture. Requires releases:publish and the account’s RELEASE privilege, plus apps:read and devices:read for lookups. The command states what it releases and asks; --yes confirms.

Required flags are --version and --device. --app, --folder and --branch select the app and pushed branch as above. Without --branch, a local checkout supplies its pushed branch; outside a checkout, the platform’s default branch is used. Release builds never use uncommitted IDE files. --notes supplies the release notes; --timeout is 1–30 minutes, default 10 minutes. There is no --commit or --working-copy flag for release.

A failed build prints the error and output tail and exits 1. A timeout does not cancel the build. Once built, the version can be installed or selected by app update; the release command does not deploy it to your fleet or change store visibility.

Errors and Automation

Use --json for structured output. Read failures from stderr and the command’s nonzero exit status; do not assume a timed-out change was cancelled. Exit 1 means the platform or build failed; exit 2 means invalid flags or arguments; exit 3 covers missing login or unmet local requirements; exit 4 means a required confirmation was declined or unavailable. See Flags, Output & Exit Codes.

Last updated on