Commit 276dc68
committed
Hide irrelevant commands in cvd help by default
Only show relevant commands and selector options when no devices are
running. All commands are shown if devices are running, with
device-specific commands displayed first.
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>
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
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
```
Bug: b/504758273
Assisted-by: Gemini:Next1 parent a1730e9 commit 276dc68
20 files changed
Lines changed: 86 additions & 15 deletions
File tree
- base/cvd/cuttlefish/host/commands/cvd/cli
- commands
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: 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 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
Lines changed: 52 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| 43 | + | |
41 | 44 | | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| 53 | + | |
49 | 54 | | |
| 55 | + | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
| |||
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
69 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
70 | 79 | | |
71 | 80 | | |
72 | 81 | | |
73 | 82 | | |
74 | 83 | | |
75 | 84 | | |
76 | | - | |
77 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
78 | 89 | | |
79 | 90 | | |
80 | 91 | | |
| |||
109 | 120 | | |
110 | 121 | | |
111 | 122 | | |
112 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
113 | 140 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 141 | + | |
| 142 | + | |
121 | 143 | | |
122 | 144 | | |
| 145 | + | |
123 | 146 | | |
124 | 147 | | |
125 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
126 | 162 | | |
127 | 163 | | |
128 | 164 | | |
| |||
136 | 172 | | |
137 | 173 | | |
138 | 174 | | |
| 175 | + | |
139 | 176 | | |
140 | 177 | | |
141 | 178 | | |
142 | | - | |
143 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
144 | 183 | | |
145 | 184 | | |
146 | 185 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | | - | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
0 commit comments