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
description: Manage CloudAMQP instances, VPCs, teams, and RabbitMQ/LavinMQ configuration from the command line. Use when the user needs to create, configure, monitor, upgrade, or troubleshoot CloudAMQP message broker instances.
4
-
allowed-tools: Bash(cloudamqp:*)
3
+
description: Manage CloudAMQP instances, VPCs, teams, and RabbitMQ/LavinMQ configuration using the cloudamqp CLI. Use this skill whenever the user wants to create, list, inspect, update, delete, upgrade, restart, or troubleshoot CloudAMQP instances — even if they just say "spin up a RabbitMQ", "check my instances", or "upgrade my broker". Also use it for VPC setup, team management, and RabbitMQ config changes.
# if not set up, ask the user for their API key, then write it:
37
-
echo"YOUR_API_KEY">~/.cloudamqprc
38
-
chmod 600 ~/.cloudamqprc
39
25
```
40
26
41
-
The CLI checks in this order:
27
+
If not configured, ask the user for their API key (from https://customer.cloudamqp.com/apikeys), then:
42
28
43
-
1.`CLOUDAMQP_APIKEY` environment variable
44
-
2.`~/.cloudamqprc` file (plain text, just the key)
45
-
3. Interactive prompt (won't work in agent context — use one of the above)
29
+
```bash
30
+
echo"<api-key>">~/.cloudamqprc
31
+
chmod 600 ~/.cloudamqprc
32
+
```
46
33
47
-
Base URL defaults to `https://customer.cloudamqp.com/api` (override with `CLOUDAMQP_URL`).
34
+
Alternatively, set `CLOUDAMQP_APIKEY` in the environment. If neither is set, all commands will fail.
48
35
49
36
## Output
50
37
51
-
All commands support `-o json` for machine-readable output and `-o table` (default) for human-readable output. Use `-fields` to select specific columns.
38
+
Use `-o json` for parsing, `-o table` (default) for display. Use `--fields` to select columns.
@@ -134,36 +114,26 @@ cloudamqp team update --user-id=<id> --role=<role>
134
114
cloudamqp team remove --email=<email>
135
115
```
136
116
137
-
### Audit log
117
+
### Plans, regions, audit
138
118
139
119
```bash
120
+
cloudamqp plans [--backend=rabbitmq|lavinmq] # always fetch, never guess
121
+
cloudamqp regions [--provider=<provider>] # always fetch, never guess
140
122
cloudamqp audit [--timestamp=2024-01]
141
-
```
142
-
143
-
### API key rotation
144
-
145
-
```bash
146
123
cloudamqp rotate-key
147
124
```
148
125
149
-
## Important behavior
150
-
151
-
-**Async operations**: Instance creation, disk resizes, and upgrades are async. Use `--wait` on create, or poll with `instance get --id <id>` until `ready: true`.
152
-
-**Destructive commands** (delete, stop) prompt for confirmation. Use `--force` to skip in scripts.
153
-
-**Multiple tags**: Use `--tags` multiple times: `--tags=prod --tags=web`.
154
-
-**Shell completion**: Run `source <(cloudamqp completion zsh)` for tab completion of commands, instance IDs, plans, and regions.
155
-
156
-
## Plans and regions
126
+
## Key behaviors
157
127
158
-
Always fetch live data — don't guess plan names or regions:
128
+
-**Async**: creation, resizes, upgrades return immediately. Use `--wait` on create, or poll `instance get --id <id> -o json | jq -r '.ready'` until `"true"`.
129
+
-**Destructive commands** prompt for confirmation — use `--force` to skip.
130
+
-**Multiple tags**: repeat the flag: `--tags=prod --tags=web`.
131
+
-**Plan/region names**: always run `cloudamqp plans` / `cloudamqp regions` first — never hardcode them.
159
132
160
-
```bash
161
-
cloudamqp plans [--backend=rabbitmq|lavinmq]
162
-
cloudamqp regions [--provider=amazon-web-services]
163
-
```
133
+
## Reference guides
164
134
165
-
## Specific tasks
135
+
Read these before tackling the relevant task:
166
136
167
-
***Scripting and automation**[references/scripting.md](references/scripting.md)
168
-
***Instance upgrades and maintenance**[references/upgrades.md](references/upgrades.md)
169
-
***VPC and network setup**[references/vpc-setup.md](references/vpc-setup.md)
0 commit comments