README
Blocklet Server CLI
This package contains 2 command utilities to manage Blocklet Server and Blocklets
blocklet
: manage blocklets, such as init/dev/bundle/deploy/publishblocklet server
: manage Blocklet Server instances, such as init/start/stop/export
Getting Started
# install
npm install -g @blocklet/cli
# initialize and start a new node
blocklet server init -f
blocklet server start
Now your Blocklet Server is up and running.
command blocklet server
Usage: blocklet server [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 Blocklet Server
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.
command blocklet
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] 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
upload [options] [metafile] Upload the blocklet to blocklet store
exec <script> Execute script in blocklet running context
create [name] Create a blocklet use create-blocklet
config [options] Manage the Blocklet Server configuration
files, use blocklet config help to see detail
server [options]
help [command] display help for command