Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/forty-tigers-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@thepowereco/cli': patch
---

container upload: add examples, update desc
9 changes: 7 additions & 2 deletions packages/cli/src/commands/container/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ export default class ContainerUpload extends BaseCommand {

static override examples = [
'<%= config.bin %> <%= command.id %> --containerId 123 --containerKeyFilePath ./key.pem --containerPassword mypassword --filesPath ./files',
'<%= config.bin %> <%= command.id %> -i 123 -f ./key.pem -s mypassword -p ./files'
'<%= config.bin %> <%= command.id %> -i 123 -f ./key.pem -s mypassword -t ./files',
'<%= config.bin %> <%= command.id %> --containerId 123 --containerKeyFilePath ./key.pem --containerPassword mypassword --filesPath ./files --chooseProvider',
'<%= config.bin %> <%= command.id %> -i 123 -f ./key.pem -s mypassword -t ./files --ignoreUploadList "[.git,node_modules,logs]"',
'<%= config.bin %> <%= command.id %> --containerId 456 --containerKeyFilePath ./key.pem --containerPassword ethpassword --filesPath ./upload --isEth',
'<%= config.bin %> <%= command.id %> -i 789 -f ./container-key.pem -s "securepassword" -t ./files --ordersScAddress 0xOrder123 --providerScAddress 0xProvider456',
'<%= config.bin %> <%= command.id %> --containerId 321 --containerKeyFilePath ./key.pem --containerPassword mypassword --filesPath ./data --chain 5'
]

static override flags = {
Expand Down Expand Up @@ -102,7 +107,7 @@ export default class ContainerUpload extends BaseCommand {
}),
ignoreUploadList: Flags.string({
char: 'g',
description: 'Ignore upload list'
description: 'Ignore upload list (e.g. "[.git,node_modules,logs]")'
}),
isEth: Flags.boolean({
char: 'e',
Expand Down
Loading