Skip to content

garmcli v2.0.0

Latest

Choose a tag to compare

@matheuscoelhomalta matheuscoelhomalta released this 15 Oct 19:44

Native Garmin access

garmcli 2.0.0 replaces the separately installed gccli executable with the Python library garminconnect==0.3.18, installed automatically with garmcli. Garmin access remains read-only. Licensed under MIT; an independent community project, not affiliated with Garmin.

What's changed

  • Native auth login, auth status and auth logout commands. Password and MFA prompts are hidden; sessions use macOS Keychain or Linux Secret Service, with no plaintext token fallback.
  • A fixed read-only request allowlist preserves all 15 health metric families, devices, activity listings and FIT/GPX/TCX/KML/CSV downloads.
  • Bounded data requests, sanitized errors, token refresh persistence and process cleanup on timeout or interruption.
  • Updated documentation and companion agent skill for the native workflow.

Breaking changes and migration

  • Python 3.12+ is required (previously 3.11+).
  • The --gccli option is removed. The doctor diagnostic now reports data.backend for the Python library.
  • Sign in with garmcli auth login your-email@example.com. Existing gccli sessions are not automatically imported.
  • Keep your existing SQLite history. Database schema version 1, normalized account identities and outer JSON envelope version 1 are preserved. Use the same Garmin email and domain. No reset or history migration is needed.
  • On Linux, live access requires an available, unlocked Secret Service credential store. Offline history queries need no Garmin authentication or network access.

Install or upgrade

With uv:

uv tool install --python 3.12 --reinstall garmcli==2.0.0
garmcli auth login your-email@example.com
garmcli --json doctor

With Homebrew:

brew update
brew install matheuscoelhomalta/tap/garmcli

For an existing Homebrew installation, use brew upgrade matheuscoelhomalta/tap/garmcli. Choose which installation should be on your PATH if you use both channels.

Packages

  • garmcli-2.0.0-py3-none-any.whl: universal Python installation package; runtime dependencies install automatically.
  • garmcli-2.0.0.tar.gz: source installation package, including tests, MIT license and companion skill.
  • garmcli-skill-v2.0.0.zip: companion skill only; the CLI must be installed separately.
  • SHA256SUMS: checksums for the three packages. Verify with shasum -a 256 -c SHA256SUMS.

Validation

  • 73 synthetic tests passed on Linux and macOS with Python 3.12 and 3.14: GitHub CI.
  • Native read-only access was verified for all 15 health metrics, Venu 4 device detection, activity listings and all five download formats.
  • Existing 30-day history exports remained compatible; interrupted live synchronization resumed without refetching completed records.
  • Release artifacts match the committed Python source and contain no personal Garmin history, exports or credentials.

Release commit: 0c0bebfb997078b912aaa79205566dcfb961b633.