If you have worked with Unifi at all, you know that Ubiquiti is bad at documenting what you can do outside of their admin panels. The equipment is great for those that need advanced functionality but don't necessarily have advanced networking skills. You are, in effect, limited to what they allow you to know. I was working on some utilities, and the API couldn't give me the detail I needed, so I went and looked to see what I could do on the CLI side to complement the API calls in my app.
I searched the usual places, the documentation, the forums, etc., and couldn't find what I was looking for. To be fair, this irritated me to the point of wanting to give up. This isn't in my nature, so I did what anyone like me would do in this day and age: I used AI for a purpose that I wasn't sure would even work. I used Codex in VSCode because I knew it had the ability to use SSH and log directly onto the switch to do what I was tediously trying to do: simply let me know what the commands were so that I could create an export of the commands and their uses in an .md file. I wanted the file so that I could do deeper switch diagnostics, reset ports, clear port counters, and look at the raw config, among others. The beauty of having it in .md format is that you can use this as a reference document inside your favorite IDE to build tooling that uses SSH to complete a task.
My persistence is now your cheat sheet. I like giving back to a community that has given so much to me over the years. This was done on my UDM Pro Max switches using v7.6.11, so some of the commands may be different. If you have Codex, you can go through the process on your own switches, but I would assume that if you are on v7.0 and above, you should be able to use it for reference.