Development v1.0.0

corelocationcli

Get the physical location of your macOS device and print it to stdout.

jerrykfc 更新于 2026-03-24 1 浏览
下载 SKILL

技能说明

Get the physical location of your macOS device and print it to stdout.

使用场景

Gets the physical location of your device and prints it to standard output. Kill it with CTRL-C.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/corelocationcli
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 18 kB
SKILL.md text/markdown
---
name: corelocationcli
description: Get the physical location of your macOS device and print it to stdout.
metadata: {"clawdbot":{"emoji":"📍","requires":{"bins":["swift"],"os":"macOS"}}}
---

# CoreLocationCLI

Gets the physical location of your device and prints it to standard output. Kill it with CTRL-C.

**Note:** Make sure Wi-Fi is turned on, otherwise you will see `kCLErrorDomain error 0`.

## Usage

```bash
CoreLocationCLI --help
CoreLocationCLI --version
CoreLocationCLI [--watch] [--verbose] [--format FORMAT]
CoreLocationCLI [--watch] [--verbose] --json
```

| Switch            | Description                                     |
| ----------------- | ----------------------------------------------- |
| `-h`, `--help`    | Display help message and exit                   |
| `--version`       | Display the program version                     |
| `-w`, `--watch`   | Continually print location updates              |
| `-v`, `--verbose` | Show debugging output                           |
| `-f`, `--format`  | Print a string with the specified substitutions  |
| `-j`, `--json`    | Print a JSON object with all available information |

## Format Specifiers

Location: `%latitude` `%longitude` `%altitude` `%direction` `%speed` `%h_accuracy` `%v_accuracy` `%time`

Reverse geocoding: `%address` `%name` `%isoCountryCode` `%country` `%postalCode` `%administrativeArea` `%subAdministrativeArea` `%locality` `%subLocality` `%thoroughfare` `%subThoroughfare` `%region` `%timeZone` `%time_local`

Default format: `%latitude %longitude`

## Examples

```bash
CoreLocationCLI
# 50.943829 6.941043

CoreLocationCLI --format "%latitude %longitude\n%address"
# 50.943829 6.941043
# Kaiser-Wilhelm-Ring 21
#  Cologne North Rhine-Westphalia 50672
#  Germany

CoreLocationCLI --json
# {"latitude":"40.141196","longitude":"-75.034815","altitude":"92.00",...}
```

## Installation

```bash
brew install cask corelocationcli
```

## Gatekeeper

First run may be blocked by macOS Gatekeeper. Go to System Settings → Privacy & Security → Security to approve.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。