-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(instance): add image update command (#2539)
- Loading branch information
Showing
12 changed files
with
6,346 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
cmd/scw/testdata/test-all-usage-instance-image-update-usage.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 | ||
🟥🟥🟥 STDERR️️ 🟥🟥🟥️ | ||
Update properties of an instance image. | ||
|
||
USAGE: | ||
scw instance image update [arg=value ...] | ||
|
||
EXAMPLES: | ||
Update image name | ||
scw instance image update image-id=11111111-1111-1111-1111-111111111111 name=foo | ||
|
||
Update image public | ||
scw instance image update image-id=11111111-1111-1111-1111-111111111111 public=true | ||
|
||
Add extra volume | ||
scw instance image update image-id=11111111-1111-1111-1111-111111111111 extra-volumes.1.id=11111111-1111-1111-1111-111111111111 | ||
|
||
ARGS: | ||
image-id | ||
[name] | ||
[arch] (x86_64 | arm) | ||
[extra-volumes.{index}.id] Additional extra-volume ID | ||
[from-server] | ||
[public] | ||
[tags.{index}] | ||
[project] Project ID to use. If none is passed the default project ID will be used | ||
[organization] Organization ID to use. If none is passed the default organization ID will be used | ||
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | pl-waw-1) | ||
|
||
FLAGS: | ||
-h, --help help for update | ||
|
||
GLOBAL FLAGS: | ||
-c, --config string The path to the config file | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human") | ||
-p, --profile string The config profile to use |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.