A command-line tool to retrieve and print device location data using macOS CoreLocation services.
CoreLocationCLI is a macOS command-line program that retrieves and prints physical location information using the system's CoreLocation framework. It solves the need for accessing device coordinates and reverse-geocoded addresses directly from the terminal, enabling automation, testing, and logging workflows. The tool outputs data in customizable formats, including plain text and JSON.
macOS developers and power users who need to programmatically access location data for scripting, automation, or testing purposes. It's particularly useful for those integrating geolocation into command-line workflows or debugging location-aware applications.
Developers choose CoreLocationCLI because it provides a simple, scriptable interface to macOS CoreLocation services without requiring custom Swift or Objective-C code. Its lightweight, composable design and support for JSON output make it easy to integrate with other tools and pipelines.
Command line program to print location information from CoreLocation
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides a command-line interface to macOS CoreLocation, enabling easy integration with shell scripts and automation tools without writing Swift code, as emphasized in the project philosophy.
Supports custom format specifiers and JSON export, allowing tailored output for parsing in various applications, demonstrated by the extensive format table in the README.
Directly converts coordinates to addresses with multiple components like place names and time zones, eliminating the need for external geocoding services in workflows.
Watch mode continuously prints location updates until manually terminated, useful for tracking movements or logging changes, as shown in the usage examples.
Exclusively designed for macOS, making it unsuitable for cross-platform projects or environments using other operating systems, which limits its applicability.
Requires manual approval from macOS Gatekeeper to run, as noted in the README, which can be a barrier for quick setup and automation in secure environments.
Accuracy depends on Wi-Fi being enabled and proper permissions, with errors like kCLErrorDomain occurring if not configured, adding setup complexity.