You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Development.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,27 @@ Examples:
105
105
./cloudstackctl apply -f application.yaml
106
106
```
107
107
108
+
CLI flags: `--all / -A`
109
+
------------------------
110
+
111
+
Two commands support an `--all` (short `-A`) flag in cluster mode to query CloudStack directly rather than the controller DB:
112
+
113
+
-`get VirtualMachine -A` — list all VMs from CloudStack (including unmanaged VMs); without `-A` the controller returns only VMs persisted in the DB (managed by cloudstackctl).
114
+
-`describe <Kind> <name> -A` — describe the named resource by querying CloudStack directly rather than using controller-managed state.
115
+
116
+
Examples:
117
+
118
+
```bash
119
+
# Cluster mode: list only managed VMs (default)
120
+
./cloudstackctl get VirtualMachine
121
+
122
+
# Cluster mode: list all VMs from CloudStack (include unmanaged)
123
+
./cloudstackctl get VirtualMachine -A
124
+
125
+
# Describe a VM from CloudStack directly
126
+
./cloudstackctl describe VirtualMachine my-vm -A
127
+
```
128
+
108
129
## PostgreSQL environment variables
109
130
110
131
`cloudstackctl` reads the database connection from `DATABASE_DSN` if provided, or
0 commit comments