ui-cli 2.0.0__tar.gz → 2.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ui_cli-2.0.0 → ui_cli-2.1.1}/.gitignore +3 -0
- ui_cli-2.1.1/CHANGELOG.md +263 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/PKG-INFO +20 -1
- {ui_cli-2.0.0 → ui_cli-2.1.1}/README.md +19 -0
- ui_cli-2.1.1/VERSION +1 -0
- ui_cli-2.1.1/src/ui_cli/commands/local/firewall.py +718 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/local_client.py +72 -5
- ui_cli-2.0.0/CHANGELOG.md +0 -177
- ui_cli-2.0.0/VERSION +0 -1
- ui_cli-2.0.0/src/ui_cli/commands/local/firewall.py +0 -285
- {ui_cli-2.0.0 → ui_cli-2.1.1}/LICENSE +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/pyproject.toml +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/__init__.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/client.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/__init__.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/devices.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/groups.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/hosts.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/isp.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/local/__init__.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/local/apgroups.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/local/clients.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/local/config.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/local/devices.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/local/dpi.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/local/events.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/local/health.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/local/networks.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/local/portfwd.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/local/stats.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/local/utils.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/local/vouchers.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/local/wan.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/local/wlans.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/sdwan.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/sites.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/speedtest.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/status.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/commands/version.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/config.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/groups.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/main.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/models.py +0 -0
- {ui_cli-2.0.0 → ui_cli-2.1.1}/src/ui_cli/output.py +0 -0
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
- **firewall:** Migrate to zone-based policy API
|
|
14
|
+
|
|
15
|
+
## [2.1.0] - 2026-06-26
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- Green - add firewall rule creation
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Tests
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
- Red - cover firewall rule creation
|
|
27
|
+
|
|
28
|
+
## [2.0.0] - 2026-04-16
|
|
29
|
+
|
|
30
|
+
### chore
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
- Remove legacy MCP server
|
|
34
|
+
|
|
35
|
+
## [1.2.1] - 2026-04-16
|
|
36
|
+
|
|
37
|
+
### chore
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
- **gitignore:** Ignore local backup artifacts
|
|
41
|
+
|
|
42
|
+
## [1.2.0] - 2026-04-15
|
|
43
|
+
|
|
44
|
+
### chore
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
- Update changelog for API key auth (1.2.0)
|
|
48
|
+
|
|
49
|
+
- Bump version to 1.2.0
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### merge
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
- Worktree-bead-ui-cli-a4b
|
|
56
|
+
|
|
57
|
+
## [1.1.1] - 2026-04-15
|
|
58
|
+
|
|
59
|
+
### Added
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
- **ui-cli-a4b:** Green — UniFi API key authentication (AK1-AK6)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Documentation
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
- Update feature documentation for ui-cli-a4b — API key auth
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Fixed
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
- **ui-cli-a4b:** Address review findings iteration 1 — API prefix in key mode, test assertions
|
|
75
|
+
|
|
76
|
+
- **ui-cli-a4b:** Address review findings iteration 2 — v2 AK3 test, extract error constant, rename _ensure_cookies_loaded
|
|
77
|
+
|
|
78
|
+
- **ui-cli-a4b:** Clear error when API key used against non-UDM controller (404/405)
|
|
79
|
+
|
|
80
|
+
- **ui-cli-a4b:** Legacy-controller fallback, status API-key support, remove v2 404-remapping
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
### Tests
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
- **ui-cli-a4b:** Red — API key authentication test class AK1-AK6
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### chore
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
- **beads:** Update dolt backup state after remote sync
|
|
93
|
+
|
|
94
|
+
- Bump version to 1.1.1
|
|
95
|
+
|
|
96
|
+
## [1.1.0] - 2026-04-15
|
|
97
|
+
|
|
98
|
+
### Added
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
- **cli:** Improve wrapper script config loading and venv support
|
|
102
|
+
|
|
103
|
+
- **cli:** Add AP groups management, refactor WLAN commands
|
|
104
|
+
|
|
105
|
+
- **clients:** Add set-ip command for DHCP reservations
|
|
106
|
+
|
|
107
|
+
- **clients:** Add rename command for setting client display names
|
|
108
|
+
|
|
109
|
+
- **networks:** Add update command for DHCP range configuration
|
|
110
|
+
|
|
111
|
+
- **wan:** Add WAN DNS management and extend LAN networks DNS options
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
### Documentation
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
- Add CLAUDE.md project instructions and UniFi API reference submodule
|
|
118
|
+
|
|
119
|
+
- Add X-Sense security range (40-44) to IoT IP schema
|
|
120
|
+
|
|
121
|
+
- Add X-Sense Base Station AirBnB (.41)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### bd
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
- Backup 2026-03-02 16:52
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
### chore
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
- Ignore uv.lock
|
|
134
|
+
|
|
135
|
+
- Bump version to 1.1.0
|
|
136
|
+
|
|
137
|
+
## [1.0.0] - 2025-12-04
|
|
138
|
+
|
|
139
|
+
### Added
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
- Add client groups for bulk actions
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### Documentation
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
- Rewrite README for clarity and structure
|
|
149
|
+
|
|
150
|
+
- Comprehensive README rewrite
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### Fixed
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
- Update docs workflow to use pages/ directory
|
|
157
|
+
|
|
158
|
+
- Correct Client Groups doc link in README
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### release
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
- V1.0.0 "Glazed"
|
|
165
|
+
|
|
166
|
+
## [0.3.0] - 2025-12-03
|
|
167
|
+
|
|
168
|
+
### Added
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
- Add Docker container support
|
|
172
|
+
|
|
173
|
+
- Add MCP server for Claude Desktop integration
|
|
174
|
+
|
|
175
|
+
- Add ./ui mcp command for Claude Desktop integration
|
|
176
|
+
|
|
177
|
+
- Implement MCP server v2 with tools layer
|
|
178
|
+
|
|
179
|
+
- Add quick timeout and spinners for local commands
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
### Changed
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
- Prepare for MCP server v2
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
### Documentation
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
- Add GitHub Pages documentation site
|
|
192
|
+
|
|
193
|
+
- Compact landing page to avoid scroll
|
|
194
|
+
|
|
195
|
+
- Redesign landing page with 2-column layout
|
|
196
|
+
|
|
197
|
+
- Reduce element sizes and fix install command
|
|
198
|
+
|
|
199
|
+
- Add MCP server documentation
|
|
200
|
+
|
|
201
|
+
- Add MCP server documentation to main docs
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
### Fixed
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
- Add mcp package check to install/check commands
|
|
208
|
+
|
|
209
|
+
- Set cwd to project root so .env file is found
|
|
210
|
+
|
|
211
|
+
- Use wrapper script to load .env for MCP server
|
|
212
|
+
|
|
213
|
+
- Use sys.executable instead of ./ui wrapper in CLI runner
|
|
214
|
+
|
|
215
|
+
- Network_list command and add MCP tools test script
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
### chore
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
- Bump version to 0.3.0
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
### wip
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
- MCP server v1 - disabled list_clients due to output issues
|
|
228
|
+
|
|
229
|
+
## [0.2.0] - 2025-12-01
|
|
230
|
+
|
|
231
|
+
### Added
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
- Complete Milestone 2 Local Controller API implementation
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
### Documentation
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
- Rewrite user guide for clarity and completeness
|
|
241
|
+
|
|
242
|
+
- Update README with new mascot art
|
|
243
|
+
|
|
244
|
+
- Finalize repository documentation
|
|
245
|
+
|
|
246
|
+
- Add detailed features list to README
|
|
247
|
+
|
|
248
|
+
- Add Mermaid command tree diagram to README
|
|
249
|
+
|
|
250
|
+
- Replace Mermaid diagram with collapsible ASCII trees
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
### chore
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
- Bump version to 0.2.0 and add release notes
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
### style
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
- Fix import order in test file
|
|
263
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ui-cli
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1.1
|
|
4
4
|
Summary: CLI utility for UniFi Site Manager and local controller APIs
|
|
5
5
|
Project-URL: Homepage, https://github.com/vedanta/ui-cli
|
|
6
6
|
Project-URL: Documentation, https://vedanta.github.io/ui-cli
|
|
@@ -540,6 +540,21 @@ Requires `UNIFI_CONTROLLER_URL`, `UNIFI_CONTROLLER_USERNAME`, and `UNIFI_CONTROL
|
|
|
540
540
|
./ui lo firewall list -v # Verbose with full details
|
|
541
541
|
./ui lo firewall list -o json # JSON output
|
|
542
542
|
|
|
543
|
+
# Create a targeted inter-VLAN allow rule
|
|
544
|
+
./ui lo firewall add "Allow Hermes to MacBook MoneyMoney MCP" \
|
|
545
|
+
--ruleset LAN_IN \
|
|
546
|
+
--action accept \
|
|
547
|
+
--protocol tcp \
|
|
548
|
+
--src 192.168.60.63/32 \
|
|
549
|
+
--dst 192.168.2.120/32 \
|
|
550
|
+
--dst-port 3850 \
|
|
551
|
+
--before "VLAN60" \
|
|
552
|
+
--logging \
|
|
553
|
+
-y
|
|
554
|
+
|
|
555
|
+
# Preview the UniFi payload without changing the controller
|
|
556
|
+
./ui lo firewall add "Allow MCP" --protocol tcp --dst-port 3850 --dry-run -o json
|
|
557
|
+
|
|
543
558
|
# Address and port groups
|
|
544
559
|
./ui lo firewall groups # List all groups
|
|
545
560
|
./ui lo firewall groups -v # Show group members
|
|
@@ -992,6 +1007,10 @@ NO_COLOR=1 ./ui lo health
|
|
|
992
1007
|
├── list # List firewall rules
|
|
993
1008
|
│ ├── --ruleset # Filter by ruleset
|
|
994
1009
|
│ └── -v # Verbose
|
|
1010
|
+
├── add <name> # Create a firewall rule
|
|
1011
|
+
│ ├── --src/--dst # IPv4 address/CIDR filters
|
|
1012
|
+
│ ├── --dst-port # Destination port/list/range
|
|
1013
|
+
│ └── --before # Place before rule ID/name
|
|
995
1014
|
└── groups # List address/port groups
|
|
996
1015
|
└── -v # Show members
|
|
997
1016
|
|
|
@@ -504,6 +504,21 @@ Requires `UNIFI_CONTROLLER_URL`, `UNIFI_CONTROLLER_USERNAME`, and `UNIFI_CONTROL
|
|
|
504
504
|
./ui lo firewall list -v # Verbose with full details
|
|
505
505
|
./ui lo firewall list -o json # JSON output
|
|
506
506
|
|
|
507
|
+
# Create a targeted inter-VLAN allow rule
|
|
508
|
+
./ui lo firewall add "Allow Hermes to MacBook MoneyMoney MCP" \
|
|
509
|
+
--ruleset LAN_IN \
|
|
510
|
+
--action accept \
|
|
511
|
+
--protocol tcp \
|
|
512
|
+
--src 192.168.60.63/32 \
|
|
513
|
+
--dst 192.168.2.120/32 \
|
|
514
|
+
--dst-port 3850 \
|
|
515
|
+
--before "VLAN60" \
|
|
516
|
+
--logging \
|
|
517
|
+
-y
|
|
518
|
+
|
|
519
|
+
# Preview the UniFi payload without changing the controller
|
|
520
|
+
./ui lo firewall add "Allow MCP" --protocol tcp --dst-port 3850 --dry-run -o json
|
|
521
|
+
|
|
507
522
|
# Address and port groups
|
|
508
523
|
./ui lo firewall groups # List all groups
|
|
509
524
|
./ui lo firewall groups -v # Show group members
|
|
@@ -956,6 +971,10 @@ NO_COLOR=1 ./ui lo health
|
|
|
956
971
|
├── list # List firewall rules
|
|
957
972
|
│ ├── --ruleset # Filter by ruleset
|
|
958
973
|
│ └── -v # Verbose
|
|
974
|
+
├── add <name> # Create a firewall rule
|
|
975
|
+
│ ├── --src/--dst # IPv4 address/CIDR filters
|
|
976
|
+
│ ├── --dst-port # Destination port/list/range
|
|
977
|
+
│ └── --before # Place before rule ID/name
|
|
959
978
|
└── groups # List address/port groups
|
|
960
979
|
└── -v # Show members
|
|
961
980
|
|
ui_cli-2.1.1/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.1
|