Commit 7907e6e
committed
Clean up cvd help, remove deprecated commands, and refactor
- Hide irrelevant commands in cvd help by default.
- Delete noop.cpp and noop.h (removing kill-server, server-kill, restart-server).
- Clean up help strings and TopLevelHelp logic in help.cpp.
Output without a running device:
================================
```
Cuttlefish Virtual Device (CVD) CLI.
usage: cvd <selector/driver options> <command> <args>
Driver Options:
-help Print this message
-verbosity=<LEVEL> Adjust Cvd verbosity level. LEVEL is Android log
severity. (Required: cvd >= v1.3)
Commands (cvd help <command> for more information):
cache - Manage the files cached by cvd
create - Create a Cuttlefish virtual device or environment
fetch, fetch_cvd - Retrieve build artifacts based on branch and target names
help - Used to display help information for other commands
lint - error checks the input virtual device json config file
load - Loads the given JSON configuration file and launches devices based on the options provided
login - Acquire credentials
reset - Used to stop devices, optionally clean up instance files, and shut down the deprecated cvd server process
version - Prints version of cvd client and cvd server
```
Output with a running device:
=============================
```
Cuttlefish Virtual Device (CVD) CLI.
usage: cvd <selector/driver options> <command> <args>
Driver Options:
-help Print this message
-verbosity=<LEVEL> Adjust Cvd verbosity level. LEVEL is Android log
severity. (Required: cvd >= v1.3)
Commands (cvd help <command> for more information):
cache - Manage the files cached by cvd
create - Create a Cuttlefish virtual device or environment
fetch, fetch_cvd - Retrieve build artifacts based on branch and target names
help - Used to display help information for other commands
lint - error checks the input virtual device json config file
load - Loads the given JSON configuration file and launches devices based on the options provided
login - Acquire credentials
reset - Used to stop devices, optionally clean up instance files, and shut down the deprecated cvd server process
version - Prints version of cvd client and cvd server
Selector Options:
-group_name <name> Specify the name of the instance group created
or selected.
-instance_name <name> Selects the device of the given name to perform the
commands for.
-instance_name <names> Takes the names of the devices to create within an
instance group. The 'names' is comma-separated.
Device-Specific Commands (cvd help <command> for more information):
display - Enables hotplug/unplug of displays from running cuttlefish virtual devices
env - Enumerate + Query APIs for all gRPC services made available by this virtual device instance
fleet - lists active devices with relevant information
clear - Clears the instance database, stopping any running instances first.
bugreport, host_bugreport, cvd_host_bugreport - Run cvd bugreport --help for command description
stop, stop_cvd - Stop all instances in a group
powerbtn - Trigger power button event on the device
powerwash - Reset device to first boot state
restart - Restart device
remove, rm - Remove devices and artifacts from the system.
screen_recording - Record screen contents
suspend, resume, snapshot_take - Suspend/resume the cuttlefish device, or take snapshot of the device
start, launch_cvd - Start a Cuttlefish virtual device or environment
status, cvd_status - Query status of a single instance group. Use `cvd fleet` for all devices
```
Assisted-by: Gemini:Next
Bug: b/5047582731 parent 758b916 commit 7907e6e
25 files changed
Lines changed: 84 additions & 248 deletions
File tree
- base/cvd/cuttlefish/host/commands/cvd/cli
- commands
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
68 | | - | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| |||
91 | 89 | | |
92 | 90 | | |
93 | 91 | | |
94 | | - | |
95 | 92 | | |
96 | 93 | | |
97 | 94 | | |
| |||
Lines changed: 0 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
218 | 216 | | |
219 | 217 | | |
220 | 218 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | 219 | | |
235 | 220 | | |
236 | 221 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
| 191 | + | |
190 | 192 | | |
191 | 193 | | |
192 | 194 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
Lines changed: 0 additions & 74 deletions
This file was deleted.
Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| |||
0 commit comments