@blocklet/cli 1.5.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,81 @@
1
+ # Blocklet Server CLI
2
+
3
+ This package contains 2 command utilities to manage Blocklet Server and Blocklets
4
+
5
+ - `blocklet`: manage blocklets, such as init/dev/bundle/deploy/publish
6
+ - `blocklet server`: manage Blocklet Server instances, such as init/start/stop/export
7
+
8
+ ## Getting Started
9
+
10
+ ```shell
11
+ # install
12
+ npm install -g @blocklet/cli
13
+
14
+ # initialize and start a new node
15
+ blocklet server init -f
16
+ blocklet server start
17
+ ```
18
+
19
+ Now your Blocklet Server is up and running.
20
+
21
+ ## `blocklet server` command
22
+
23
+ ```terminal
24
+ Usage: blocklet server [options] [command]
25
+
26
+ Options:
27
+ -V, --version output the version number
28
+ -c --config [node-config] Blocklet Server configuration file
29
+ -y --yes Automatic yes to prompts (default: false)
30
+ (default: false)
31
+ -h, --help display help for command
32
+
33
+ Commands:
34
+ start [options] Start Blocklet Server Daemon
35
+ init [options] Init Blocklet Server config
36
+ status Show Blocklet Server and blocklet status
37
+ logs Show Blocklet Server and blocklet logs
38
+ stop [options] Stop Blocklet Server and blocklets
39
+ info [options] Get environment information for debugging and
40
+ issue reporting
41
+ upgrade Self-Upgrade Blocklet Server
42
+ export [options] Eject a Blocklet Server config that can be
43
+ shared with others
44
+ help [command] display help for command
45
+
46
+ None of the above command seems help? Consider command line utility blocklet.
47
+ ```
48
+
49
+ ## `blocklet` command
50
+
51
+ ```terminal
52
+ Usage: blocklet [options] [command]
53
+
54
+ Options:
55
+ -V, --version output the version number
56
+ -y --yes Automatic yes to prompts (default: false)
57
+ (default: false)
58
+ -h, --help display help for command
59
+
60
+ Commands:
61
+ bundle [options] Bundle a blocklet that can run in Blocklet
62
+ Server
63
+ deploy [options] <folder> Deploy blocklet from local directory to
64
+ Blocklet Server
65
+ dev [options] [action] Develop blocklet from current directory
66
+ init [options] Create an empty blocklet project
67
+ meta Print blocklet meta from a directory
68
+ version [options] [newVersion] Bump blocklet version and persist to disk
69
+ migrate [options] Migrate blocklet meta to latest version for
70
+ a blocklet
71
+ publish [options] [metafile] Publish the blocklet release to registry
72
+ upload [options] [metafile] Upload the blocklet to registry
73
+ config Manage the Blocklet Server configuration
74
+ files, use blocklet config help to see detail
75
+ server [options]
76
+ help [command] display help for command
77
+ ```
78
+
79
+ ## Documentation
80
+
81
+ https://docs.arcblock.io/en/abtnode/
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { name } = require('../package.json');
4
+
5
+ process.env.ABT_NODE_PACKAGE_NAME = name;
6
+
7
+ require('@abtnode/cli/bin/blocklet');
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@blocklet/cli",
3
+ "version": "1.5.21",
4
+ "description": "Command line tools to manage Blocklet and Blocklet Server",
5
+ "homepage": "https://github.com/ArcBlock/blocklet-server#readme",
6
+ "main": "bin/blocklet.js",
7
+ "bin": {
8
+ "blocklet": "bin/blocklet.js"
9
+ },
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "scripts": {
14
+ "lint": "eslint bin",
15
+ "lint:fix": "eslint bin --fix"
16
+ },
17
+ "files": [
18
+ "bin"
19
+ ],
20
+ "author": {
21
+ "name": "wangshijun",
22
+ "email": "shijun@arcblock.io",
23
+ "url": "https://github.com/wangshijun"
24
+ },
25
+ "license": "Apache-2.0",
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/ArcBlock/blocklet-server"
29
+ },
30
+ "bugs": {
31
+ "url": "https://github.com/ArcBlock/blocklet-server/issues"
32
+ },
33
+ "dependencies": {
34
+ "@abtnode/cli": "1.5.21",
35
+ "shelljs": "^0.8.4"
36
+ },
37
+ "engines": {
38
+ "node": ">=12"
39
+ },
40
+ "gitHead": "db219f519704e8c7ebe60f8448ec6c447ac4e059"
41
+ }