Garmin Connect. One binary.
gccli is a fast, script-friendly CLI for Garmin Connect — activities, health data, workouts, body composition, devices, gear, goals, badges, and more. JSON output and credential storage in the OS keyring.
Tip: gccli auth login saves your email as the default account automatically.
Install via Homebrew or build from source.
brew install bpauli/tap/gccli
git clone https://github.com/bpauli/gccli.git cd gccli make build ./bin/gccli --help
# Bash (~/.bashrc) source <(gccli completion bash) # Zsh (~/.zshrc) source <(gccli completion zsh) # Fish (~/.config/fish/config.fish) gccli completion fish | source # PowerShell ($PROFILE) gccli completion powershell | Invoke-Expression
make tools # Install dev tools make test # Unit tests + race make lint # golangci-lint make fmt # goimports + gofumpt make ci # Full CI gate
Authenticate once via browser or headless, then start querying your Garmin data.
Opens your browser for Garmin SSO. Tokens are stored in your system keyring.
gccli auth login you@example.com
For servers or CI. Supports MFA.
gccli auth login you@example.com --headless gccli auth login you@example.com --headless --mfa-code 123456
Login saves your default account automatically. Check auth status and fetch your recent activities.
gccli auth status gccli activities list --limit 5
Defaults to auto-detect. Force with GCCLI_KEYRING_BACKEND: keychain (macOS), secret-service (Linux D-Bus), or file (fallback). The file backend encrypts tokens with a fixed passphrase that is built into gccli. Anyone who can read the files can decrypt the tokens. Use the keychain or Secret Service when you can.
Comprehensive Garmin Connect coverage with consistent CLI patterns and clean output.
List, search, view details, splits, weather, HR/power zones. Download FIT/GPX/TCX/KML/CSV. Upload, create (with date), rename, retype, describe, change privacy, mark as favorite, list favorites, delete. Trim the start or end, and restore the original. Change the privacy of all past activities. Set exercise sets for strength training. List pending activities. Activity totals by type, overall and per month. Comments and likes of an activity. Like an activity and remove the like. Add, edit and delete comments, and like comments.
Steps, heart rate, sleep, stress, HRV, SpO2, respiration, body battery with daily low and high, Health Snapshot sessions and their PDF report, floors, training readiness, daily and weekly training status, VO2max, fitness age, race predictions, endurance and hill score statistics, critical swim speed, power curve, running economy, heat and altitude acclimation, running tolerance, cycling ability. Activity totals per day, week, month or year for the metrics you pick.
Create with pace/HR/power/cadence targets, schedule to calendar, send to your device, download as FIT, upload from JSON, update in place without losing the ID or schedule. Export the schedule, list workout types and sport types. View, set and clear strength benchmarks. Running, cycling, strength, and more.
Weight tracking, body fat, muscle mass, weigh-in history, latest weigh-in, weekly weight summaries for 52 weeks, blood pressure with its PDF report, glucose. Add entries and upload via FIT encoding.
List courses, view favorites, get full course detail, download as FIT or GPX. Import GPX files as new courses. Send courses directly to your device or delete them.
List your segments and favorites. Search segments by name or map area, with filters for activity type, classification, surface, distance and grade. See a leaderboard by scope, group, gender and age group, and your own rank. List the segments that an activity crossed. Create a segment from a part of an activity track, add and remove favorites, and delete segments.
List registered devices, view settings, solar data, alarms. Query primary and last-used device, and set the primary activity tracker. List paired sensors, the backup summary, device backups, historical devices and device messages, and cancel a pending message.
List gear, usage stats, linked activities, defaults per activity type. Set and unset default gear. Link and unlink gear to activities. List gear types and gear collections. Search gear brands and models. Add, update, retire, unretire and delete gear. Create, rename and delete gear collections, and add gear to them and remove it.
Active goals. Set the daily goal for steps, floors, intensity minutes and hydration. Earned/available/in-progress badges, badge details, badge comparison with a connection, the badge points leaderboard, badge and virtual challenges to show, join and leave, ad-hoc challenges to create, with invites to send, accept or decline, personal records, record types and the records of an activity.
Activity goals (list, add, update and delete). Set the daily goal for steps, floors, intensity minutes and hydration. Set and delete the weight goal. Earned/available/in-progress badges, badge details, badge comparison with a connection, the badge points leaderboard, challenges, virtual challenges, personal records, record types and the records of an activity.
Active goals. Set the daily goal for steps, floors, intensity minutes and hydration. Earned/available/in-progress badges, badge details, badge comparison with a connection, the badge points leaderboard, challenges, virtual challenges, personal records, record types and the records of an activity. Record candidates to accept or dismiss, hide or show a record type, and delete a personal record.
List, add, and delete calendar events, such as races and group rides. Set custom goals and training priority. List upcoming events.
List the activities, workouts, events and notes of a month. Add, change, move and delete notes. Turn the iCalendar feed for calendar apps on and off, and change the web calendar preferences.
Search the Garmin training catalog, also by category such as Garmin Coach or strength plans, and view a plan with its schedule. Show Garmin Coach, phased and strength plans. Start a Garmin Coach plan. Join and leave a plan, and move or delete its workouts. Show your active plans. List adaptive coaching workout types.
View and log daily water intake. Track hydration by date, with daily and weekly statistics.
View daily food logs, meal summaries, and nutrition settings by date. Search the Garmin food database, log foods and quick entries in a meal, delete log entries, and manage favorite foods (needs Garmin Connect+).
Menstrual cycle tracking, menstrual summaries, the menstrual cycle calendar, the menstrual daily log (view, set and delete), pregnancy summary data, jet lag trips (list, add, update and delete) and jet lag status.
Read your notifications page by page, dismiss them and bring them back, and see if there are unread ones. Read your notification preferences and your newsfeed. List your connections, pending connection requests, the followers of a user, the users that a user follows, and your groups. Search users. Follow, unfollow and mute users, and accept or decline follow requests. Search groups by keyword. Show a group, its members, its feed, the latest activities of its members and its open challenges. Join a public group and leave a group. Create a group, change the name, description, location, visibility or privacy of a group you own, and delete it.
Compare your steps, sleep, floors, VO2 max, speed, power and more with people of your age group and gender, for a year or a month. Needs Insights turned on in Garmin Connect.
List your golf scorecards, the courses you played and your leaderboards. Show your golf stats and your drive, approach, chip and putt stats, one course by its snapshot ID, and the clubs in your bag.
View user profile information and account settings. View and change privacy settings, so you choose who can see your profile, activities, wellness data and badges. List, add and delete privacy zones. Show heart rate zones, and power zones for all sports or one sport. Set the FTP and power zones of a sport.
Tables show km or miles, pace per km or per mile, elevation in metres or feet, and weight in kg or lbs, as set in your Garmin Connect profile. Pin one with --units. JSON is never converted.
Retries 429 up to 3 times within Retry-After, retries 5xx up to 2 times for read requests with exponential backoff, fails a request when no data moves for 60 s (a transfer that keeps moving has no time limit), and refreshes OAuth2 tokens on 401.
Generated completion scripts for bash, zsh, fish, and PowerShell. Commands, subcommands, flags, and enum values.
Ships a bundled agent skill that plugs into AI assistants like Claude Code, Codex, Hermes, and OpenClaw - drive Garmin Connect in plain language.
gccli ships a bundled agent skill that teaches an AI assistant its full command surface. Ask in plain language and let the agent drive the CLI.
Anthropic's terminal-native coding agent. Point it at the bundled skill and drive Garmin Connect conversationally.
OpenAI's coding agent. The portable SKILL.md format works out of the box.
Agent runtime with skill support - drop in the gccli skill and go.
The skill's frontmatter carries install metadata, so OpenClaw can provision the gccli binary automatically.
Clone the repo and point your agent at skills/gccli (copy or symlink it into wherever your agent discovers skills). Authenticate once with gccli auth login and set GCCLI_ACCOUNT. The skill instructs the agent to use --json output and to confirm before destructive actions.
Click a group to expand. Every command supports --json, --plain, and --help. Only some commands print TSV with --plain. Most others print JSON in all modes (see Global Flags below). Write commands print the Garmin response with --json, or {"ok": true} when the response is empty. Without --json they print a message on stderr and nothing on stdout. Only courses import prints a table on stdout instead (TSV with --plain). On every paginated command --limit must be at least 1 and --offset must not be negative. In events list, --offset must be 0 or a multiple of --limit.
<email> Garmin account email address.--headless Use headless login (email/password) instead of browser SSO.--mfa-code=STRING MFA code for two-factor authentication.[<token>] Base64-encoded token string from 'auth export'. Reads from stdin if omitted.gccli activities [flags].-l, --limit=20 Maximum number of activities to return.--offset=0 Number of activities to skip.-t, --type=STRING Filter by activity type (e.g. running, cycling).-l, --limit=20 Maximum number of activities to return.--offset=0 Number of activities to skip.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).-l, --limit=20 Maximum number of activities to return.gccli activities stats.gccli activities privacy.<level> Who can see the activities: public, private or connections.--type=KEY,... Top-level activity type key (e.g. running, cycling). Repeat the flag or separate with commas. Default: all activity types.-f, --force Skip confirmation prompt.gccli activity <id>.<id> Activity ID.<id> Activity ID.--max-chart=2000 Maximum chart data points.--max-poly=4000 Maximum polyline data points.<id> Activity ID.<id> Activity ID.<id> Activity ID.<id> Activity ID.<id> Activity ID.<id> Activity ID.<id> Activity ID.gccli activity exercise-sets <id>.<id> Activity ID.<id> Activity ID.-e, --exercise=EXERCISE,... Exercise set in format CATEGORY/NAME:reps@weightkg[:dSECS][:rSECS] (e.g. BENCH_PRESS/BARBELL_BENCH_PRESS:12@20:d30:r60).<id> Activity ID.gccli activity comments <id>.<id> Activity ID.<id> Activity ID.<text> Comment text.<id> Activity ID.<comment-id> Comment ID (conversationCommentUuid in activity comments list).<text> New comment text.<id> Activity ID.<comment-id> Comment ID (conversationCommentUuid in activity comments list).-f, --force Skip confirmation prompt.gccli activity comments likes <comment-id>.<comment-id> Comment ID (conversationCommentUuid in activity comments list).<comment-id> Comment ID (conversationCommentUuid in activity comments list).<comment-id> Comment ID (conversationCommentUuid in activity comments list).gccli activity likes <id>.<id> Activity ID.<id> Activity ID.<id> Activity ID.<id> Activity ID.--format="fit" Download format: fit, gpx, tcx, kml, csv.-o, --output=STRING Output file path (default: activity_{id}.{format}).<file> Path to activity file (FIT, GPX, or TCX).--name=FREE-TEXT Activity name.--type=FREE-TEXT Activity type key (e.g. running, cycling, swimming).--distance=FLOAT-64 Distance in meters.--duration=DURATION Duration (e.g. 30m, 1h15m).--date=DATE-TIME Start date and time in local time: YYYY-MM-DDTHH:MM:SS, YYYY-MM-DDTHH:MM or YYYY-MM-DD, with T or a space. Defaults to now.<id> Activity ID.<name> New activity name.<id> Activity ID.--type-id=INT Activity type ID.--type-key=FREE-TEXT Activity type key (e.g. running, cycling).--parent-type-id=0 Parent activity type ID.<id> Activity ID.<text> New description. An empty text ("") clears it.<id> Activity ID.<level> Who can see the activity: public, private or connections.<id> Activity ID.--from=FROM New start, as the time since the activity start (e.g. 2m, 1h5m). Default: the activity start.--to=TO New end, as the time since the activity start (e.g. 50m, 1h5m). Default: the activity end.<id> Activity ID.<id> Activity ID.<id> Activity ID.<id> Activity ID.-f, --force Skip confirmation prompt.gccli exercises [flags].-c, --category=STRING Filter by category (e.g. BENCH_PRESS).gccli health [<date>].[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.gccli health steps [<date>].[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--weeks=4 Number of weeks.--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--months=6 Number of months.--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--weeks=4 Number of weeks.--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--weeks=4 Number of weeks.--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--months=6 Number of months.gccli health hr [<date>].[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--weeks=4 Number of weeks.[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.gccli health floors [<date>].[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--weeks=4 Number of weeks.gccli health sleep [<date>].[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.gccli health sleep naps [<date>].[<date>] Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.<start> Start time (HH:MM) in your Garmin time zone.<end> End time (HH:MM) in your Garmin time zone. Must not be later than now.<date> Date of the nap (YYYY-MM-DD, today, yesterday, 3d, +30d).<start> Start time of the nap (HH:MM) in your Garmin time zone.-f, --force Skip confirmation prompt.<date> Date of the sleep (YYYY-MM-DD, today, yesterday, 3d), as 'health sleep' takes it.[<text>] Note text. It replaces the note of that night.--clear Remove the note instead of setting a text.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).gccli health stress [<date>].[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--weeks=4 Number of weeks.gccli health respiration [<date>].[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.gccli health snapshots [flags].-l, --limit=20 Maximum number of sessions to return.--offset=0 Number of sessions to skip.--until=DATE Last date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.<date> Date of the session (YYYY-MM-DD, today, yesterday, 3d).<uuid> Session UUID (activityUuid.uuid in 'health snapshots list').<uuid> Session UUID (activityUuid.uuid in 'health snapshots list').<date> Date of the session (YYYY-MM-DD, today, yesterday, 3d).<uuid> Session UUID (activityUuid.uuid in 'health snapshots list').-o, --output=STRING Output file path (default: health_snapshot_{uuid}.pdf).<date> Date of the session (YYYY-MM-DD, today, yesterday, 3d).<uuid> Session UUID (activityUuid.uuid in 'health snapshots list').<name> New session name.<date> Date of the session (YYYY-MM-DD, today, yesterday, 3d).<uuid> Session UUID (activityUuid.uuid in 'health snapshots list').[<text>] Note text. It replaces the note of the session.--clear Remove the note instead of setting a text.<date> Date of the session (YYYY-MM-DD, today, yesterday, 3d).<uuid> Session UUID (activityUuid.uuid in 'health snapshots list').-f, --force Skip confirmation prompt.gccli health body-battery [<date>].[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).gccli health intensity-minutes [<date>].[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.gccli health training-status [<date>].[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.[<date>] Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.gccli health critical-swim-speed [<date>].[<date>] Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).<pace> Pace per 100 m or per 100 yd as m:ss, such as 2:00. Garmin refuses to delete the last record, so delete cannot undo a first save.--unit="m" Distance of the pace: m for 100 m, yd for 100 yd.<timestamp> Local timestamp of the entry, as measurementTimestampLocal prints it, such as 2026-10-27T09:05:03.07.<version> Version of the entry.-f, --force Skip confirmation prompt.[<date>] Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).gccli health race-predictions.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).gccli health endurance-score [<date>].[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).--aggregation="weekly" Period of each group: weekly or monthly.gccli health hill-score [<date>].[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).--aggregation="weekly" Period of each value: daily, weekly or monthly.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).--aggregation="weekly" Period of each value: daily, weekly or monthly.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).--aggregation="weekly" Period of each value: daily (at most 30 days), weekly or monthly (at most 400 days).gccli health progress --start=DATE --end=DATE --metric=METRIC,... [flags] .--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).--aggregation="weekly" Period of each total: daily, weekly, monthly, yearly or all.--metric=METRIC,... Metric to total, as health progress metrics prints it (e.g. distance, duration). Repeat the flag or separate with commas.--activity-type=ACTIVITY-TYPE,... Activity type, as health progress metrics prints it (e.g. running, cycling). Repeat the flag or separate with commas. Defaults to all types.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).--metric=METRIC,... Metric to show, as health progress metrics prints it (e.g. distance, avgHr). Repeat the flag or separate with commas.--activity-type=ACTIVITY-TYPE,... Activity type, as health progress metrics prints it (e.g. running, cycling). Repeat the flag or separate with commas. Defaults to all types.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). With --end, only types with activities in the range.--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Needs --start.[<date>] Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.gccli health acclimation --start=DATE --end=DATE .--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).[<date>] Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.[<date>] Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.gccli body [<date>] [flags].[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.--start=DATE Start date for range query (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date for range query (YYYY-MM-DD, today, yesterday, 3d, +30d).--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.[<date>] Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.[<end>] Last day of the 52 weeks (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.<value> Weight value.--unit="kg" Unit: kg or lbs.<weight> Weight in kg.--body-fat=BODY-FAT Body fat percentage.--percent-hydration=PERCENT-HYDRATION Hydration percentage.--visceral-fat-mass=VISCERAL-FAT-MASS Visceral fat mass in kg.--bone-mass=BONE-MASS Bone mass in kg.--muscle-mass=MUSCLE-MASS Muscle mass in kg.--basal-met=BASAL-MET Basal metabolic rate (kcal/day).--active-met=ACTIVE-MET Active metabolic rate (kcal/day).--physique-rating=PHYSIQUE-RATING Physique rating.--metabolic-age=METABOLIC-AGE Metabolic age.--visceral-fat-rating=VISCERAL-FAT-RATING Visceral fat rating.--bmi=BMI Body mass index.<pk> Weigh-in version (primary key).--date=DATE Date of the weigh-in (YYYY-MM-DD, today, yesterday, 3d, +30d).-f, --force Skip confirmation prompt.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).--period="daily" Report layout and range: daily (1 day), seven-days, four-weeks (28 days) or yearly (52 weeks).--end="today" Last day of the report (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.-o, --output=STRING Output file path (default: blood_pressure_{period}_{end}.pdf).--systolic=INT Systolic pressure (mmHg).--diastolic=INT Diastolic pressure (mmHg).--pulse=INT Pulse rate (bpm).--notes=STRING Optional notes.<version> Blood pressure entry version.--date=DATE Date of the measurement (YYYY-MM-DD, today, yesterday, 3d, +30d).-f, --force Skip confirmation prompt.[<date>] Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.gccli workouts [flags].-l, --limit=20 Maximum number of workouts to return.--offset=0 Number of workouts to skip.<id> Workout ID.<id> Workout ID.-o, --output=STRING Output file path (default: workout_{id}.fit).<file> Path to workout JSON file.<id> Workout ID to update.<file> Path to workout JSON file.<name> Workout name.--type=STRING Sport type. One of: run, bike, swim, strength, cardio, hiit, yoga, pilates, mobility, multisport, custom.-s, --step=STEP,... Workout step (type:duration[@target:values]).--unit="km" Pace unit: km or mi.<id> Workout ID.[<name>] Name of the copy. Without it, the copy gets the name of the original.<id> Workout ID.--device=ID Device ID (from 'devices list'). Needed when more than one device can receive the workout.<id> Workout ID.<date> Date to schedule (YYYY-MM-DD, today, yesterday, 3d).[<date>] Date to list (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.--start=DATE Start date for range (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date for range (YYYY-MM-DD, today, yesterday, 3d, +30d).<id> Schedule ID (from 'workouts schedule list').-f, --force Skip confirmation prompt.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.gccli workouts benchmarks.<key> Benchmark key, such as BARBELL_ROW (from 'workouts benchmarks list').--weight=WEIGHT Heaviest weight lifted for the reps, 0.1 to 453.5 kg or 0.1 to 999.9 lbs.--reps=N Number of reps lifted with the weight, 1 to 20.--unit="kg" Unit of the weight: kg or lbs.<key> Benchmark key, such as BARBELL_ROW (from 'workouts benchmarks list').-f, --force Skip confirmation prompt.<id> Workout ID.-f, --force Skip confirmation prompt.gccli courses.<id> Course ID.<id> Course ID.--format="fit" Download format: fit, gpx.-o, --output=STRING Output file path (default: course_{id}.{format}).<file> Path to GPX file.-n, --name=STRING Course name (overrides name from GPX).-t, --type="cycling" Activity type key: cycling, e_bike_fitness, e_bike_mountain, gravel_cycling, hiking, mountain_biking, other, road_biking, running, street_running, trail_running, ultra_run or walking.-p, --privacy=2 Course privacy: 1=public, 2=private, 4=group.<course-id> Course ID.<device-id> Device ID.<id> Course ID.-f, --force Skip confirmation prompt.gccli segments [flags].--favorites List your favorite segments instead.-l, --limit=20 Maximum number of segments to return.--offset=0 Number of segments to skip.--name=TEXT Text in the segment name.--bbox=MINLAT,MINLON,MAXLAT,MAXLON Map area as MINLAT,MINLON,MAXLAT,MAXLON in degrees.--activity-type=TYPE Activity type: cycling or running.--classification=KEY Classification as segments classifications prints it: downhill, hill_climb, hills, other or sprint.--surface=KEY Surface as segments surface-types prints it: dirt, gravel, mixed or paved.--min-distance=KM Minimum distance in kilometers.--max-distance=KM Maximum distance in kilometers.--min-grade=PCT Minimum average grade in percent.--max-grade=PCT Maximum average grade in percent.-l, --limit=20 Maximum number of segments to return.--offset=0 Number of segments to skip.<uuid> Segment UUID.<uuid> Segment UUID.--from-rank=1 Rank to start at. One page has 26 rows.--scope="all" Whose times: all, connections, following or me.--group=ID Show only the members of this group. Goes only with --scope all.--gender=GENDER Gender: female or male.--age=AGES Age group: 0-18, 18-24, 25-34, 35-44, 45-54, 55-64 or 65-120.<uuid> Segment UUID.--from-activity=ID ID of the activity whose track the segment follows.--start-km=KM Start of the segment, in kilometers from the start of the activity.--end-km=KM End of the segment, in kilometers from the start of the activity.--name=NAME Segment name.--activity-type=TYPE Activity type: cycling or running.--classification="other" Classification as segments classifications prints it: downhill, hill_climb, hills, other or sprint.--surface="paved" Surface as segments surface-types prints it: dirt, gravel, mixed or paved.<uuid> Segment UUID.<uuid> Segment UUID.<uuid> Segment UUID.-f, --force Skip confirmation prompt.gccli devices.<device-id> Device ID.<device-id> Device ID (from 'devices list').<device-id> Device ID.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to start date.gccli devices backups.gccli devices messages.<id> Message ID (from 'devices messages').-f, --force Skip the prompt for a message that is not a workout or a course.gccli gear.<uuid> Gear UUID.<uuid> Gear UUID.--limit=20 Maximum number of activities to return.<uuid> Gear UUID.<activity-id> Activity ID.<uuid> Gear UUID.<activity-id> Activity ID.<uuid> Gear UUID, with or without dashes.<activity-type> Activity type key, as activities types prints it (e.g. running, trail_running).<uuid> Gear UUID, with or without dashes.<activity-type> Activity type key, as activities types prints it (e.g. running, trail_running).<search> Brand or model words, such as "brooks ghost".<name> Gear name.--type="shoes" Gear type. One of: shoes, bike, other.--brand=FREE-TEXT Brand.--model=FREE-TEXT Model.--notes=STRING Notes (1 to 2000 characters). Defaults to the name, because Garmin requires notes.--first-use="today" Date of first use (YYYY-MM-DD, today, yesterday, 3d).<uuid> Gear UUID, with or without dashes.--name=STRING New name.--brand=STRING New brand.--model=STRING New model.--notes=STRING New notes (1 to 2000 characters).<uuid> Gear UUID, with or without dashes.<uuid> Gear UUID, with or without dashes.<uuid> Gear UUID, with or without dashes.-f, --force Skip confirmation prompt.gccli gear collections.<name> Collection name.--first-use="today" Date of first use (YYYY-MM-DD, today, yesterday, 3d).<uuid> Collection UUID.<name> New name.<uuid> Collection UUID.<gear-uuid> Gear UUID, with or without dashes.<uuid> Collection UUID.<gear-uuid> Gear UUID, with or without dashes.-f, --force Skip confirmation prompt.<uuid> Collection UUID.-f, --force Skip confirmation prompt.gccli goals [flags].--status="active" Goal status: active, future, past.<name> Goal name, 1 to 49 characters.--period=STRING Goal period: seven-days, thirty-days, one-month or annual.--activity-type="all" Activity type key, as activities types prints it (e.g. running, cycling), or all.--start=DATE First day of the goal (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today, and to the first day of this month for a one-month goal.--distance=DISTANCE Distance to cover (e.g. 50km, 30mi, 5000m).--duration=DURATION Time to spend (e.g. 10h, 90m).--calories=KCAL Kilocalories to burn.--activities=N Number of activities to do.<id> Goal ID, as goals list prints it.--name=FREE-TEXT New name, 1 to 49 characters.--period=PERIOD New period: seven-days, thirty-days, one-month or annual.--activity-type=FREE-TEXT New activity type key, as activities types prints it (e.g. running, cycling), or all.--start=DATE New first day of the goal (YYYY-MM-DD, today, yesterday, 3d, +30d).--distance=DISTANCE Distance to cover (e.g. 50km, 30mi, 5000m).--duration=DURATION Time to spend (e.g. 10h, 90m).--calories=KCAL Kilocalories to burn.--activities=N Number of activities to do.<id> Goal ID, as goals list prints it.-f, --force Skip confirmation prompt.<type> Goal type: floors-climbed, intensity-minutes, hydration, steps or weight-grams.--date=DATE Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.gccli goals weight [flags].--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.<weight> Goal weight.--unit="kg" Unit of the weight: kg or lbs.--date="today" First day of the goal (YYYY-MM-DD, today, yesterday, 3d). The goal stays for the days after it.-f, --force Skip confirmation prompt.<type> Goal type: floors-climbed, intensity-minutes or hydration.<value> Daily goal: floors for floors-climbed, minutes for intensity-minutes, milliliters for hydration.--date="today" First day of the goal (YYYY-MM-DD, today, yesterday, 3d). The goal stays for the days after it.<steps> Steps per day.--date="today" First day of the goal (YYYY-MM-DD, today, yesterday, 3d). The goal stays for the days after it.--date="today" First day of the goal (YYYY-MM-DD, today, yesterday, 3d). The goal stays for the days after it.gccli badges.<id> Badge ID.<display-name> Display name of the connection.gccli challenges.<uuid> Challenge UUID, as the list commands print it.<uuid> Challenge UUID, as the list commands print it.<uuid> Challenge UUID, as the list commands print it.gccli challenges adhoc.<uuid> Challenge UUID, as the list commands print it.<name> Challenge name.--type=STRING Activity: walking, running, cycling, swimming, steps, pushes or pushing-distance.--duration="week" Length: day, weekend (Saturday and Sunday), week (7 days), month (to the end of the month) or custom (to --end).--start=DATE First day (YYYY-MM-DD, today, +3d). Default: today, the Saturday of this week for weekend, the first day of this month for month.--end=DATE Last day. Only with --duration custom, at most 60 days after the first day.--description=FREE-TEXT Description. Defaults to the name, because Garmin requires one.--invite=DISPLAY-NAME Display name of a person who follows you and whom you follow. Repeat it to invite more people.<uuid> Challenge UUID, as the list commands print it.<uuid> Challenge UUID, as the list commands print it.<display-name> ... Display name of a person who follows you and whom you follow.<invite-id> Invite ID (adHocChallengeInviteId).<invite-id> Invite ID (adHocChallengeInviteId).<uuid> Challenge UUID, as the list commands print it.-f, --force Skip confirmation prompt.<uuid> Challenge UUID, as the list commands print it.-f, --force Skip confirmation prompt.gccli records.<id> Activity ID.gccli records candidates.<id> Candidate ID, as records candidates prints it.<id> Candidate ID, as records candidates prints it.-f, --force Skip confirmation prompt.<type-id> Record type ID, as records types prints it.<type-id> Record type ID, as records types prints it.<id> Personal record ID, as records list prints it.-f, --force Skip confirmation prompt.gccli events [flags].--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.-l, --limit=20 Maximum number of events to return.--offset=0 Number of events to skip.--sort="eventDate_asc" Sort order. One of: eventDate_asc, eventDate_desc.-n, --name=FREE-TEXT Event name.-d, --date=DATE Event date (YYYY-MM-DD, today, +30d).-t, --type=STRING Event type. One of: running, trail_running, cycling, gravel_cycling, mountain_biking, swimming, triathlon, multi_sport, hiking, walking, fitness_equipment, motorcycling, winter_sport, other.--race Mark as a race.--location=STRING Event location.--time=HH:MM Start time (HH:MM).--timezone=STRING Time zone ID (e.g. Europe/Berlin).--distance=DISTANCE Target distance (e.g. 10km, 26.2mi, 400m).--goal=GOAL Time goal duration (e.g. 50m, 1h30m, 2400s).--primary Set as primary training event.--training Set as supporting training event.--private Make event private.--note=STRING Event note.--url=STRING Event URL.<id> Event ID.-f, --force Skip confirmation prompt.[<year>] Year (e.g. 2026). Give it with MONTH. Without both, the command shows this month.[<month>] Month (1-12).<date> Date of the note (YYYY-MM-DD, today, yesterday, 3d, +30d).<name> Note name.--content=STRING Note text.<id> Note ID.--name=STRING New name.--content=STRING New text. An empty text clears it.<id> Note ID.<date> New date (YYYY-MM-DD, today, yesterday, 3d, +30d).<id> Note ID.-f, --force Skip confirmation prompt.-f, --force Skip confirmation prompt.gccli calendar preferences.<key> Preference key, such as showWeeklyTotal. Run gccli calendar preferences to see the keys.<value> true turns the preference on, false turns it off.-l, --limit=20 Maximum number of connections to return.--offset=0 Number of connections to skip.[<display-name>] Display name of the user. Defaults to your display name.[<display-name>] Display name of the user. Defaults to your display name.<display-name> Display name of the user.<display-name> Display name of the user.-f, --force Skip confirmation prompt.<display-name> Display name of the user, as social follow-requests lists it.<display-name> Display name of the user, as social follow-requests lists it.<display-name> Display name of the user.-f, --force Skip confirmation prompt.<display-name> Display name of the user.<display-name> Display name of the user.<query> Name to search for, at least 2 characters.-l, --limit=20 Maximum number of users to return.--offset=0 Number of users to skip.gccli groups.<keyword> Text in the group name or description.-l, --limit=20 Maximum number of groups to return.--offset=0 Number of groups to skip.<id> Group ID.<id> Group ID.<id> Group ID.<id> Group ID.<id> Group ID.<id> Group ID.--metric="steps" What to rank: steps, calories, pushes or distance. The first three show nothing for a group you have not joined.--activity=ACTIVITY Count only the distance of one activity: walking, running, cycling, swimming or pushing. Only with --metric distance.--start=DATE First day (YYYY-MM-DD, today, yesterday, 3d, +30d). Default: Monday of this week.--end=DATE Last day. Default: 6 days after --start.-l, --limit=20 Maximum number of members to return.--offset=0 Number of members to skip.<id> Group ID.<id> Group ID.-f, --force Skip confirmation prompt.<name> Group name.--description=STRING Group description.--location=STRING Group location.--visibility="VISIBLE" Who can find the group. A hidden group is invite-only. One of: VISIBLE, HIDDEN.--privacy=PRIVACY Who can join: PUBLIC, PRIVATE or INVITE. Defaults to PUBLIC, or INVITE for a hidden group.--image="running_01" Default group image. One of: running_01, roadcycling_01, mountain_cycling_01, swimming_01, health_fitness_01, golf_01, para_sports_01.<id> Group ID.--name=STRING New name.--description=STRING New description. An empty text clears it.--location=STRING New location. An empty text clears it.--visibility=VISIBILITY Who can find the group. Hiding a group makes it invite-only. One of: VISIBLE, HIDDEN.--privacy=PRIVACY Who can join: PUBLIC, PRIVATE or INVITE.<id> Group ID.-f, --force Skip confirmation prompt.gccli notifications [flags].--limit=50 Maximum number of notifications to return.--cursor=STRING Start after this cursor. Use pagination.nextCursor from the JSON output of the last page.<id> Notification ID (from 'notifications list').<id> Notification ID (from 'notifications list').gccli notifications preferences.<key> Preference key, such as allowEmailWeeklySummary. Run gccli notifications preferences to see the keys.<value> true turns the preference on, false turns it off.gccli insights [flags].--locale-unit="METRIC" Units of the field names: METRIC or STATUTE.--activity=STRING Activity as insights options prints it: STEPS, SLEEP, FLOORS, RUNNING, CYCLING, LAP_SWIMMING or OPEN_WATER_SWIMMING.--field=STRING Field of the activity as insights options prints it: AVG_SPEED, VO2_MAX_VALUE, AVG_POWER, WEEKLY_AVG_DISTANCE, WEEKLY_AVG_DURATION, STEPS, SLEEP, FLOORS or COUNT.--age=FREE-TEXT Age group as insights options prints it (e.g. 40-44, 75+).--gender="ALL" Gender: ALL, M or F.--year=INT Year (e.g. 2025).--month=MONTH Month (1-12). Omit it for the whole year.--locale-unit="METRIC" Units of the answer: METRIC or STATUTE.gccli golf [flags].-l, --limit=20 Maximum number of scorecards to return.--offset=0 Number of scorecards to skip.-l, --limit=20 Maximum number of courses to return.--offset=0 Number of courses to skip.<id> Course snapshot ID.<kind> Shot type: drive, approach, chip or putt.-l, --limit=20 Maximum number of leaderboards to return.--offset=0 Number of leaderboards to skip.gccli hydration [<date>].[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--weeks=4 Number of weeks.<amount> Amount of water in milliliters.--date=DATE Date to log for (YYYY-MM-DD). Defaults to today.gccli nutrition [<date>].[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.<query> Text to search for, such as a food name.-l, --limit=20 Maximum number of foods to return.--offset=0 Number of foods to skip.[<date>] Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.-l, --limit=20 Maximum number of foods to return.--offset=0 Number of foods to skip.<date> Date of the meal (YYYY-MM-DD, today, yesterday, 3d).<food-id> Food ID, as nutrition search prints it.-q, --query=TEXT Search text that finds the food, as you gave it to nutrition search. Garmin has no read of one food by ID.-m, --meal=MEAL Meal: breakfast, lunch, dinner, snacks, or a custom meal you enabled.--serving=UNIT Serving unit, such as g or oz, or serving ID, as nutrition search --json lists them under nutritionContents. Defaults to the first serving of the food.--servings=1 Number of servings. A serving can hold more than one unit, such as 100 g.--time=HH:MM Meal time (HH:MM). Defaults to the start time of the meal, or to the current time for a meal without one, such as snacks.<date> Date of the meal (YYYY-MM-DD, today, yesterday, 3d).-m, --meal=MEAL Meal: breakfast, lunch, dinner, snacks, or a custom meal you enabled.--calories=KCAL Calories (kcal).--carbs=GRAMS Carbohydrates in grams.--protein=GRAMS Protein in grams.--fat=GRAMS Fat in grams.--name=NAME Name of the entry, such as Coffee with milk.--time=HH:MM Meal time (HH:MM). Defaults to the start time of the meal, or to the current time for a meal without one, such as snacks.<date> Date of the entries (YYYY-MM-DD, today, yesterday, 3d).<log-id> ... Log ID of an entry, as the add commands print it or nutrition food-log --json lists it.-f, --force Skip confirmation prompt.gccli nutrition favorites [flags].-l, --limit=20 Maximum number of foods to return.--offset=0 Number of foods to skip.<food-id> Food ID, as nutrition search prints it.-q, --query=TEXT Search text that finds the food, as you gave it to nutrition search. Garmin has no read of one food by ID.--serving=UNIT Serving unit, such as g or oz, or serving ID, as nutrition search --json lists them under nutritionContents. Defaults to the first serving of the food.--servings=1 Number of servings. A serving can hold more than one unit, such as 100 g.<food-id> Food ID, as nutrition favorites prints it.gccli profile.gccli profile privacy.--profile=LEVEL Who can see your profile. One of: public, private, connections, groups.--activities=LEVEL Who can see your activities by default. Past activities keep their privacy; change one with activity privacy. One of: public, private, connections, groups.--wellness=LEVEL Who can see your wellness data, such as steps. One of: public, private, connections, groups.--badges=LEVEL Who can see your badges. One of: public, private, connections, groups.gccli profile privacy-zones.--lat=DEGREES Latitude of the center, -90 to 90. Give a negative value as --lat=-33.9.--lon=DEGREES Longitude of the center, -180 to 180. Give a negative value as --lon=-30.--radius=METERS Radius in meters, 500 to 1500.<id> Privacy zone ID.-f, --force Skip confirmation prompt.gccli profile power-zones.<sport> Sport: cycling, running, rowing or cross-country-skiing.<sport> Sport: cycling, running, rowing or cross-country-skiing.--ftp=WATTS Functional threshold power in watts.--floors=WATTS,... Comma-separated lower limit of each zone in watts: 7 values, or 5 for running. Default for the other sports: 0, 55, 75, 90, 105, 120 and 150 percent of FTP.gccli training [flags].--locale="en" Locale for training plans (e.g. en, de, fr).<id> Training plan ID.<id> Training plan ID, as training search or training active prints it.<id> ID of the joined training plan, as training active prints it. Garmin answers 400 for a plan that is not phased.<id> ID of the joined training plan, as training active prints it. Garmin answers 400 for a plan that is not a strength plan.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--sport=STRING Sport as Garmin prints it in the SPORT column, such as Running.--goal=STRING Goal as Garmin prints it in the GOAL column, such as 5k, 10k, HalfMarathon or Marathon.--level=STRING Level as Garmin prints it in the LEVEL column, such as Beginner, Intermediate or Advanced.--target=STRING Workout target as Garmin prints it in the TARGET column, such as HeartRate or Time.--category=CATEGORY,... Plan category: FBT_ADAPTIVE (Garmin Coach), STRENGTH, ITP or STATIC. Repeat the flag or separate with commas. Default: all categories.--locale="en" Locale for plan names (e.g. en, de, fr).<id> Training plan ID.--locale="en" Locale for workout and note names (e.g. en, de, fr).<id> Catalog training plan ID, as training search prints it.--start=DATE Day of the first workout (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.<id> Catalog ID of a Garmin Coach template, as training search --category FBT_ADAPTIVE prints it.--name=FREE-TEXT Name of the new plan.--end=DATE Last day of the plan (YYYY-MM-DD, today, yesterday, 3d, +30d).--day=DAY,... Training day: MONDAY to SUNDAY. Repeat the flag or separate with commas. Each coach template sets how many days it needs, and Garmin rejects another number. One of: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.--long-day=DAY,... Day for the long workout: MONDAY to SUNDAY. Repeat the flag or separate with commas. One of: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.--locale="en" Locale for workout names (e.g. en, de, fr).<id> ID of the joined training plan, as training join or training active prints it.-f, --force Skip confirmation prompt.<plan-id> ID of the joined training plan.<task-id> Task ID of the workout, as training schedule prints it.<date> New date (YYYY-MM-DD, today, yesterday, 3d, +30d).<plan-id> ID of the joined training plan.<task-id> Task ID of the workout, as training schedule prints it.-f, --force Skip confirmation prompt.[<date>] Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.[<date>] Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--start=DATE Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE End date (YYYY-MM-DD, today, yesterday, 3d, +30d).gccli wellness menstrual-log [<date>].[<date>] Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.<date> Date of the log (YYYY-MM-DD, today, yesterday, 3d, +30d).--flow=FLOW Flow: light, medium or heavy. An empty value clears it.--symptoms=SYMPTOM,... Comma-separated symptoms: acne, backache, bloating, body-aches, constipation, cramps, cravings, diarrhea, dizziness, fatigue, headache, insomnia, nausea, tender-breasts. An empty value clears them.--moods=MOOD,... Comma-separated moods: energetic, emotional, fine, frustrated, happy, irritable, mood-swings, motivated, overwhelmed, sad. An empty value clears them.--discharge=DISCHARGE,... Comma-separated discharge: creamy, egg-white, no-discharge, spotting, sticky, unusual. no-discharge takes no other value. An empty value clears it.--sex-drive=LEVEL Sex drive: average, high or low. An empty value clears it.--sexual-activity=KIND Sexual activity: protected or unprotected. An empty value clears it.--notes=TEXT Notes. An empty value clears them.--ovulation Mark the day as the ovulation day. --no-ovulation removes the mark.<date> Date of the log (YYYY-MM-DD, today, yesterday, 3d, +30d).-f, --force Skip confirmation prompt.gccli wellness jet-lag.--from=PLACE Place of departure, such as "Frankfurt, Germany".--to=PLACE Place of arrival, such as "New York, USA".--depart=TIME Local departure time with the UTC offset of --from, such as 2026-11-02T10:00+01:00.--arrive=TIME Local arrival time with the UTC offset of --to, such as 2026-11-02T13:00-05:00.--return-depart=TIME Local departure time of the return flight from --to, with its UTC offset.--return-arrive=TIME Local arrival time of the return flight at --from, with its UTC offset.<id> Trip ID.--from=PLACE New place of departure. The return flight arrives there.--to=PLACE New place of arrival. The return flight departs there.--depart=TIME New local departure time with the UTC offset, such as 2026-11-02T10:00+01:00.--arrive=TIME New local arrival time with the UTC offset.--return-depart=TIME New local departure time of the return flight, with the UTC offset.--return-arrive=TIME New local arrival time of the return flight, with the UTC offset.<id> Trip ID.-f, --force Skip confirmation prompt.[<date>] Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.[<date>] Date to reload (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.<shell> Shell type (bash, zsh, fish, powershell).Environment variables, config file, and global flags.
| Variable | Description |
|---|---|
| GCCLI_ACCOUNT | Default account email (overrides config file default) |
| GCCLI_DOMAIN | Garmin domain (garmin.com or garmin.cn) |
| GCCLI_JSON | Enable JSON output (1, true, yes) |
| GCCLI_PLAIN | Enable plain/TSV output |
| GCCLI_HEADER | Print the column names as the first line of plain output. Table and JSON output ignore it |
| GCCLI_COLOR | Color mode: auto, always, never |
| GCCLI_UNITS | Unit system: auto, metric, statute_us, statute_uk |
| GCCLI_KEYRING_BACKEND | Keyring: keychain, secret-service, file |
| Flag | Description |
|---|---|
| --account <email> | Account to use (overrides GCCLI_ACCOUNT and config default) |
| --json, -j | Output JSON to stdout. Write commands print the Garmin response, or {"ok": true} when the response is empty. A command whose Garmin answer is a list prints [] for an empty answer, and a command whose answer is one object prints {}, both with exit code 0. The file internal/cmd/testdata/answer_shapes.tsv in the repository records the shape of the Garmin answer of every command that prints it, with the evidence; a shape that no Garmin answer confirmed prints {}. activity summary and exercises list show one object, and activities count prints {"count": 0}. Runtime errors go to stderr as {"error":{"code":"...","status":404,"message":"..."}} |
| --plain | Output TSV to stdout, with no header row unless you add --header. Table and TSV output escape a backslash as \\, a tab as \t, a newline as \n, a carriage return as \r, a vertical tab as \v and a form feed as \f, so each record is one line. Only these commands print TSV: activities list, activities search, activities types, activity summary, body weekly, courses list, courses favorites, courses import, events list, groups search, groups members, groups activities, nutrition search, nutrition recent, nutrition favorites, workouts list, workouts schedule list and exercises list (without --category). Most other commands print JSON in all modes. |
| --header | With --plain, print the column names as the first line. activity summary has no column names. Without --plain, or with --json, it is a usage error (exit code 2). GCCLI_HEADER is not an error: table and JSON output ignore it. |
| --color <mode> | Color mode: auto, always, never |
| --units <system> | Unit system for table and plain output: auto (default, from the Garmin profile), metric (km, m, kg), statute_us (mi, ft, lbs), statute_uk (mi, m, lbs). Precedence: flag, GCCLI_UNITS, config "units", Garmin profile, metric. Pin it for scripts that parse --plain. |
| --version | Print version information |
| --help | Show help for any command |
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Other error. A command that needs Garmin Connect+ also exits 1 on an account without it, and the message says so. |
| 2 | Usage error (unknown command, flag or value); usage text goes to stderr |
| 3 | Login needed: no account, no stored credentials, or an expired token. auth status exits 3 when no credentials are stored, so a script can use it as a login check. |
| 4 | Garmin returned 404 Not Found |
| 5 | Garmin rate limit (HTTP 429) |
macOS: ~/Library/Application Support/gccli/config.json
Linux: ~/.config/gccli/
{
"keyring_backend": "file",
"domain": "garmin.com"
}
Every --start and --end flag accepts these formats. A bad or empty date in one of these flags is a usage error (exit code 2).
| Format | Example | Description |
|---|---|---|
| YYYY-MM-DD | 2024-06-15 | Explicit date |
| today | Today's date | |
| yesterday | Yesterday's date | |
| Nd | 3d, 7d | N days ago |
| +Nd | +30d | N days ahead |
Real-world scripts and one-liners you'll use daily.
Fetch running activities and download each as GPX.
gccli --json activities search \
--start 2024-05-15 --end 2024-06-15 \
--limit 100 | \
jq -r '.[] | select(.activityType.typeKey == "running") | .activityId' | \
while read id; do
gccli activity download "$id" --format gpx --output "run_${id}.gpx"
done
Pull today's key metrics into a JSON summary.
gccli --json health summary | jq '{
steps: .totalSteps,
calories: .totalKilocalories,
distance_km: (.totalDistanceMeters / 1000),
active_minutes: .moderateIntensityMinutes + .vigorousIntensityMinutes
}'
Export weigh-in data as tab-separated values.
gccli --json body weigh-ins \ --start 2024-01-01 --end 2024-06-30 | \ jq -r '.dailyWeightSummaries[] | [.summaryDate, .weight.value] | @tsv'
One-liner to grab your most recent activity.
latest=$(gccli --json activities list --limit 1 | jq -r '.[0].activityId') gccli activity download "$latest" --format fit
Warmup, pace intervals, and cooldown.
gccli workouts create "Tempo 30min" --type run \ --step "warmup:5m@pace:5:30-6:00" \ --step "run:20m@pace:5:00-5:30" \ --step "cooldown:5m"
FTP interval workout for the bike.
gccli workouts create "FTP Intervals" --type bike \ --step "warmup:10m" \ --step "run:5m@power:250-280" \ --step "recovery:3m" \ --step "run:5m@power:250-280" \ --step "cooldown:10m"
Clean layered design with function-variable DI and context-based injection.
Kong-based CLI commands. Each command is a struct with Run(g *Globals) error.
HTTP client returning json.RawMessage. RetryTransport.
SSO auth: browser + headless login, DI OAuth exchange, MFA.
OS keyring abstraction. macOS Keychain, Linux Secret Service, file fallback.
Config file paths and environment variable overrides.
Output formatting: JSON, Table, and Plain/TSV modes via context.
Terminal UI with colors and prompts via termenv.
FIT file binary encoding for weight and body composition uploads.