thru
Command-line interface for the Thru blockchain: keys, accounts, transactions, program deployment, and ABI tooling.
Last updated 24 days ago by thru-core .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install thru 
SYNC missed versions from official npm registry.

Thru CLI

Command-line interface for the Thru blockchain: keys, accounts, transactions, program deployment, and ABI tooling.

Install the Thru command-line interface with npm:

npm i -g thru     # puts `thru` on your PATH
thru --help

A global install (-g) is what puts the bare thru command on your PATH. A local install works too, but exposes the command through the project instead:

npm i thru        # local dependency
npx thru --help   # or node_modules/.bin/thru

Request test funds

thru auth login
thru --network betanet faucet withdraw thrusd ta... 100

Replace ta... with an existing THRUSD token-account address. Your Developers account shares 5 requests per minute across browser, CLI, and API keys. Native THRU uses thru faucet withdraw native <account> <amount> with a local signing key.

Authentication and API keys · Faucet reference

Supported platforms

platform arch binary package
Linux x64 thru-linux-x64
Linux arm64 thru-linux-arm64
macOS x64 thru-darwin-x64
macOS arm64 thru-darwin-arm64
Windows x64 thru-win32-x64

The Linux binaries require glibc >= 2.17, which every mainstream distro since CentOS 7 satisfies (Ubuntu, Debian, RHEL/Rocky/Alma, Amazon Linux, Fedora, SUSE). Alpine/musl is not supported.

Install without npm (Linux packages)

Each release also ships .deb and .rpm packages (x86_64 and aarch64) built from the same binaries, for machines without npm — e.g. cloud VMs. The releases/latest/download/ URLs below always resolve to the newest release, so no package repository setup is needed and nothing to update here between versions. Run only the one block that matches your distro and architecture.

Debian / Ubuntu:

# x86_64
curl -fsSLO https://github.com/Unto-Labs/thru/releases/latest/download/thru_amd64.deb
sudo apt install ./thru_amd64.deb
# arm64
curl -fsSLO https://github.com/Unto-Labs/thru/releases/latest/download/thru_arm64.deb
sudo apt install ./thru_arm64.deb

RHEL / Rocky / Alma / Fedora / Amazon Linux (dnf accepts the URL directly):

# x86_64
sudo dnf install https://github.com/Unto-Labs/thru/releases/latest/download/thru-x86_64.rpm
# aarch64
sudo dnf install https://github.com/Unto-Labs/thru/releases/latest/download/thru-aarch64.rpm

To pin a specific version instead, take the versioned asset from the releases page — thru_<version>_amd64.deb or thru-<version>-1.x86_64.rpm.

Packages installed this way are not picked up by apt upgrade / dnf upgrade (there is no hosted repository); to update, install the newer release's package the same way.

How it works

The thru package contains a small Node.js launcher plus one optionalDependencies entry per platform package above. npm installs only the package whose os/cpu constraints match your machine, and the launcher runs the native binary it carries. Because the binary ships inside a regular npm package:

  • no install scripts run — npm install --ignore-scripts works,
  • installs work offline or from the npm cache, with npm's usual integrity checks covering the binary itself,
  • nothing is downloaded from GitHub at install time.

The same binaries are also published as release assets at https://github.com/Unto-Labs/thru/releases — as plain tarballs (e.g. thru-cli-Linux-x86_64-<tag>.tar.gz) and as the .deb/.rpm packages above, all verified by thru-cli-SHA256SUMS — if you prefer not to use npm.

Troubleshooting

  • The thru CLI platform package ... is not installed: the install skipped optional dependencies (--omit=optional / --no-optional). Reinstall without those flags, or download a release binary and set THRU_CLI_BIN.
  • THRU_CLI_BIN=/path/to/thru overrides binary resolution entirely; useful for development builds (cargo build in rpc/cli).

Development notes

optionalDependencies are intentionally absent from the committed package.json; scripts/make-platform-packages.mjs generates the platform packages from the built binaries and pins them during the CLI publish workflow (.github/workflows/cli-artifacts.yml). Run node --test for the test suite and node scripts/check-package.mjs for the packaging invariants.

Current Tags

  • 0.4.4                                ...           latest (24 days ago)

44 Versions

  • 0.4.4                                ...           24 days ago
  • 0.4.3                                ...           a month ago
  • 0.4.2                                ...           a month ago
  • 0.4.1                                ...           2 months ago
  • 0.4.0                                ...           2 months ago
  • 0.3.18                                ...           2 months ago
  • 0.3.17                                ...           2 months ago
  • 0.3.16                                ...           3 months ago
  • 0.3.15                                ...           3 months ago
  • 0.3.14                                ...           3 months ago
  • 0.3.13                                ...           3 months ago
  • 0.3.12                                ...           3 months ago
  • 0.3.11                                ...           3 months ago
  • 0.3.10                                ...           3 months ago
  • 0.3.9                                ...           3 months ago
  • 0.3.8                                ...           3 months ago
  • 0.3.7                                ...           3 months ago
  • 0.3.6                                ...           3 months ago
  • 0.3.5                                ...           3 months ago
  • 0.3.4                                ...           4 months ago
  • 0.3.3                                ...           4 months ago
  • 0.3.2                                ...           4 months ago
  • 0.3.1                                ...           4 months ago
  • 0.3.0                                ...           4 months ago
  • 0.2.40                                ...           4 months ago
  • 0.2.39                                ...           4 months ago
  • 0.2.38                                ...           5 months ago
  • 0.2.37                                ...           5 months ago
  • 0.2.36                                ...           5 months ago
  • 0.2.35                                ...           5 months ago
  • 0.2.34                                ...           5 months ago
  • 0.2.33                                ...           5 months ago
  • 0.2.32                                ...           5 months ago
  • 0.2.31                                ...           5 months ago
  • 0.2.30                                ...           5 months ago
  • 0.2.29                                ...           5 months ago
  • 0.2.28                                ...           5 months ago
  • 0.2.27                                ...           6 months ago
  • 0.2.26                                ...           6 months ago
  • 0.2.24                                ...           6 months ago
  • 0.2.23                                ...           6 months ago
  • 0.0.3                                ...           7 months ago
  • 0.0.2                                ...           13 years ago
  • 0.0.1                                ...           13 years ago
Maintainers (1)
Downloads
Total 134
Today 0
This Week 1
This Month 131
Last Day 0
Last Week 50
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE