diff --git a/src/commands/paas/snapshots/cat.ts b/src/commands/paas/snapshots/cat.ts index defcf45f..decada66 100644 --- a/src/commands/paas/snapshots/cat.ts +++ b/src/commands/paas/snapshots/cat.ts @@ -30,6 +30,8 @@ class PaasSnapshotsCat extends PaasKommand { } ]; + static examples = ["kourou paas:snapshots:cat --project paas-project-myproject api main"]; + async runSafe() { const apiKey = await this.getCredentials(); diff --git a/src/commands/paas/snapshots/dump.ts b/src/commands/paas/snapshots/dump.ts index 50bdf540..738866c2 100644 --- a/src/commands/paas/snapshots/dump.ts +++ b/src/commands/paas/snapshots/dump.ts @@ -4,7 +4,7 @@ import { PaasKommand } from "../../../support/PaasKommand"; class PaasSnapshotsDump extends PaasKommand { public static description = - "List all snapshots for a given kuzzle application in a environment"; + "Create a new snapshot of the current application state"; public static flags = { help: flags.help(), @@ -30,6 +30,8 @@ class PaasSnapshotsDump extends PaasKommand { } ]; + static examples = ["kourou paas:snapshots:dump --project paas-project-myproject api main"]; + async runSafe() { const apiKey = await this.getCredentials(); diff --git a/src/commands/paas/snapshots/restore.ts b/src/commands/paas/snapshots/restore.ts index 0a396030..f52f0405 100644 --- a/src/commands/paas/snapshots/restore.ts +++ b/src/commands/paas/snapshots/restore.ts @@ -4,7 +4,7 @@ import { PaasKommand } from "../../../support/PaasKommand"; class PaasSnapshotsRestore extends PaasKommand { public static description = - "List all snapshots for a given kuzzle application in a environment"; + "Restore a snapshot of the current application state"; public static flags = { help: flags.help(), @@ -35,6 +35,8 @@ class PaasSnapshotsRestore extends PaasKommand { } ]; + static examples = ["kourou paas:snapshots:restore --project paas-project-myproject api main snapshot-id"]; + async runSafe() { const apiKey = await this.getCredentials();