@abtnode/cli 中文文档教程
Blocklet Server CLI
这个包包含 2 个命令实用程序来管理 Blocklet 服务器和 Blocklet
abtnode
: manage Blocklet Server instances, such as init/start/stop/export, designed for DevOpsblocklet
: 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
现在你的 Blocklet 服务器已经启动并运行了。
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/
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 DevOpsblocklet
: 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/