{"name":"thru","version":"0.2.24","license":"Apache-2.0","_id":"thru@0.2.24","maintainers":[{"name":"thru-core","email":"will@untolabs.com"}],"homepage":"https://github.com/Unto-Labs/thru#readme","bugs":{"url":"https://github.com/Unto-Labs/thru/issues"},"bin":{"thru":"bin/thru.js"},"dist":{"shasum":"06cd3a8d1a10c0e215d0fbac7003ef2161948f66","tarball":"http://registry-npm.ywwl.com/thru/download/thru-0.2.24.tgz","fileCount":6,"integrity":"sha512-+IRtnOhkE1xtppYiAZn3cJdcxciphnM1QdXJrsgB7aYLWER3hlpoK3lNn5AlgKQ7oXg3P8P8QYvhsfoKQLCYnA==","signatures":[{"sig":"MEYCIQC7Z/PiC/4TKOd6EJCE6lrIHoX+lnhspmw3c8bfguaa6wIhAKVANIM3ukz5DwSVOH4U6aZHBLloQ9sj5ZHyJDMpvlcE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19618,"size":7198,"noattachment":false,"key":"/thru/-/thru-0.2.24.tgz"},"type":"module","engines":{"node":">=18"},"gitHead":"4e64965f7610b97cb2c2d1aa4074a9c5f9e70cd2","scripts":{"test":"node --test","build":"node ./scripts/check-package.mjs","test:run":"node --test"},"_npmUser":{"name":"thru-core","email":"will@untolabs.com"},"repository":{"url":"git+https://github.com/Unto-Labs/thru.git","type":"git","directory":"web/packages/cli"},"_npmVersion":"11.13.0","description":"Thru command-line interface","directories":{},"_nodeVersion":"24.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"optionalDependencies":{"thru-linux-x64":"0.2.24","thru-win32-x64":"0.2.24","thru-darwin-x64":"0.2.24","thru-linux-arm64":"0.2.24","thru-darwin-arm64":"0.2.24"},"_npmOperationalInternal":{"tmp":"tmp/thru_0.2.24_1781129697511_0.9294422096418291","host":"s3://npm-registry-packages-npm-production"},"readme":"# Thru CLI\n\nCommand-line interface for the Thru blockchain: keys, accounts, transactions, program deployment, and ABI tooling.\n\nInstall the Thru command-line interface with npm:\n\n```bash\nnpm i -g thru     # puts `thru` on your PATH\nthru --help\n```\n\nA global install (`-g`) is what puts the bare `thru` command on your PATH. A\nlocal install works too, but exposes the command through the project instead:\n\n```bash\nnpm i thru        # local dependency\nnpx thru --help   # or node_modules/.bin/thru\n```\n\n## Request test funds\n\n```bash\nthru auth login\nthru --network betanet faucet withdraw thrusd ta... 100\n```\n\nReplace `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.\n\n[Authentication and API keys](https://thru.org/docs/cli-reference/global-flags-and-config#developers-authentication) · [Faucet reference](https://thru.org/docs/cli-reference/faucet-commands)\n\n## Supported platforms\n\n| platform | arch  | binary package      |\n| -------- | ----- | ------------------- |\n| Linux    | x64   | `thru-linux-x64`    |\n| Linux    | arm64 | `thru-linux-arm64`  |\n| macOS    | x64   | `thru-darwin-x64`   |\n| macOS    | arm64 | `thru-darwin-arm64` |\n| Windows  | x64   | `thru-win32-x64`    |\n\nThe Linux binaries require glibc >= 2.17, which every mainstream distro\nsince CentOS 7 satisfies (Ubuntu, Debian, RHEL/Rocky/Alma, Amazon Linux,\nFedora, SUSE). Alpine/musl is not supported.\n\n## Install without npm (Linux packages)\n\nEach release also ships `.deb` and `.rpm` packages (x86_64 and aarch64)\nbuilt from the same binaries, for machines without npm — e.g. cloud VMs.\nThe `releases/latest/download/` URLs below always resolve to the newest\nrelease, so no package repository setup is needed and nothing to update here\nbetween versions. Run only the one block that matches your distro and\narchitecture.\n\nDebian / Ubuntu:\n\n```bash\n# x86_64\ncurl -fsSLO https://github.com/Unto-Labs/thru/releases/latest/download/thru_amd64.deb\nsudo apt install ./thru_amd64.deb\n```\n\n```bash\n# arm64\ncurl -fsSLO https://github.com/Unto-Labs/thru/releases/latest/download/thru_arm64.deb\nsudo apt install ./thru_arm64.deb\n```\n\nRHEL / Rocky / Alma / Fedora / Amazon Linux (`dnf` accepts the URL directly):\n\n```bash\n# x86_64\nsudo dnf install https://github.com/Unto-Labs/thru/releases/latest/download/thru-x86_64.rpm\n```\n\n```bash\n# aarch64\nsudo dnf install https://github.com/Unto-Labs/thru/releases/latest/download/thru-aarch64.rpm\n```\n\nTo pin a specific version instead, take the versioned asset from the [releases\npage](https://github.com/Unto-Labs/thru/releases) — `thru_<version>_amd64.deb`\nor `thru-<version>-1.x86_64.rpm`.\n\nPackages installed this way are not picked up by `apt upgrade` /\n`dnf upgrade` (there is no hosted repository); to update, install the\nnewer release's package the same way.\n\n## How it works\n\nThe `thru` package contains a small Node.js launcher plus one\n`optionalDependencies` entry per platform package above. npm installs only the\npackage whose `os`/`cpu` constraints match your machine, and the launcher runs\nthe native binary it carries. Because the binary ships inside a regular npm\npackage:\n\n- no install scripts run — `npm install --ignore-scripts` works,\n- installs work offline or from the npm cache, with npm's usual integrity\n  checks covering the binary itself,\n- nothing is downloaded from GitHub at install time.\n\nThe same binaries are also published as release assets at\n<https://github.com/Unto-Labs/thru/releases> — as plain tarballs (e.g.\n`thru-cli-Linux-x86_64-<tag>.tar.gz`) and as the `.deb`/`.rpm` packages\nabove, all verified by `thru-cli-SHA256SUMS` — if you prefer not to use\nnpm.\n\n## Troubleshooting\n\n- `The thru CLI platform package ... is not installed`: the install skipped\n  optional dependencies (`--omit=optional` / `--no-optional`). Reinstall\n  without those flags, or download a release binary and set `THRU_CLI_BIN`.\n- `THRU_CLI_BIN=/path/to/thru` overrides binary resolution entirely; useful\n  for development builds (`cargo build` in `rpc/cli`).\n\n## Development notes\n\n`optionalDependencies` are intentionally absent from the committed\n`package.json`; `scripts/make-platform-packages.mjs` generates the platform\npackages from the built binaries and pins them during the CLI publish\nworkflow (`.github/workflows/cli-artifacts.yml`). Run `node --test` for the\ntest suite and `node scripts/check-package.mjs` for the packaging invariants.\n","publish_time":1781129697684,"_cnpm_publish_time":1781129697684,"dist-tags":{"latest":"0.4.4"}}