Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arcblock/forge-cli
:fire: Awesome Command line tool to mange forge powered blockchain nodes
https://github.com/arcblock/forge-cli
arcblock blockchain cli forge javascript nodejs
Last synced: 5 days ago
JSON representation
:fire: Awesome Command line tool to mange forge powered blockchain nodes
- Host: GitHub
- URL: https://github.com/arcblock/forge-cli
- Owner: ArcBlock
- License: other
- Archived: true
- Created: 2019-06-05T05:20:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-11T02:04:20.000Z (over 3 years ago)
- Last Synced: 2024-12-29T23:18:52.653Z (26 days ago)
- Topics: arcblock, blockchain, cli, forge, javascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 3.07 MB
- Stars: 10
- Watchers: 22
- Forks: 0
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
![forge-cli](https://www.arcblock.io/.netlify/functions/badge/?text=Forge%20CLI)
> Command line toolbox maintained by [Arcblock](https://www.arcblock.io) that helps developers to work with [Forge SDK](https://docs.arcblock.io/en/docs/instruction/sdk)
## Table of Contents
- [Introduction](#introduction)
- [QuickStart](#quickstart)
- [Requirements](#requirements)
- [Install](#install)
- [Usage](#usage)
- [FAQ](#faq)## Introduction
[![](https://img.shields.io/npm/v/@arcblock/forge-cli.svg?label=forge-cli&style=flat-square)](https://www.npmjs.com/package/@arcblock/forge-cli)
[![docs](https://img.shields.io/badge/powered%20by-arcblock-green.svg?style=flat-square)](https://docs.arcblock.io/en/handbook/)
[![Build Status](https://img.shields.io/travis/com/arcblock/forge-cli?style=flat-square)](https://travis-ci.com/arcblock/forge-cli)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
[![Gitter](https://img.shields.io/gitter/room/ArcBlock/community?style=flat-square&color=%234cb696)](https://gitter.im/ArcBlock/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)`forge-cli` is an awesome toolbox for developers to work with forge, and forge is an awesome framework for building decentralized applications. Out of the box forge-cli support following features:
- Manage forge kernel release
- Manage local forge node, join a remote forge powered network
- Create wallets and accounts on blockchain
- Read/subscribe accounts/blocks/transactions/assets on blockchain
- Send transactions to the blockchain
- Use forge components such as forge-web
- Compile and deploy transaction protocol
- Do stake to node/user/asset
- Bootstrap dApps with starters from [here](https://github.com/ArcBlock/forge-dapp-starters)## Requirements
- Linux/Mac Command Line, **windows is not support currently**, [iTerm](http://www.iterm2.com/) is recommended.
- [Node.js](https://nodejs.org/): please install using [nvm](https://github.com/creationix/nvm), >= v10 && <= v12.x## QuickStart
[![asciicast](https://asciinema.org/a/280694.svg)](https://asciinema.org/a/280694)
## Install
```shell
npm install -g @arcblock/forge-cli
# OR
yarn global add @arcblock/forge-cli
```Now `forge` command is available to all new shell sessions.
## Usage
Run `forge` and get available options and subcommands.
```terminal
❯ forge██████╗ ██╗ ██╗ █████╗ ██████╗ ██████╗██████╗ ██╗ ██████╗ ██████╗██╗ ██╗
██╔══██╗╚██╗ ██╔╝ ██╔══██╗██╔══██╗██╔════╝██╔══██╗██║ ██╔═══██╗██╔════╝██║ ██╔╝
██████╔╝ ╚████╔╝ ███████║██████╔╝██║ ██████╔╝██║ ██║ ██║██║ █████╔╝
██╔══██╗ ╚██╔╝ ██╔══██║██╔══██╗██║ ██╔══██╗██║ ██║ ██║██║ ██╔═██╗
██████╔╝ ██║ ██║ ██║██║ ██║╚██████╗██████╔╝███████╗╚██████╔╝╚██████╗██║ ██╗
╚═════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═════╝ ╚══════╝ ╚═════╝ ╚═════╝╚═╝ ╚═╝
Usage: forge [options] [command]Options:
-V, --version output the version number
-v, --verbose Output runtime info when execute subcommand, useful for debug
-c, --chain-name Execute command use specific chain
-i, --config-path Forge config used when starting forge node and initializing gRPC clients
-r, --npm-registry Specify a custom npm registry
-y, --yes Assume that the answer to any confirmation question is yes
-d, --defaults Run command using default values for all questions
-m, --mirror Mirror host used to download forge release
-g, --socket-grpc Socket gRPC endpoint to connect, with this you can use forge-cli with a remote node
-h, --help output usage informationCommands:
Get an account info by address
account
asset Get asset info by address
block [options] [height] Get the block info from the running node
blocklet:init [options] Init a blocklet project
blocklet:use [options] Download and install a blocklet
chain:config [options] [action] Read/write chain/node config
chain:create [chainName] Create a new chain instance
chain:ls List all chains
chain:remove Remove chain state and config
chain:reset Reset chain state, but keeps the config
chain:validator [options] Update(add, remove, change) or list validators
config [options] [key] [value] Config forge cli configs
declare:node [options] Declare the current node to be a validator candidate
deploy:prepare [options] Prepare node for deploying a multi-node chain
download [options] [version] Download a forge release without activate it
help [subcommand] Show help of a sub command
install [options] [version] Download and setup forge release on this machine
join Join a network by providing a valid forge web graphql endpoint
logs [type] Show logs for various forge components
ls List forge releases installed locally
ls:remote List remote forge releases available for install
ps List running forge component processes
remote [shellName] Connects to the running system via a remote shell
simulator [action] Start/stop simulator and generate random traffic
start [options] [] Start the forge and forge web deamon
status [type] List info of the running chain/node
stop [options] [] Stop the forge daemon and all related services
tx [hash] Get a tx detail and display
tx:ls List latest transactions
upgrade [] Upgrade chain node to new version without reset
use [version] Activate an already downloaded forge release
version [] Output version for all forge components
wallet:create Create a local wallet and dump its public/private key
web [action] Open the web interface of running forge chain/nodeExamples:
Please install a forge-release before running any other commands
> forge install latest
> forge install --mirror https://releases.arcblockio.cnCurious about how to use a subcommand?
> forge help install
```
## FAQ
Checkout [FAQ.md](./docs/FAQ.md)