@constellation-network/node-pilot 0.0.4 → 0.0.6
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
CHANGED
@@ -11,6 +11,7 @@ A new CLI generated with oclif
|
|
11
11
|
|
12
12
|
<!-- toc -->
|
13
13
|
* [Usage](#usage)
|
14
|
+
* [The TLDR Version](#the-tldr-version)
|
14
15
|
* [Commands](#commands)
|
15
16
|
<!-- tocstop -->
|
16
17
|
# Usage
|
@@ -20,13 +21,20 @@ $ npm install -g @constellation-network/node-pilot
|
|
20
21
|
$ cpilot COMMAND
|
21
22
|
running command...
|
22
23
|
$ cpilot (--version|-v)
|
23
|
-
@constellation-network/node-pilot/0.0.
|
24
|
+
@constellation-network/node-pilot/0.0.6 darwin-arm64 node-v22.15.0
|
24
25
|
$ cpilot --help [COMMAND]
|
25
26
|
USAGE
|
26
27
|
$ cpilot COMMAND
|
27
28
|
...
|
28
29
|
```
|
29
30
|
<!-- usagestop -->
|
31
|
+
# The TLDR Version
|
32
|
+
#### Simply run cpilot with no commands.
|
33
|
+
```sh-session
|
34
|
+
$ cpilot
|
35
|
+
```
|
36
|
+
If no command is entered, node-pilot will automatically perform a series of checks to identify the necessary configurations or actions required to bring your validator node online and connect it to the cluster.
|
37
|
+
|
30
38
|
# Commands
|
31
39
|
<!-- commands -->
|
32
40
|
* [`cpilot config`](#cpilot-config)
|
@@ -54,7 +62,7 @@ EXAMPLES
|
|
54
62
|
$ cpilot config
|
55
63
|
```
|
56
64
|
|
57
|
-
_See code: [src/commands/config.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.
|
65
|
+
_See code: [src/commands/config.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.6/src/commands/config.ts)_
|
58
66
|
|
59
67
|
## `cpilot config get [NAME]`
|
60
68
|
|
@@ -78,7 +86,7 @@ EXAMPLES
|
|
78
86
|
$ cpilot config get gl0:CL_PUBLIC_HTTP_PORT
|
79
87
|
```
|
80
88
|
|
81
|
-
_See code: [src/commands/config/get.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.
|
89
|
+
_See code: [src/commands/config/get.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.6/src/commands/config/get.ts)_
|
82
90
|
|
83
91
|
## `cpilot config set NAME VALUE`
|
84
92
|
|
@@ -101,7 +109,7 @@ EXAMPLES
|
|
101
109
|
$ cpilot config set gl0:CL_PUBLIC_HTTP_PORT 9000
|
102
110
|
```
|
103
111
|
|
104
|
-
_See code: [src/commands/config/set.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.
|
112
|
+
_See code: [src/commands/config/set.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.6/src/commands/config/set.ts)_
|
105
113
|
|
106
114
|
## `cpilot help [COMMAND]`
|
107
115
|
|
@@ -138,7 +146,7 @@ EXAMPLES
|
|
138
146
|
$ cpilot info
|
139
147
|
```
|
140
148
|
|
141
|
-
_See code: [src/commands/info.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.
|
149
|
+
_See code: [src/commands/info.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.6/src/commands/info.ts)_
|
142
150
|
|
143
151
|
## `cpilot logs [LAYER]`
|
144
152
|
|
@@ -161,7 +169,7 @@ EXAMPLES
|
|
161
169
|
$ cpilot logs
|
162
170
|
```
|
163
171
|
|
164
|
-
_See code: [src/commands/logs.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.
|
172
|
+
_See code: [src/commands/logs.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.6/src/commands/logs.ts)_
|
165
173
|
|
166
174
|
## `cpilot restart`
|
167
175
|
|
@@ -178,7 +186,7 @@ EXAMPLES
|
|
178
186
|
$ cpilot restart
|
179
187
|
```
|
180
188
|
|
181
|
-
_See code: [src/commands/restart.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.
|
189
|
+
_See code: [src/commands/restart.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.6/src/commands/restart.ts)_
|
182
190
|
|
183
191
|
## `cpilot shutdown`
|
184
192
|
|
@@ -195,7 +203,7 @@ EXAMPLES
|
|
195
203
|
$ cpilot shutdown
|
196
204
|
```
|
197
205
|
|
198
|
-
_See code: [src/commands/shutdown.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.
|
206
|
+
_See code: [src/commands/shutdown.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.6/src/commands/shutdown.ts)_
|
199
207
|
|
200
208
|
## `cpilot status`
|
201
209
|
|
@@ -209,5 +217,5 @@ DESCRIPTION
|
|
209
217
|
Display node status and configuration settings
|
210
218
|
```
|
211
219
|
|
212
|
-
_See code: [src/commands/status.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.
|
220
|
+
_See code: [src/commands/status.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.6/src/commands/status.ts)_
|
213
221
|
<!-- commandsstop -->
|
@@ -59,10 +59,10 @@ export const checkProject = {
|
|
59
59
|
else if (rInfo.version !== nInfo.version) {
|
60
60
|
configStore.setNetworkInfo({ type: rInfo.network, version: rInfo.version });
|
61
61
|
}
|
62
|
-
const
|
62
|
+
const clusterVersion = await clusterService.getReleaseVersion();
|
63
63
|
if (!requiresInstall) {
|
64
64
|
const nInfo = configStore.getNetworkInfo();
|
65
|
-
if (nInfo.version !==
|
65
|
+
if (nInfo.version !== clusterVersion) {
|
66
66
|
const answer = await input({
|
67
67
|
default: 'y',
|
68
68
|
message: `A new required network version has been detected. Do you want to upgrade now? (y/n): `
|
@@ -79,9 +79,10 @@ export const checkProject = {
|
|
79
79
|
},
|
80
80
|
async runInstall() {
|
81
81
|
const nInfo = configStore.getNetworkInfo();
|
82
|
+
const clusterVersion = await clusterService.getReleaseVersion();
|
82
83
|
let rInfo = await configHelper.getReleaseInfo();
|
83
|
-
if (rInfo && rInfo.network === nInfo.type) {
|
84
|
-
clm.postStep(`Network files are already installed for ${nInfo.type}`);
|
84
|
+
if (rInfo && rInfo.network === nInfo.type && rInfo.version === clusterVersion) {
|
85
|
+
clm.postStep(`Network files are already installed for ${nInfo.type} version ${clusterVersion}`);
|
85
86
|
return false;
|
86
87
|
}
|
87
88
|
const nodeInfo = await nodeService.getNodeInfo('first');
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
@@ -232,7 +232,6 @@ check_docker() {
|
|
232
232
|
curl -fsSL https://get.docker.com -o get-docker.sh
|
233
233
|
sudo sh ./get-docker.sh
|
234
234
|
sudo usermod -aG docker $USER
|
235
|
-
newgrp docker
|
236
235
|
echo "Docker installed. You may need to log out and back in for group changes to take effect."
|
237
236
|
else
|
238
237
|
echo "⚠️ Unsupported Linux distribution. Please install Docker manually."
|