Library for providing the native Clarity CLI binary
Last updated 16 days ago by hstove .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @blockstack/clarity-native-bin 
SYNC missed versions from official npm registry.


This package installs the system-specific native clarity-cli binary.

The JS module also provides programmatic access to the binary file path and the installation functions.


An installation script runs automatically when this package is installed via npm install (or an equivalent package install tool/command). Pre-built dist files are downloaded if the platform & arch is supported, otherwise, it attempts to compile the binary from source.

Controlling Installation Options

Force install via source compilation by specifying either the BLOCKSTACK_CORE_SOURCE_TAG or BLOCKSTACK_CORE_SOURCE_BRANCH environment variables. The variable must be available during the npm install script. If found then the script will not attempt to download a pre-compiled distributable. The value must be set to a git tag or branch on the https://github.com/blockstack/blockstack-core repo.

To move a local copy of the clarity-cli binary from a different folder on your machine, include the environment variable BLOCKSTACK_CORE_SOURCE_PATH.

For example, the following commands test a blockstack-core repo feature branch using the clarity-tutorials package:

git clone git@github.com:blockstack/clarity-js-sdk.git
cd clarity-js-sdk
BLOCKSTACK_CORE_SOURCE_BRANCH="feature/new-thing" npm install
cd packages/clarity-tutorials
npm test

Or, for an already setup local SDK dev environment, trigger an npm install of this package. Examples:

cd clarity-js-sdk
BLOCKSTACK_CORE_SOURCE_BRANCH="feature/new-thing" npm run rebuild


cd clarity-js-sdk/packages/clarity-native-bin
BLOCKSTACK_CORE_SOURCE_BRANCH="feature/new-thing" npm install

Source Compilation Requirements

If compiling from source then the Rust toolchain and a C compiler must be available.

  • Specifically, cargo must be available in PATH. rustup is the recommended toolchain installer.
  • See C compiler requirement details at cc-rs (gcc, clang, and msvc are supported).

Current Tags

  • 0.2.0                                ...           latest (16 days ago)

18 Versions

  • 0.2.0                                ...           16 days ago
  • 0.1.16                                ...           3 months ago
  • 0.1.13                                ...           4 months ago
  • 0.1.13-alpha.6                                ...           4 months ago
  • 0.1.13-alpha.5                                ...           4 months ago
  • 0.1.13-alpha.2                                ...           a year ago
  • 0.1.13-alpha.1                                ...           a year ago
  • 0.1.13-alpha.0                                ...           a year ago
  • 0.1.12-alpha.0                                ...           a year ago
  • 0.1.11-alpha.0                                ...           a year ago
  • 0.1.10-alpha.0                                ...           a year ago
  • 0.1.9-alpha.0                                ...           a year ago
  • 0.1.8-alpha.0                                ...           a year ago
  • 0.1.7-alpha.0                                ...           a year ago
  • 0.1.6-alpha.0                                ...           a year ago
  • 0.1.4-alpha.0                                ...           a year ago
  • 0.1.3-alpha.0                                ...           a year ago
  • 0.1.2-alpha.0                                ...           a year ago
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 10
Dependencies (4)
Dev Dependencies (15)

Copyright 2014 - 2016 © taobao.org |