|
6 | 6 |
|
7 | 7 | ## Features |
8 | 8 |
|
9 | | -- **Resource CRUD** — Create, list, get, update, and delete 16 API7 EE resource types: |
| 9 | +- **Resource CRUD** — Create, list, get, update, and delete 13 API7 EE resource types: |
10 | 10 | - **Control Plane**: Gateway Group, Service Template |
11 | | - - **Runtime**: Route, Upstream, Service, Consumer, SSL Certificate, Plugin, Global Rule, Stream Route, Plugin Config, Plugin Metadata, Consumer Group, Credential, Secret, Proto |
| 11 | + - **Runtime**: Route, Service, Consumer, SSL Certificate, Plugin, Global Rule, Stream Route, Plugin Metadata, Credential, Secret, Proto |
12 | 12 | - **Context management** — Switch between multiple API7 EE instances (`a7 context create`, `a7 context use`, `a7 context list`) |
13 | 13 | - **Gateway group scoping** — All runtime operations are scoped to a gateway group via `--gateway-group` flag or context config |
14 | 14 | - **Rich output** — Human-friendly tables in TTY, machine-readable JSON/YAML in pipes (`--output json|yaml|table`) |
@@ -72,18 +72,11 @@ a7 gateway-group get <id> --output json |
72 | 72 | ### 3. Create resources |
73 | 73 |
|
74 | 74 | ```bash |
75 | | -# Create an upstream |
76 | | -a7 upstream create \ |
77 | | - --name my-upstream \ |
78 | | - --type roundrobin \ |
79 | | - --nodes "httpbin.org:80=1" |
| 75 | +# Create a service with inline upstream |
| 76 | +a7 service create -g default -f service.yaml |
80 | 77 |
|
81 | 78 | # Create a route |
82 | | -a7 route create \ |
83 | | - --name my-route \ |
84 | | - --uri "/api/v1/*" \ |
85 | | - --methods GET,POST \ |
86 | | - --upstream-id <upstream-id> |
| 79 | +a7 route create -g default -f route.yaml |
87 | 80 | ``` |
88 | 81 |
|
89 | 82 | ### 4. Read and explore |
@@ -114,13 +107,9 @@ a7 route update <id> \ |
114 | 107 | ### 6. Clean up |
115 | 108 |
|
116 | 109 | ```bash |
117 | | -# Delete the route and upstream |
118 | | -a7 route delete <id> |
119 | | -a7 upstream delete <id> |
120 | | - |
121 | | -# Verify they're gone |
122 | | -a7 route list |
123 | | -a7 upstream list |
| 110 | +# Delete the route and service |
| 111 | +a7 route delete <id> -g default --force |
| 112 | +a7 service delete <id> -g default --force |
124 | 113 | ``` |
125 | 114 |
|
126 | 115 | ## Commands |
@@ -149,16 +138,13 @@ a7 upstream list |
149 | 138 | | Command | Alias | Actions | Description | |
150 | 139 | |---------|-------|---------|-------------| |
151 | 140 | | `a7 route` | `rt` | list, get, create, update, delete | Manage routes | |
152 | | -| `a7 upstream` | `us` | list, get, create, update, delete | Manage upstreams | |
153 | 141 | | `a7 service` | `svc` | list, get, create, update, delete | Manage runtime services | |
154 | 142 | | `a7 consumer` | `c` | list, get, create, update, delete | Manage consumers | |
155 | 143 | | `a7 ssl` | — | list, get, create, update, delete | Manage SSL certificates | |
156 | 144 | | `a7 plugin` | `pl` | list, get | Manage plugins | |
157 | 145 | | `a7 global-rule` | `gr` | list, get, create, update, delete | Manage global rules | |
158 | 146 | | `a7 stream-route` | `sr` | list, get, create, update, delete | Manage stream routes | |
159 | | -| `a7 plugin-config` | `pc` | list, get, create, update, delete | Manage plugin configs | |
160 | 147 | | `a7 plugin-metadata` | `pm` | get, create, update, delete | Manage plugin metadata | |
161 | | -| `a7 consumer-group` | `cg` | list, get, create, update, delete | Manage consumer groups | |
162 | 148 | | `a7 credential` | `cred` | list, get, create, update, delete | Manage consumer credentials | |
163 | 149 | | `a7 secret` | `sec` | list, get, create, update, delete | Manage secret providers | |
164 | 150 | | `a7 proto` | `pb` | list, get, create, update, delete | Manage protobuf definitions | |
@@ -247,7 +233,7 @@ See [AGENTS.md](AGENTS.md) for the full development guide, coding conventions, a |
247 | 233 | - [Coding Standards](docs/coding-standards.md) |
248 | 234 | - [Testing Strategy](docs/testing-strategy.md) |
249 | 235 | - [Development Roadmap](docs/roadmap.md) |
250 | | -- [User Guides](docs/user-guide/) — Per-resource guides for all 16 resource types |
| 236 | +- [User Guides](docs/user-guide/) — Per-resource guides for all supported resource types |
251 | 237 |
|
252 | 238 | ## Contributing |
253 | 239 |
|
|
0 commit comments