I've found support.apple.com and discussions.apple.com to be incredibly wanting. This isn't helped in the slightest by the fact that OSX changes tools, even in major versions. If anyone is doubting the "harder to get" claim then I encourage you to search (you can use LLMs) to figure out how to print the SSID you're connected to from the CLI. Such a task is really really simple. I can tell you a bunch of ways to do this on linux with tools like `iw`, `iwconfig`, `nmcli`, or `iwgetid` but I can no longer tell you how to do this on OSX. The linux answer is hard because the tool might change based on your distro or you can install a tool. That requires more understanding. But on OSX, this category of problems don't exist.
If you want the old answer you can see here. None of those work, even with sudo, nor does wtallis's answer, despite this working on an earlier version of Sequoia (FWIW, I'm now on 15.7.3): https://news.ycombinator.com/item?id=41633547