acton up
Reference manual for the acton up command
Synopsis
acton up [options] [version]
Description
Download and install a published Acton release for the current target triple.
By default, stable builds update to the latest stable release. Trunk builds
stay on the trunk channel unless --stable is passed explicitly.
The updater fetches release metadata from GitHub, downloads the matching archive and SHA256 checksum, verifies the checksum, and replaces the current binary.
Options
Update Options
Specific version tag to install.
--trunk, --stable, --list, --rollback
Install the most recent trunk release.
--stable, --list, version, --rollback
Install the latest stable release.
--list, version, --trunk, --rollback
Install the selected release even if Acton is already up to date.
--list, --rollback
Roll back to the previous version from a local backup.
version, --trunk, --stable, --force, --list
List available release tags and exit.
version, --trunk, --stable, --force, --rollback
Display Options
Control when to use colored output.
auto, always, never
auto
Project Options
Accepted as a global Acton option for CLI consistency.
This command does not require an existing project manifest for its primary
workflow. It remains mutually exclusive with --project-root.
--project-root
Accepted as a global Acton option for CLI consistency.
This command does not require an existing project root for its primary
workflow. It remains mutually exclusive with --manifest-path.
--manifest-path
Release Source
Acton queries GitHub release metadata and assets from ton-blockchain/acton.
If GITHUB_TOKEN is set, Acton uses it for authenticated GitHub API requests.
Installation Flow
When installing a release, Acton:
- selects the archive matching the current target triple
- downloads the archive and its
.sha256file - verifies the SHA256 digest
- unpacks the archive
- keeps a copy of the replaced binary next to it, named
acton-<version> - atomically replaces the current
actonbinary
acton up --list is read-only and skips download or replacement.
Interactivity
--forcebypasses the usual up-to-date short-circuit for the selected release- up-to-date checks and
--listcan succeed without making local changes
Channel Selection
acton upon a stable build updates to the latest stable releaseacton upon a trunk build stays on trunkacton up --stableswitches a trunk build back to stableacton up --trunkswitches to the trunk channelacton up <version>installs the explicit version even if it is older or newer than the current one
Rollback
acton up --rollback restores the most recently modified backup from the
directory of the current binary and works fully offline. It never downloads
anything and never creates or overwrites backups, so running it again is a
no-op once the restored version is current.
Exit Status
0: The requested release information was listed, Acton was already up to date, the selected version was installed successfully, or the previous version was rolled back.1: Release lookup failed, checksum verification failed, archive replacement failed, or no backup was available to roll back.
Examples
-
Update to the latest stable release:
acton up -
Switch to the trunk channel:
acton up --trunk -
Install a specific version:
acton up 1.0.0 -
List available releases:
acton up --list -
Reinstall the currently selected channel version:
acton up --force -
Update to the latest stable release explicitly:
acton up --stable -
Roll back to the previous version:
acton up --rollback
See Also
Last updated on