@wireio/wire-cli
v0.0.2
Published
Wire CLI Utilities
Downloads
93
Readme
wire-cli
Overview
wire-cli is a TypeScript-based command-line tool for spinning up a local node. It automates tasks such as installing Wire Sysio core and CDT, deploying system contracts, and starting blockproducer and chain-api nodes.
Requirements
- Only Linux supported at the moment (Ubuntu v20/v24 recommended). Not compatible with macOS or Windows at this time.
- Root privileges (run via sudo).
- Node.js 18+ to run the CLI.
Installation
npm i -g @wireio/wire-cliDevelopment
Clone this repo
git clone https://github.com/Wire-Network/wire-cli.gitBuild the project:
npm run buildLink the executable
npm link[!NOTE]: By default,
sudoresets environment variables, causingwire-cliand Node.js binaries to be unavailable. In order to run the script as root you need to usevisudoto preserve environment variables (PATH,NVM_DIR,NODE_PATH) so that sudo can accesswire-cliand the correct Node.js version.
Get NODE_PATH:
which node Run:
sudo visudoAdd value of NODE_PATH to secure_path, hit Save and Exit.
Example:
Defaults secure_path = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/<your-user>/.nvm/versions/node/<node-version>/binUsage
Once linked, you can run wire-cli from your terminal.
sudo wire-cli install --g --enable-roa