Get the physical location of your macOS device and print it to stdout.
获取设备的物理位置并将其输出到标准输出。使用 CTRL-C 终止。
注意: 请确保 Wi-Fi 已开启,否则您将看到 kCLErrorDomain error 0 错误。
bash
CoreLocationCLI --help
CoreLocationCLI --version
CoreLocationCLI [--watch] [--verbose] [--format FORMAT]
CoreLocationCLI [--watch] [--verbose] --json
| 开关 | 描述 |
|---|---|
| -h, --help | 显示帮助信息并退出 |
| --version |
位置:%latitude %longitude %altitude %direction %speed %haccuracy %vaccuracy %time
反向地理编码:%address %name %isoCountryCode %country %postalCode %administrativeArea %subAdministrativeArea %locality %subLocality %thoroughfare %subThoroughfare %region %timeZone %time_local
默认格式:%latitude %longitude
bash
CoreLocationCLI
CoreLocationCLI --format %latitude %longitude\n%address
CoreLocationCLI --json
bash
brew install cask corelocationcli
首次运行可能被 macOS 门禁系统阻止。请前往系统设置 → 隐私与安全性 → 安全性进行批准。
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 corelocationcli-1776057199 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 corelocationcli-1776057199 技能
skillhub install corelocationcli-1776057199
文件大小: 1.59 KB | 发布时间: 2026-4-14 14:31