@abtnode/cli

Command line tools to manage ABT Node

Usage no npm install needed!

<script type="module">
  import abtnodeCli from 'https://cdn.skypack.dev/@abtnode/cli';
</script>

README

Blocklet Server CLI

This package contains 2 command utilities to manage Blocklet Server and Blocklets

  • abtnode: manage Blocklet Server instances, such as init/start/stop/export, designed for DevOps
  • blocklet: manage blocklets, such as init/dev/bundle/deploy/publish, designed for developers

Getting Started

# install
npm install -g @abtnode/cli

# initialize and start a new node
abtnode init -f
abtnode start

Now your Blocklet Server is up and running.

abtnode command

Usage: abtnode [options] [command]

Options:
  -V, --version              output the version number
  -c --config [node-config]  Blocklet Server configuration file
  -y --yes                   Automatic yes to prompts (default: false)
                             (default: false)
  -h, --help                 display help for command

Commands:
  start [options]            Start Blocklet Server Daemon
  init [options]             Init Blocklet Server config
  status                     Show Blocklet Server and blocklet status
  logs                       Show Blocklet Server and blocklet logs
  stop [options]             Stop Blocklet Server and blocklets
  info [options]             Get environment information for debugging and
                             issue reporting
  upgrade                    Self-Upgrade ABTNode
  export [options]           Eject a Blocklet Server config that can be
                             shared with others
  help [command]             display help for command

None of the above command seems help? Consider command line utility blocklet.

blocklet command

Usage: blocklet [options] [command]

Options:
  -V, --version                   output the version number
  -y --yes                        Automatic yes to prompts (default: false)
                                  (default: false)
  -h, --help                      display help for command

Commands:
  bundle [options]                Bundle a blocklet that can run in Blocklet
                                  Server
  deploy [options] <folder>       Deploy blocklet from local directory to
                                  Blocklet Server
  dev [options] [action]          Develop blocklet from current directory
  init [options]                  Create an empty blocklet project
  meta                            Print blocklet meta from a directory
  version [options] [newVersion]  Bump blocklet version and persist to disk
  migrate [options]               Migrate blocklet meta to latest version for
                                  a blocklet
  publish [options] [metafile]    Publish the blocklet release to registry
  upload [options] [metafile]     Upload the blocklet to registry
  config                          Manage the Blocklet Server configuration
                                  files, use blocklet config help to see detail
  help [command]                  display help for command

None of the above command seems help? Consider command line utility abtnode.

Documentation

https://docs.arcblock.io/en/abtnode/