Skip to content

Commit ce01c2d

Browse files
authored
Merge pull request #204 from thepower/fix/clI_container_upload_fix
oclif readme
2 parents 6f5c67e + 8335f5c commit ce01c2d

File tree

3 files changed

+42
-26
lines changed

3 files changed

+42
-26
lines changed

.changeset/pre.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"mode": "pre",
2+
"mode": "exit",
33
"tag": "canary",
44
"initialVersions": {
55
"@thepowereco/cli": "1.12.15",

.changeset/smooth-buses-repair.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@thepowereco/cli': patch
3+
---
4+
5+
oclif readme

packages/cli/README.md

Lines changed: 36 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ $ npm install -g @thepowereco/cli
2222
$ tpe COMMAND
2323
running command...
2424
$ tpe (--version)
25-
@thepowereco/cli/1.12.15-canary.4 linux-x64 node-v23.1.0
25+
@thepowereco/cli/1.12.15 linux-x64 node-v23.3.0
2626
$ tpe --help [COMMAND]
2727
USAGE
2828
$ tpe COMMAND
@@ -94,7 +94,7 @@ EXAMPLES
9494
$ tpe acc get-balance --keyFilePath ./path/to/keyfile.pem --password mypassword
9595
```
9696

97-
_See code: [dist/esm/src/commands/acc/get-balance.js](https://github.com/thepower/PowerTools/blob/v1.12.15-canary.4/dist/esm/src/commands/acc/get-balance.js)_
97+
_See code: [dist/esm/src/commands/acc/get-balance.js](https://github.com/thepower/PowerTools/blob/v1.12.15/dist/esm/src/commands/acc/get-balance.js)_
9898

9999
## `tpe acc register`
100100

@@ -135,7 +135,7 @@ EXAMPLES
135135
Register a new account on a specified chain without saving the data to a file.
136136
```
137137

138-
_See code: [dist/esm/src/commands/acc/register.js](https://github.com/thepower/PowerTools/blob/v1.12.15-canary.4/dist/esm/src/commands/acc/register.js)_
138+
_See code: [dist/esm/src/commands/acc/register.js](https://github.com/thepower/PowerTools/blob/v1.12.15/dist/esm/src/commands/acc/register.js)_
139139

140140
## `tpe acc send-sk`
141141

@@ -171,7 +171,7 @@ EXAMPLES
171171
$ tpe acc send-sk --amount 100 --to AA100000001677748249 --keyFilePath ./path/to/keyfile.pem
172172
```
173173

174-
_See code: [dist/esm/src/commands/acc/send-sk.js](https://github.com/thepower/PowerTools/blob/v1.12.15-canary.4/dist/esm/src/commands/acc/send-sk.js)_
174+
_See code: [dist/esm/src/commands/acc/send-sk.js](https://github.com/thepower/PowerTools/blob/v1.12.15/dist/esm/src/commands/acc/send-sk.js)_
175175

176176
## `tpe autocomplete [SHELL]`
177177

@@ -227,20 +227,20 @@ DESCRIPTION
227227
Perform various container actions
228228
229229
EXAMPLES
230-
$ tpe container actions -m "container_start" -p 1 -f ./path/to/keyfile.pem -s mypassword
230+
$ tpe container actions -m "container_start" -i 1 -p 1 -f ./path/to/keyfile.pem -s mypassword
231231
232-
$ tpe container actions -m "container_stop" -p 1 -f ./path/to/keyfile.pem -s mypassword
232+
$ tpe container actions -m "container_stop" -i 1 -p 1 -f ./path/to/keyfile.pem -s mypassword
233233
234-
$ tpe container actions -m "container_destroy" -p 1 -f ./path/to/keyfile.pem -s mypassword
234+
$ tpe container actions -m "container_destroy" -i 1 -p 1 -f ./path/to/keyfile.pem -s mypassword
235235
236-
$ tpe container actions -m "container_handover" -p 1 -f ./path/to/keyfile.pem -s mypassword
236+
$ tpe container actions -m "container_handover" -i 1 -p 1 -f ./path/to/keyfile.pem -s mypassword
237237
238-
$ tpe container actions -m "container_getPort" -p "1 web 5000" -f ./path/to/keyfile.pem -s mypassword
238+
$ tpe container actions -m "container_getPort" -i 1 -p "1 web 5000" -f ./path/to/keyfile.pem -s mypassword
239239
240-
$ tpe container actions -m "container_getLogs" -p 1 -f ./path/to/keyfile.pem -s mypassword
240+
$ tpe container actions -m "container_getLogs" -i 1 -p 1 -f ./path/to/keyfile.pem -s mypassword
241241
```
242242

243-
_See code: [dist/esm/src/commands/container/actions.js](https://github.com/thepower/PowerTools/blob/v1.12.15-canary.4/dist/esm/src/commands/container/actions.js)_
243+
_See code: [dist/esm/src/commands/container/actions.js](https://github.com/thepower/PowerTools/blob/v1.12.15/dist/esm/src/commands/container/actions.js)_
244244

245245
## `tpe container create`
246246

@@ -271,7 +271,7 @@ EXAMPLES
271271
$ tpe container create -k ./key.pem --password mypassword --containerName "NewContainer" --containerPassword containerpassword
272272
```
273273

274-
_See code: [dist/esm/src/commands/container/create.js](https://github.com/thepower/PowerTools/blob/v1.12.15-canary.4/dist/esm/src/commands/container/create.js)_
274+
_See code: [dist/esm/src/commands/container/create.js](https://github.com/thepower/PowerTools/blob/v1.12.15/dist/esm/src/commands/container/create.js)_
275275

276276
## `tpe container list`
277277

@@ -297,7 +297,7 @@ EXAMPLES
297297
$ tpe container list -k ./key.pem --password mypassword
298298
```
299299

300-
_See code: [dist/esm/src/commands/container/list.js](https://github.com/thepower/PowerTools/blob/v1.12.15-canary.4/dist/esm/src/commands/container/list.js)_
300+
_See code: [dist/esm/src/commands/container/list.js](https://github.com/thepower/PowerTools/blob/v1.12.15/dist/esm/src/commands/container/list.js)_
301301

302302
## `tpe container update`
303303

@@ -329,7 +329,7 @@ EXAMPLES
329329
--containerName "New Container Name" --containerKeyFilePath ./containerKey.pem --containerPassword containerpassword
330330
```
331331

332-
_See code: [dist/esm/src/commands/container/update.js](https://github.com/thepower/PowerTools/blob/v1.12.15-canary.4/dist/esm/src/commands/container/update.js)_
332+
_See code: [dist/esm/src/commands/container/update.js](https://github.com/thepower/PowerTools/blob/v1.12.15/dist/esm/src/commands/container/update.js)_
333333

334334
## `tpe container upload`
335335

@@ -338,14 +338,15 @@ Upload files to a container
338338
```
339339
USAGE
340340
$ tpe container upload -k <value> -i <value> -f <value> -t <value> [-p <value>] [-s <value>] [-c] [-a <value>] [-b
341-
<value>] [-n <value>] [-e]
341+
<value>] [-n <value>] [-g <value>] [-e]
342342
343343
FLAGS
344344
-a, --ordersScAddress=<value> [default: AA100000005033174401] Orders smart contract address
345345
-b, --providerScAddress=<value> [default: AA100000005033174348] Provider smart contract address
346346
-c, --chooseProvider Choose provider
347347
-e, --isEth Use an ethereum address
348348
-f, --containerKeyFilePath=<value> (required) Path to the container key file
349+
-g, --ignoreUploadList=<value> Ignore upload list (e.g. "[.git,node_modules,logs]")
349350
-i, --containerId=<value> (required) Container ID
350351
-k, --keyFilePath=<value> (required) Path to the key file
351352
-n, --chain=<value> Chain ID
@@ -359,10 +360,20 @@ DESCRIPTION
359360
EXAMPLES
360361
$ tpe container upload --containerId 123 --containerKeyFilePath ./key.pem --containerPassword mypassword --filesPath ./files
361362
362-
$ tpe container upload -i 123 -f ./key.pem -s mypassword -p ./files
363+
$ tpe container upload -i 123 -f ./key.pem -s mypassword -t ./files
364+
365+
$ tpe container upload --containerId 123 --containerKeyFilePath ./key.pem --containerPassword mypassword --filesPath ./files --chooseProvider
366+
367+
$ tpe container upload -i 123 -f ./key.pem -s mypassword -t ./files --ignoreUploadList "[.git,node_modules,logs]"
368+
369+
$ tpe container upload --containerId 456 --containerKeyFilePath ./key.pem --containerPassword ethpassword --filesPath ./upload --isEth
370+
371+
$ tpe container upload -i 789 -f ./container-key.pem -s "securepassword" -t ./files --ordersScAddress 0xOrder123 --providerScAddress 0xProvider456
372+
373+
$ tpe container upload --containerId 321 --containerKeyFilePath ./key.pem --containerPassword mypassword --filesPath ./data --chain 5
363374
```
364375

365-
_See code: [dist/esm/src/commands/container/upload.js](https://github.com/thepower/PowerTools/blob/v1.12.15-canary.4/dist/esm/src/commands/container/upload.js)_
376+
_See code: [dist/esm/src/commands/container/upload.js](https://github.com/thepower/PowerTools/blob/v1.12.15/dist/esm/src/commands/container/upload.js)_
366377

367378
## `tpe contract deploy`
368379

@@ -396,7 +407,7 @@ EXAMPLES
396407
$ tpe contract deploy --abiPath ./path/to/abi.json --binPath ./path/to/bin --keyFilePath ./path/to/keyfile.pem --initParams "param1 param2"
397408
```
398409

399-
_See code: [dist/esm/src/commands/contract/deploy.js](https://github.com/thepower/PowerTools/blob/v1.12.15-canary.4/dist/esm/src/commands/contract/deploy.js)_
410+
_See code: [dist/esm/src/commands/contract/deploy.js](https://github.com/thepower/PowerTools/blob/v1.12.15/dist/esm/src/commands/contract/deploy.js)_
400411

401412
## `tpe contract get`
402413

@@ -423,7 +434,7 @@ EXAMPLES
423434
$ tpe contract get --abiPath ./path/to/abi.json --address AA100000001677748249 --method getInfo
424435
```
425436

426-
_See code: [dist/esm/src/commands/contract/get.js](https://github.com/thepower/PowerTools/blob/v1.12.15-canary.4/dist/esm/src/commands/contract/get.js)_
437+
_See code: [dist/esm/src/commands/contract/get.js](https://github.com/thepower/PowerTools/blob/v1.12.15/dist/esm/src/commands/contract/get.js)_
427438

428439
## `tpe contract set`
429440

@@ -459,7 +470,7 @@ EXAMPLES
459470
--address AA100000001677748249 --keyFilePath ./path/to/keyfile.pem --method setData --params "0x456 1 2 [1,2] {a: 1, b: 2} 1n"
460471
```
461472

462-
_See code: [dist/esm/src/commands/contract/set.js](https://github.com/thepower/PowerTools/blob/v1.12.15-canary.4/dist/esm/src/commands/contract/set.js)_
473+
_See code: [dist/esm/src/commands/contract/set.js](https://github.com/thepower/PowerTools/blob/v1.12.15/dist/esm/src/commands/contract/set.js)_
463474

464475
## `tpe help [COMMAND]`
465476

@@ -797,7 +808,7 @@ EXAMPLES
797808
$ tpe provider create -k ./key.pem --password mypassword --containerName "NewProvider" --containerPassword containerpassword
798809
```
799810

800-
_See code: [dist/esm/src/commands/provider/create.js](https://github.com/thepower/PowerTools/blob/v1.12.15-canary.4/dist/esm/src/commands/provider/create.js)_
811+
_See code: [dist/esm/src/commands/provider/create.js](https://github.com/thepower/PowerTools/blob/v1.12.15/dist/esm/src/commands/provider/create.js)_
801812

802813
## `tpe provider list`
803814

@@ -825,7 +836,7 @@ EXAMPLES
825836
$ tpe provider list --address 0x123...abc
826837
```
827838

828-
_See code: [dist/esm/src/commands/provider/list.js](https://github.com/thepower/PowerTools/blob/v1.12.15-canary.4/dist/esm/src/commands/provider/list.js)_
839+
_See code: [dist/esm/src/commands/provider/list.js](https://github.com/thepower/PowerTools/blob/v1.12.15/dist/esm/src/commands/provider/list.js)_
829840

830841
## `tpe provider set-url`
831842

@@ -856,7 +867,7 @@ EXAMPLES
856867
$ tpe provider set-url -k ./key.pem -i 123 -u "https://provider.example.com" --sponsorAddress 0xSponsorAddress
857868
```
858869

859-
_See code: [dist/esm/src/commands/provider/set-url.js](https://github.com/thepower/PowerTools/blob/v1.12.15-canary.4/dist/esm/src/commands/provider/set-url.js)_
870+
_See code: [dist/esm/src/commands/provider/set-url.js](https://github.com/thepower/PowerTools/blob/v1.12.15/dist/esm/src/commands/provider/set-url.js)_
860871

861872
## `tpe storage tasklist`
862873

@@ -881,7 +892,7 @@ EXAMPLES
881892
$ tpe storage tasklist ./tp-cli.json
882893
```
883894

884-
_See code: [dist/esm/src/commands/storage/tasklist.js](https://github.com/thepower/PowerTools/blob/v1.12.15-canary.4/dist/esm/src/commands/storage/tasklist.js)_
895+
_See code: [dist/esm/src/commands/storage/tasklist.js](https://github.com/thepower/PowerTools/blob/v1.12.15/dist/esm/src/commands/storage/tasklist.js)_
885896

886897
## `tpe storage upload`
887898

@@ -907,7 +918,7 @@ EXAMPLES
907918
$ tpe storage upload ./tp-cli.json
908919
```
909920

910-
_See code: [dist/esm/src/commands/storage/upload.js](https://github.com/thepower/PowerTools/blob/v1.12.15-canary.4/dist/esm/src/commands/storage/upload.js)_
921+
_See code: [dist/esm/src/commands/storage/upload.js](https://github.com/thepower/PowerTools/blob/v1.12.15/dist/esm/src/commands/storage/upload.js)_
911922

912923
## `tpe update [CHANNEL]`
913924

0 commit comments

Comments
 (0)