VibeHunt
Back to browse

Core Location CLI

Prints location information from CoreLocation

Source

CoreLocationCLI is a command‑line utility for macOS that retrieves the device’s physical location via the CoreLocation framework and writes the data to standard output. It can report latitude, longitude, altitude, speed, direction, accuracy metrics, and a timestamp, and it can also perform reverse geocoding to include address components such as street, city, region, country, postal code, and time zone. The tool supports a simple format string with placeholders for any of these fields, or a JSON output mode that returns all available information in a structured object.

The program can be run once to obtain a single snapshot, or invoked with the --watch option to continuously emit updated locations as the device moves. An optional --verbose flag provides debugging information, and the --help and --version switches expose usage guidance and version data. Users are expected to have Wi‑Fi enabled; otherwise a CoreLocation error is reported.

CoreLocationCLI is distributed as a stable Homebrew cask and can also be built from source. It is intended for lightweight testing, logging, or scripting workflows that need quick access to location data on macOS without a graphical interface.

Reviews

Sign in to leave a review.

Loading reviews…

Similar apps