garmin-connect
Garmin Connect CLI for activities, health, body composition, workouts, devices, gear, goals, and more.
Install
npx skills add https://github.com/bpauli/gccli/tree/main/skills/gccli
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install bpauli-gccli@llmmart
git clone https://github.com/bpauli/gccli.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole bpauli/gccli collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
gccli
Use gccli for Garmin Connect health, fitness, and activity data. Requires Garmin SSO authentication.
Setup (once)
gccli auth login you@example.com(opens browser for Garmin SSO)- Headless:
gccli auth login you@example.com --headless(with--mfa-code <code>for MFA) - Set default account:
export GCCLI_ACCOUNT=you@example.com - Verify:
gccli auth status(exits 3 when no credentials are stored)
Output
- Default: human-friendly tables. Use
--json/-jfor JSON. --plainprints TSV with no header row (add--headerfor the column names as the first line), but only foractivities list,activities search,activities favorites,activities types,activity summary,body weekly,courses list,courses favorites,courses import,events list,nutrition search,nutrition recent,nutrition favorites,workouts list,workouts schedule listandexercises list(without-c). Most other commands print JSON in all modes.--headerworks only with--plain. With table or--jsonoutput it is a usage error (exit code 2).GCCLI_HEADER=1does the same as--headerin plain mode, and table and JSON output ignore it.- Table and
--plainoutput escape a backslash as\\, a tab as\t, a newline as\n, a carriage return as\r, a vertical tab as\vand a form feed as\f, so each record is one line.--jsonis not escaped this way. - Data goes to stdout, messages/errors to stderr.
- Write commands (add, create, upload, import, update, set, clear, rename, retype, describe, change, favorite, unfavorite, schedule, send, link, unlink, remove, reload, delete) print the Garmin response with
--json, or{"ok": true}when the response is empty. Without--jsonthey print a message on stderr and nothing on stdout. Onlycourses importprints a table on stdout instead (TSV with--plain). - An empty answer is not an error. When Garmin sends no body, the exit code is 0 and the output follows the shape of the Garmin answer: a command whose answer is a list prints
[]with--json, and a command whose answer is one object prints{}in every mode. A list command that prints columns (activities list,activities search,activities favorites,activities types,body weekly,courses list,courses favorites,events list,nutrition search,nutrition recent,nutrition favorites,workouts listandworkouts schedule list) prints the header only as a table and nothing with--plain(the header line with--header); every other list command prints[]in every mode.activity summaryandexercises listshow one object, so they print{}with--jsonand no row otherwise. The fileinternal/cmd/testdata/answer_shapes.tsvin the gccli repository records the shape of the Garmin answer of every command that prints it (array,objectorunknown, with the evidence for each; a shape that no Garmin answer confirmed isunknownand prints{}), and a test keeps the commands in step with it.activities countprints0({"count": 0}with--json). A list answer without its list key gives no rows, and--jsonprints the answer unchanged. --plainprints TSV with no header row (add--headerfor the column names as the first line), but only foractivities 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 listandexercises list(without-c). Most other commands print JSON in all modes.--headerworks only with--plain. With table or--jsonoutput it is a usage error (exit code 2).GCCLI_HEADER=1does the same as--headerin plain mode, and table and JSON output ignore it.- Table and
--plainoutput escape a backslash as\\, a tab as\t, a newline as\n, a carriage return as\r, a vertical tab as\vand a form feed as\f, so each record is one line.--jsonis not escaped this way. - Data goes to stdout, messages/errors to stderr.
- Write commands (add, create, upload, import, update, set, clear, rename, retype, describe, change, favorite, unfavorite, schedule, send, link, unlink, join, leave, remove, reload, delete) print the Garmin response with
--json, or{"ok": true}when the response is empty. Without--jsonthey print a message on stderr and nothing on stdout. Onlycourses importprints a table on stdout instead (TSV with--plain). - An empty answer is not an error. When Garmin sends no body, the exit code is 0 and the output follows the shape of the Garmin answer: a command whose answer is a list prints
[]with--json, and a command whose answer is one object prints{}in every mode. A list command that prints columns (activities list,activities search,activities types,body weekly,courses list,courses favorites,events list,groups search,groups members,groups activities,nutrition search,nutrition recent,nutrition favorites,workouts listandworkouts schedule list) prints the header only as a table and nothing with--plain(the header line with--header); every other list command prints[]in every mode.activity summaryandexercises listshow one object, so they print{}with--jsonand no row otherwise. The fileinternal/cmd/testdata/answer_shapes.tsvin the gccli repository records the shape of the Garmin answer of every command that prints it (array,objectorunknown, with the evidence for each; a shape that no Garmin answer confirmed isunknownand prints{}), and a test keeps the commands in step with it.activities countprints0({"count": 0}with--json). A list answer without its list key gives no rows, and--jsonprints the answer unchanged. - Always use
--jsonwhen parsing output programmatically. - Tables show distance, speed, pace, elevation and weight in the user's Garmin unit system (
metric,statute_us, orstatute_uk, which is miles with elevation in metres). Weight is kg inmetricand lbs in both statute systems. Override with--units <system>orGCCLI_UNITS. JSON is never converted (meters, m/s, grams).
Date shortcuts
today,yesterday,3d(N days ago),+30d(N days ahead),YYYY-MM-DD(specific date).- All date range commands use
--start/--end, and these flags accept every form above. So does the optional[<date>]argument of the daily views, such ashealth sleep [<date>]orhealth steps [<date>]. A bad or empty date is a usage error (exit code 2), before the login; omit the argument for today. activities list,activities search,workouts listandevents listpage with--limit/-land--offset(number of items to skip).--limitmust be at least 1 and--offsetmust not be negative; other values are a usage error (exit code 2). Inevents list,--offsetmust be 0 or a multiple of--limit.
Command Reference
Authentication
gccli auth login <email> [flags]: Log in to Garmin Connect.<email>: Garmin account email address.--headless: Use headless login (email/password) instead of browser SSO.--mfa-code=STRING: MFA code for two-factor authentication.
gccli auth status: Show authentication status.gccli auth remove: Remove stored credentials.gccli auth token: Print current access token, refreshing it first when expired.gccli auth export: Export credentials for transfer to another machine.gccli auth import [<token>]: Import credentials from another machine.[<token>]: Base64-encoded token string from 'auth export'. Reads from stdin if omitted.
Activities
gccli activities list [flags]: List recent activities. Also runs asgccli 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).
gccli activities count: Show total activity count.gccli activities search --start=DATE [flags]: Search activities by date range.-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).
gccli activities favorites [flags]: List your favorite activities.-l, --limit=20: Maximum number of activities to return.
gccli activities types: List all activity types supported by Garmin.gccli activities pending: List pending activities.gccli activities stats view: Show activity totals by activity type. Also runs asgccli activities stats.gccli activities stats monthly: Show monthly activity totals by activity type.gccli activities privacy status: Show the last privacy change of past activities. Also runs asgccli activities privacy.gccli activities privacy set <level> [flags]: Change the privacy of all past activities, or of past activities of some types.<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 summary <id>: Show activity summary. Also runs asgccli activity <id>.<id>: Activity ID.
gccli activity details <id> [flags]: Show full activity details.<id>: Activity ID.--max-chart=2000: Maximum chart data points.--max-poly=4000: Maximum polyline data points.
gccli activity splits <id>: Show activity splits.<id>: Activity ID.
gccli activity typed-splits <id>: Show typed splits.<id>: Activity ID.
gccli activity split-summaries <id>: Show split summaries.<id>: Activity ID.
gccli activity weather <id>: Show weather conditions.<id>: Activity ID.
gccli activity hr-zones <id>: Show heart rate time in zones.<id>: Activity ID.
gccli activity power-zones <id>: Show power time in zones.<id>: Activity ID.
gccli activity segments <id>: List the segments that an activity crossed.<id>: Activity ID.
gccli activity exercise-sets show <id>: Show exercise sets. Also runs asgccli activity exercise-sets <id>.<id>: Activity ID.
gccli activity exercise-sets set --exercise=EXERCISE,... <id>: Set exercise sets for a strength training activity.<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).
gccli activity gear <id>: Show linked gear.<id>: Activity ID.
gccli activity comments list <id>: List the comments on an activity. Also runs asgccli activity comments <id>.<id>: Activity ID.
gccli activity comments add <id> <text>: Add a comment to an activity.<id>: Activity ID.<text>: Comment text.
gccli activity comments edit <id> <comment-id> <text>: Change the text of your comment on an activity.<id>: Activity ID.<comment-id>: Comment ID (conversationCommentUuid in activity comments list).<text>: New comment text.
gccli activity comments delete <id> <comment-id> [flags]: Delete a comment on an activity.<id>: Activity ID.<comment-id>: Comment ID (conversationCommentUuid in activity comments list).-f, --force: Skip confirmation prompt.
gccli activity comments likes list <comment-id>: List the likes of a comment. Also runs asgccli activity comments likes <comment-id>.<comment-id>: Comment ID (conversationCommentUuid in activity comments list).
gccli activity comments likes add <comment-id>: Like a comment.<comment-id>: Comment ID (conversationCommentUuid in activity comments list).
gccli activity comments likes remove <comment-id>: Remove your like from a comment.<comment-id>: Comment ID (conversationCommentUuid in activity comments list).
gccli activity likes list <id>: List the likes of an activity. Also runs asgccli activity likes <id>.<id>: Activity ID.
gccli activity likes add <id>: Like an activity.<id>: Activity ID.
gccli activity likes remove <id>: Remove your like from an activity.<id>: Activity ID.
gccli activity download <id> [flags]: Download activity file.<id>: Activity ID.--format="fit": Download format: fit, gpx, tcx, kml, csv.-o, --output=STRING: Output file path (default: activity_.).
gccli activity upload <file>: Upload an activity file (FIT/GPX/TCX).<file>: Path to activity file (FIT, GPX, or TCX).
gccli activity create --name=FREE-TEXT --type=FREE-TEXT --duration=DURATION [flags]: Create a manual activity.--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.
gccli activity rename <id> <name>: Rename an activity.<id>: Activity ID.<name>: New activity name.
gccli activity retype --type-id=INT --type-key=FREE-TEXT <id> [flags]: Change activity type.<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.
gccli activity describe <id> <text>: Set or clear the description of an activity.<id>: Activity ID.<text>: New description. An empty text ("") clears it.
gccli activity privacy <id> <level>: Change who can see an activity.<id>: Activity ID.<level>: Who can see the activity: public, private or connections.
gccli activity trim <id> [flags]: Trim the start or end of an activity.<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.
gccli activity restore <id>: Restore the original of a trimmed activity.<id>: Activity ID.
gccli activity favorite <id>: Mark an activity as a favorite.<id>: Activity ID.
gccli activity unfavorite <id>: Remove the favorite mark from an activity.<id>: Activity ID.
gccli activity delete <id> [flags]: Delete an activity.<id>: Activity ID.-f, --force: Skip confirmation prompt.
gccli exercises list [flags]: List available exercise categories and exercises. Also runs asgccli exercises [flags].-c, --category=STRING: Filter by category (e.g. BENCH_PRESS).
Health Data
gccli health summary [<date>]: Show daily health summary. Also runs asgccli health [<date>].[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health steps view [<date>]: Show step chart data for a date. Also runs asgccli health steps [<date>].[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health steps daily --start=DATE --end=DATE: Show daily step totals for a date range.--start=DATE: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d).
gccli health steps weekly [flags]: Show weekly step totals.--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--weeks=4: Number of weeks.
gccli health steps monthly [flags]: Show monthly step totals.--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--months=6: Number of months.
gccli health calories weekly [flags]: Show weekly calorie totals.--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--weeks=4: Number of weeks.
gccli health pushes weekly [flags]: Show weekly wheelchair push totals.--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--weeks=4: Number of weeks.
gccli health pushes monthly [flags]: Show monthly wheelchair push totals.--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--months=6: Number of months.
gccli health lifetime-totals: Show lifetime totals.gccli health hr view [<date>]: Show heart rate data for a date. Also runs asgccli health hr [<date>].[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health hr daily --start=DATE --end=DATE: Show daily heart rate statistics for a date range.--start=DATE: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d).
gccli health hr weekly [flags]: Show weekly heart rate statistics.--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--weeks=4: Number of weeks.
gccli health rhr [<date>]: Show resting heart rate data.[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health floors view [<date>]: Show floors climbed for a date. Also runs asgccli health floors [<date>].[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health floors daily --start=DATE --end=DATE: Show daily floors climbed for a date range.--start=DATE: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d).
gccli health floors weekly [flags]: Show weekly floors climbed.--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--weeks=4: Number of weeks.
gccli health sleep view [<date>]: Show sleep data for a date. Also runs asgccli health sleep [<date>].[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health sleep naps view [<date>]: Show naps for a date. Also runs asgccli health sleep naps [<date>].[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.
gccli health sleep naps add <start> <end>: Add a nap for today. Garmin takes naps only for the current day.<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.
gccli health sleep naps delete <date> <start> [flags]: Delete a nap.<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.
gccli health sleep note <date> [<text>] [flags]: Set or remove the note of a night of sleep.<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.
gccli health sleep daily --start=DATE --end=DATE: Show daily sleep statistics for a date range (at most 28 days).--start=DATE: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d).
gccli health sleep weekly [flags]: Show weekly sleep statistics for the 52 weeks up to a date.--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.
gccli health sleep overall --start=DATE --end=DATE: Show overall sleep statistics for a date range.--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 view [<date>]: Show stress data for a date. Also runs asgccli health stress [<date>].[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health stress daily --start=DATE --end=DATE: Show daily stress statistics for a date range.--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 weekly [flags]: Show weekly stress data.--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.--weeks=4: Number of weeks.
gccli health respiration view [<date>]: Show respiration data for a date. Also runs asgccli health respiration [<date>].[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health respiration daily --start=DATE --end=DATE: Show daily respiration statistics for a date range.--start=DATE: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d).
gccli health spo2 [<date>]: Show SpO2 (blood oxygen) data.[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health hrv [<date>]: Show heart rate variability data.[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health snapshots list [flags]: List Health Snapshot sessions up to a date. Also runs asgccli 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.
gccli health snapshots show <date> <uuid>: Show the summary of a Health Snapshot session.<date>: Date of the session (YYYY-MM-DD, today, yesterday, 3d).<uuid>: Session UUID (activityUuid.uuid in 'health snapshots list').
gccli health snapshots epochs <uuid>: Show the measurements of a Health Snapshot session.<uuid>: Session UUID (activityUuid.uuid in 'health snapshots list').
gccli health snapshots report <date> <uuid> [flags]: Save the PDF report of a Health Snapshot session.<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_.pdf).
gccli health snapshots rename <date> <uuid> <name>: Rename a Health Snapshot session.<date>: Date of the session (YYYY-MM-DD, today, yesterday, 3d).<uuid>: Session UUID (activityUuid.uuid in 'health snapshots list').<name>: New session name.
gccli health snapshots note <date> <uuid> [<text>] [flags]: Set or remove the note of a Health Snapshot session.<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.
gccli health snapshots delete <date> <uuid> [flags]: Delete a Health Snapshot session.<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 view [<date>]: Show body battery data for a date. Also runs asgccli health body-battery [<date>].[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health body-battery range --start=DATE --end=DATE: Show body battery data for a date range.--start=DATE: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d).
gccli health body-battery daily --start=DATE --end=DATE: Show the daily low and high body battery for a date range (at most 28 days).--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 view [<date>]: Show intensity minutes for a date. Also runs asgccli health intensity-minutes [<date>].[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health intensity-minutes weekly --start=DATE --end=DATE: Show weekly intensity minutes for a date range.--start=DATE: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d).
gccli health training-readiness [<date>]: Show training readiness data.[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health training-status view [<date>]: Show aggregated training status for a date. Also runs asgccli health training-status [<date>].[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health training-status daily [<date>]: Show daily training status for a date.[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.
gccli health training-status weekly --start=DATE --end=DATE: Show weekly training status for a date range.--start=DATE: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d).
gccli health fitness-age [<date>]: Show fitness age data.[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health max-metrics [<date>]: Show VO2max and max metrics data.[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health lactate-threshold: Show latest lactate threshold.gccli health cycling-ftp: Show latest cycling FTP.gccli health critical-swim-speed view [<date>]: Show latest critical swim speed as of a date. Also runs asgccli health critical-swim-speed [<date>].[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.
gccli health critical-swim-speed range --start=DATE --end=DATE: Show critical swim speed for a date range.--start=DATE: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d).
gccli health critical-swim-speed set <pace> [flags]: Save a critical swim speed measured now, from a pace per 100 m or 100 yd.<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.
gccli health critical-swim-speed delete <timestamp> <version> [flags]: Delete a critical swim speed entry. Garmin refuses to delete the last one.<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.
gccli health power-to-weight [<date>]: Show latest power-to-weight data as of a date.[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.
gccli health thresholds cycling-ftp --start=DATE --end=DATE: Show cycling FTP for a date range.--start=DATE: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d).
gccli health thresholds lactate-heart-rate --start=DATE --end=DATE: Show lactate threshold heart rate for a date range.--start=DATE: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d).
gccli health thresholds lactate-speed --start=DATE --end=DATE: Show lactate threshold speed for a date range.--start=DATE: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d).
gccli health thresholds power-to-weight --start=DATE --end=DATE: Show power-to-weight data for a date range.--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 view: Show current race predictions. Also runs asgccli health race-predictions.gccli health race-predictions range --start=DATE --end=DATE: Show race predictions for a date range.--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 view [<date>]: Show endurance score data for a date. Also runs asgccli health endurance-score [<date>].[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health endurance-score stats --start=DATE --end=DATE [flags]: Show endurance score statistics for a date range (at most 400 days).--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 view [<date>]: Show hill score data for a date. Also runs asgccli health hill-score [<date>].[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health hill-score stats --start=DATE --end=DATE [flags]: Show hill score statistics for a date range (at most 400 days).--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.
gccli health power-curve --start=DATE --end=DATE: Show power curve for a date range.--start=DATE: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d).
gccli health running-tolerance --start=DATE --end=DATE [flags]: Show running tolerance for a date range.--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.
gccli health cycling-ability --start=DATE --end=DATE [flags]: Show cycling ability for a date range.--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 summary --start=DATE --end=DATE --metric=METRIC,... [flags]: Show activity totals per period for a date range. Also runs asgccli 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.
gccli health progress activities --start=DATE --end=DATE --metric=METRIC,... [flags]: Show metric values of each activity in a date range.--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.
gccli health progress metrics [flags]: List the metrics of each activity type.--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.
gccli health running-economy [<date>]: Show latest running economy as of a date.[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.
gccli health acclimation range --start=DATE --end=DATE: Show acclimation data for a date range. Also runs asgccli 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).
gccli health acclimation daily [<date>]: Show SpO2 acclimation for a date.[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.
gccli health one-rep-max [<date>]: Show current estimated one-rep max values as of a date.[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.
gccli health events [<date>]: Show daily wellness events.[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli health lifestyle [<date>]: Show lifestyle logging data.[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
Body Composition
gccli body composition [<date>] [flags]: Show body composition data. Also runs asgccli 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).
gccli body weigh-ins --start=DATE --end=DATE: Show weigh-in data for a date range.--start=DATE: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d).
gccli body daily-weigh-ins [<date>]: Show weigh-in data for a single day.[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today.
gccli body latest [<date>]: Show the latest weigh-in as of a date.[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.
gccli body weekly [<end>]: Show weekly weight summaries for the 52 weeks that end on a date.[<end>]: Last day of the 52 weeks (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.
gccli body add-weight <value> [flags]: Add a weigh-in entry.<value>: Weight value.--unit="kg": Unit: kg or lbs.
gccli body add-composition <weight> [flags]: Add body composition data (weight, body fat, muscle mass, etc.) via FIT upload.<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.
gccli body delete-weight --date=DATE <pk> [flags]: Delete a weigh-in entry.<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.
gccli body blood-pressure --start=DATE --end=DATE: Show blood pressure data.--start=DATE: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d).--end=DATE: End date (YYYY-MM-DD, today, yesterday, 3d, +30d).
gccli body export-blood-pressure [flags]: Save the blood pressure report as a PDF.--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__.pdf).
gccli body add-blood-pressure --systolic=INT --diastolic=INT --pulse=INT [flags]: Add a blood pressure measurement.--systolic=INT: Systolic pressure (mmHg).--diastolic=INT: Diastolic pressure (mmHg).--pulse=INT: Pulse rate (bpm).--notes=STRING: Optional notes.
gccli body delete-blood-pressure --date=DATE <version> [flags]: Delete a blood pressure entry.<version>: Blood pressure entry version.--date=DATE: Date of the measurement (YYYY-MM-DD, today, yesterday, 3d, +30d).-f, --force: Skip confirmation prompt.
gccli body glucose [<date>]: Show glucose readings for a date.[<date>]: Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.
Workouts
gccli workouts list [flags]: List workouts. Also runs asgccli workouts [flags].-l, --limit=20: Maximum number of workouts to return.--offset=0: Number of workouts to skip.
gccli workouts detail <id>: View workout details.<id>: Workout ID.
gccli workouts download <id> [flags]: Download workout as FIT file.<id>: Workout ID.-o, --output=STRING: Output file path (default: workout_.fit).
gccli workouts upload <file>: Upload workout from JSON file.<file>: Path to workout JSON file.
gccli workouts update <id> <file>: Update an existing workout from a JSON file.<id>: Workout ID to update.<file>: Path to workout JSON file.
gccli workouts create --type=STRING --step=STEP,... <name> [flags]: Create a workout with sport type and optional targets.<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.
gccli workouts copy <id> [<name>]: Copy a workout.<id>: Workout ID.[<name>]: Name of the copy. Without it, the copy gets the name of the original.
gccli workouts send <id> [flags]: Send a workout to a device at its next sync. Undo: devices messages cancel.<id>: Workout ID.--device=ID: Device ID (from 'devices list'). Needed when more than one device can receive the workout.
gccli workouts types: List workout types.gccli workouts sport-types: List the sport types a workout can have.gccli workouts schedule add <id> <date>: Add a workout to the schedule.<id>: Workout ID.<date>: Date to schedule (YYYY-MM-DD, today, yesterday, 3d).
gccli workouts schedule list [<date>] [flags]: List scheduled workouts for a date.[<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).
gccli workouts schedule remove <id> [flags]: Remove a scheduled workout from the calendar.<id>: Schedule ID (from 'workouts schedule list').-f, --force: Skip confirmation prompt.
gccli workouts schedule export [flags]: Export the workout schedule from a start date.--start=DATE: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today.
gccli workouts benchmarks list: List strength benchmarks. Also runs asgccli workouts benchmarks.gccli workouts benchmarks set --weight=WEIGHT --reps=N <key> [flags]: Set a strength benchmark from a weight and reps.<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.
gccli workouts benchmarks clear <key> [flags]: Clear a strength benchmark.<key>: Benchmark key, such as BARBELL_ROW (from 'workouts benchmarks list').-f, --force: Skip confirmation prompt.
gccli workouts delete <id> [flags]: Delete a workout.<id>: Workout ID.-f, --force: Skip confirmation prompt.
Courses & Segments
gccli courses list: List courses. Also runs asgccli courses.gccli courses favorites: List favorite courses.gccli courses detail <id>: View course details.<id>: Course ID.
gccli courses download <id> [flags]: Download course file.<id>: Course ID.--format="fit": Download format: fit, gpx.-o, --output=STRING: Output file path (default: course_.).
gccli courses import <file> [flags]: Import a GPX file as a new course.<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.
gccli courses send <course-id> <device-id>: Send a course to a device.<course-id>: Course ID.<device-id>: Device ID.
gccli courses delete <id> [flags]: Delete a course.<id>: Course ID.-f, --force: Skip confirmation prompt.
gccli segments list [flags]: List the segments you created, or your favorites with --favorites. Also runs asgccli segments [flags].--favorites: List your favorite segments instead.-l, --limit=20: Maximum number of segments to return.--offset=0: Number of segments to skip.
gccli segments search [flags]: Search segments by name or map area.--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.
gccli segments show <uuid>: Show a segment with its track points.<uuid>: Segment UUID.
gccli segments leaderboard <uuid> [flags]: Show the leaderboard of a segment.<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.
gccli segments rank <uuid>: Show your best time and the top three on a segment.<uuid>: Segment UUID.
gccli segments classifications: List the segment classifications.gccli segments surface-types: List the segment surface types.gccli segments create --from-activity=ID --start-km=KM --end-km=KM --name=NAME --activity-type=TYPE [flags]: Create a segment from a part of an activity track.--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.
gccli segments favorite <uuid>: Add a segment to your favorites.<uuid>: Segment UUID.
gccli segments unfavorite <uuid>: Remove a segment from your favorites.<uuid>: Segment UUID.
gccli segments delete <uuid> [flags]: Delete a segment that you created.<uuid>: Segment UUID.-f, --force: Skip confirmation prompt.
Devices
gccli devices list: List registered devices. Also runs asgccli devices.gccli devices settings <device-id>: Show settings for a device.<device-id>: Device ID.
gccli devices primary: Show primary training device.gccli devices set-primary-tracker <device-id>: Set the primary activity tracker (not the 'devices primary' training device).<device-id>: Device ID (from 'devices list').
gccli devices solar <device-id> [flags]: Show solar charging data for a device.<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 alarms: Show alarms from all devices.gccli devices last-used: Show last used device.gccli devices sensors: List paired sensors.gccli devices backups summary: Show device backup summary. Also runs asgccli devices backups.gccli devices backups list: List device backups.gccli devices historical: List historical devices.gccli devices messages list: List device messages. Also runs asgccli devices messages.gccli devices messages cancel <id> [flags]: Cancel a device message, such as a sent workout, before the device syncs.<id>: Message ID (from 'devices messages').-f, --force: Skip the prompt for a message that is not a workout or a course.
Gear
gccli gear list: List all gear. Also runs asgccli gear.gccli gear stats <uuid>: Show usage statistics for a gear item.<uuid>: Gear UUID.
gccli gear activities <uuid> [flags]: Show activities linked to a gear item.<uuid>: Gear UUID.--limit=20: Maximum number of activities to return.
gccli gear defaults: Show default gear per activity type.gccli gear link <uuid> <activity-id>: Link gear to an activity.<uuid>: Gear UUID.<activity-id>: Activity ID.
gccli gear unlink <uuid> <activity-id>: Unlink gear from an activity.<uuid>: Gear UUID.<activity-id>: Activity ID.
gccli gear set-default <uuid> <activity-type>: Make a gear item a default gear for an activity type.<uuid>: Gear UUID, with or without dashes.<activity-type>: Activity type key, as activities types prints it (e.g. running, trail_running).
gccli gear unset-default <uuid> <activity-type>: Stop a gear item being a default gear for an activity type.<uuid>: Gear UUID, with or without dashes.<activity-type>: Activity type key, as activities types prints it (e.g. running, trail_running).
gccli gear types: List gear types.gccli gear models <search>: Search the Garmin list of gear brands and models.<search>: Brand or model words, such as "brooks ghost".
gccli gear add --brand=FREE-TEXT --model=FREE-TEXT <name> [flags]: Add a gear item.<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).
gccli gear update <uuid> [flags]: Change the name, brand, model or notes of a gear item.<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).
gccli gear retire <uuid>: Retire a gear item.<uuid>: Gear UUID, with or without dashes.
gccli gear unretire <uuid>: Make a retired gear item active again.<uuid>: Gear UUID, with or without dashes.
gccli gear delete <uuid> [flags]: Delete a gear item.<uuid>: Gear UUID, with or without dashes.-f, --force: Skip confirmation prompt.
gccli gear collections list: List gear collections. Also runs asgccli gear collections.gccli gear collections create <name> [flags]: Create a gear collection.<name>: Collection name.--first-use="today": Date of first use (YYYY-MM-DD, today, yesterday, 3d).
gccli gear collections rename <uuid> <name>: Rename a gear collection.<uuid>: Collection UUID.<name>: New name.
gccli gear collections add <uuid> <gear-uuid>: Add a gear item to a gear collection.<uuid>: Collection UUID.<gear-uuid>: Gear UUID, with or without dashes.
gccli gear collections remove <uuid> <gear-uuid> [flags]: Remove a gear item from a gear collection. The gear item stays.<uuid>: Collection UUID.<gear-uuid>: Gear UUID, with or without dashes.-f, --force: Skip confirmation prompt.
gccli gear collections delete <uuid> [flags]: Delete a gear collection. The gear items stay.<uuid>: Collection UUID.-f, --force: Skip confirmation prompt.
Goals, Badges & Challenges
gccli goals list [flags]: List goals. Also runs asgccli goals [flags].--status="active": Goal status: active, future, past.
gccli goals add --period=STRING <name> [flags]: Add an activity goal.<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.
gccli goals update <id> [flags]: Change an activity goal.<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.
gccli goals delete <id> [flags]: Delete an activity goal.<id>: Goal ID, as goals list prints it.-f, --force: Skip confirmation prompt.
gccli goals effective <type> [flags]: Show the daily goal of one type that applies on a date.<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 view [flags]: Show the effective weight goal for a date range. Also runs asgccli 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.
gccli goals weight set <weight> [flags]: Set the weight goal.<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.
gccli goals weight delete [flags]: Delete the current weight goal. An earlier weight goal then applies again.-f, --force: Skip confirmation prompt.
gccli goals set <type> <value> [flags]: Set the daily goal for floors climbed, intensity minutes or hydration.<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.
gccli goals steps set <steps> [flags]: Set a fixed daily steps goal.<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.
gccli goals steps auto [flags]: Set Garmin's automatic steps goal.--date="today": First day of the goal (YYYY-MM-DD, today, yesterday, 3d). The goal stays for the days after it.
gccli badges earned: Show earned badges. Also runs asgccli badges.gccli badges available: Show available badges.gccli badges in-progress: Show badges in progress.gccli badges detail <id>: Show details of a badge.<id>: Badge ID.
gccli badges compare <display-name>: Compare your badges with a connection.<display-name>: Display name of the connection.
gccli badges leaderboard: Show the badge points leaderboard of your connections.gccli challenges list: Show current challenges. Also runs asgccli challenges.gccli challenges badge: Show joined badge challenges that are not completed.gccli challenges available: Show available badge challenges.gccli challenges completed: Show completed badge challenges.gccli challenges virtual available: Show available virtual challenges.gccli challenges virtual completed: Show completed virtual challenges.gccli challenges virtual in-progress: Show virtual challenges in progress.gccli challenges show <uuid>: Show a badge or virtual challenge.<uuid>: Challenge UUID, as the list commands print it.
gccli challenges join <uuid>: Join a badge or virtual challenge.<uuid>: Challenge UUID, as the list commands print it.
gccli challenges leave <uuid>: Leave a badge or virtual challenge.<uuid>: Challenge UUID, as the list commands print it.
gccli challenges adhoc list: Show your ad-hoc challenges that are not finished. Also runs asgccli challenges adhoc.gccli challenges adhoc history: Show your finished ad-hoc challenges.gccli challenges adhoc show <uuid>: Show an ad-hoc challenge.<uuid>: Challenge UUID, as the list commands print it.
gccli challenges adhoc create --type=STRING <name> [flags]: Create an ad-hoc challenge and invite people who follow you and whom you follow.<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.
gccli challenges adhoc invites <uuid>: List the open invites of an ad-hoc challenge with their adHocChallengeInviteId.<uuid>: Challenge UUID, as the list commands print it.
gccli challenges adhoc invite <uuid> <display-name> ...: Invite people who follow you and whom you follow to an ad-hoc challenge.<uuid>: Challenge UUID, as the list commands print it.<display-name> ...: Display name of a person who follows you and whom you follow.
gccli challenges adhoc accept <invite-id>: Accept an invite to an ad-hoc challenge.<invite-id>: Invite ID (adHocChallengeInviteId).
gccli challenges adhoc decline <invite-id>: Decline an invite to an ad-hoc challenge.<invite-id>: Invite ID (adHocChallengeInviteId).
gccli challenges adhoc leave <uuid> [flags]: Leave an ad-hoc challenge. Only a new invite gets you back in.<uuid>: Challenge UUID, as the list commands print it.-f, --force: Skip confirmation prompt.
gccli challenges adhoc delete <uuid> [flags]: Delete an ad-hoc challenge that you created.<uuid>: Challenge UUID, as the list commands print it.-f, --force: Skip confirmation prompt.
gccli records list: View personal records. Also runs asgccli records.gccli records types: List personal record types.gccli records activity <id>: List the personal records set in an activity.<id>: Activity ID.
gccli records candidates list: List the personal record candidates that wait for your review. Also runs asgccli records candidates.gccli records candidates accept <id>: Accept a personal record candidate as a personal record.<id>: Candidate ID, as records candidates prints it.
gccli records candidates dismiss <id> [flags]: Dismiss a personal record candidate. This cannot be undone.<id>: Candidate ID, as records candidates prints it.-f, --force: Skip confirmation prompt.
gccli records hide <type-id>: Hide a personal record type on the records page.<type-id>: Record type ID, as records types prints it.
gccli records unhide <type-id>: Show a hidden personal record type on the records page again.<type-id>: Record type ID, as records types prints it.
gccli records delete <id> [flags]: Delete a personal record. This cannot be undone.<id>: Personal record ID, as records list prints it.-f, --force: Skip confirmation prompt.
Events
gccli events list [flags]: List calendar events. Also runs asgccli 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.
gccli events upcoming: List upcoming events.gccli events add --name=FREE-TEXT --date=DATE --type=STRING [flags]: Add a calendar event.-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.
- `gccli events delete
Files (gccli)
-
SKILL.md 111.9 KB
--- name: garmin-connect description: Garmin Connect CLI for activities, health, body composition, workouts, devices, gear, goals, and more. homepage: https://github.com/bpauli/gccli metadata: {"clawdbot":{"emoji":"⌚","os":["darwin","linux"],"requires":{"bins":["gccli"]},"install":[{"id":"homebrew","kind":"brew","formula":"bpauli/tap/gccli","bins":["gccli"],"label":"Homebrew (recommended)"},{"id":"source","kind":"source","url":"https://github.com/bpauli/gccli","bins":["gccli"],"label":"Build from source (Go 1.26+)"}]}} --- # gccli Use `gccli` for Garmin Connect health, fitness, and activity data. Requires Garmin SSO authentication. Setup (once) - `gccli auth login you@example.com` (opens browser for Garmin SSO) - Headless: `gccli auth login you@example.com --headless` (with `--mfa-code <code>` for MFA) - Set default account: `export GCCLI_ACCOUNT=you@example.com` - Verify: `gccli auth status` (exits 3 when no credentials are stored) Output - Default: human-friendly tables. Use `--json` / `-j` for JSON. - `--plain` prints TSV with no header row (add `--header` for the column names as the first line), but only for `activities list`, `activities search`, `activities favorites`, `activities types`, `activity summary`, `body weekly`, `courses list`, `courses favorites`, `courses import`, `events list`, `nutrition search`, `nutrition recent`, `nutrition favorites`, `workouts list`, `workouts schedule list` and `exercises list` (without `-c`). Most other commands print JSON in all modes. - `--header` works only with `--plain`. With table or `--json` output it is a usage error (exit code 2). `GCCLI_HEADER=1` does the same as `--header` in plain mode, and table and JSON output ignore it. - Table and `--plain` 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. `--json` is not escaped this way. - Data goes to stdout, messages/errors to stderr. - Write commands (add, create, upload, import, update, set, clear, rename, retype, describe, change, favorite, unfavorite, schedule, send, link, unlink, remove, reload, delete) 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`). - An empty answer is not an error. When Garmin sends no body, the exit code is 0 and the output follows the shape of the Garmin answer: a command whose answer is a list prints `[]` with `--json`, and a command whose answer is one object prints `{}` in every mode. A list command that prints columns (`activities list`, `activities search`, `activities favorites`, `activities types`, `body weekly`, `courses list`, `courses favorites`, `events list`, `nutrition search`, `nutrition recent`, `nutrition favorites`, `workouts list` and `workouts schedule list`) prints the header only as a table and nothing with `--plain` (the header line with `--header`); every other list command prints `[]` in every mode. `activity summary` and `exercises list` show one object, so they print `{}` with `--json` and no row otherwise. The file `internal/cmd/testdata/answer_shapes.tsv` in the gccli repository records the shape of the Garmin answer of every command that prints it (`array`, `object` or `unknown`, with the evidence for each; a shape that no Garmin answer confirmed is `unknown` and prints `{}`), and a test keeps the commands in step with it. `activities count` prints `0` (`{"count": 0}` with `--json`). A list answer without its list key gives no rows, and `--json` prints the answer unchanged. - `--plain` prints TSV with no header row (add `--header` for the column names as the first line), but only for `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 `-c`). Most other commands print JSON in all modes. - `--header` works only with `--plain`. With table or `--json` output it is a usage error (exit code 2). `GCCLI_HEADER=1` does the same as `--header` in plain mode, and table and JSON output ignore it. - Table and `--plain` 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. `--json` is not escaped this way. - Data goes to stdout, messages/errors to stderr. - Write commands (add, create, upload, import, update, set, clear, rename, retype, describe, change, favorite, unfavorite, schedule, send, link, unlink, join, leave, remove, reload, delete) 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`). - An empty answer is not an error. When Garmin sends no body, the exit code is 0 and the output follows the shape of the Garmin answer: a command whose answer is a list prints `[]` with `--json`, and a command whose answer is one object prints `{}` in every mode. A list command that prints columns (`activities list`, `activities search`, `activities types`, `body weekly`, `courses list`, `courses favorites`, `events list`, `groups search`, `groups members`, `groups activities`, `nutrition search`, `nutrition recent`, `nutrition favorites`, `workouts list` and `workouts schedule list`) prints the header only as a table and nothing with `--plain` (the header line with `--header`); every other list command prints `[]` in every mode. `activity summary` and `exercises list` show one object, so they print `{}` with `--json` and no row otherwise. The file `internal/cmd/testdata/answer_shapes.tsv` in the gccli repository records the shape of the Garmin answer of every command that prints it (`array`, `object` or `unknown`, with the evidence for each; a shape that no Garmin answer confirmed is `unknown` and prints `{}`), and a test keeps the commands in step with it. `activities count` prints `0` (`{"count": 0}` with `--json`). A list answer without its list key gives no rows, and `--json` prints the answer unchanged. - Always use `--json` when parsing output programmatically. - Tables show distance, speed, pace, elevation and weight in the user's Garmin unit system (`metric`, `statute_us`, or `statute_uk`, which is miles with elevation in metres). Weight is kg in `metric` and lbs in both statute systems. Override with `--units <system>` or `GCCLI_UNITS`. JSON is never converted (meters, m/s, grams). Date shortcuts - `today`, `yesterday`, `3d` (N days ago), `+30d` (N days ahead), `YYYY-MM-DD` (specific date). - All date range commands use `--start`/`--end`, and these flags accept every form above. So does the optional `[<date>]` argument of the daily views, such as `health sleep [<date>]` or `health steps [<date>]`. A bad or empty date is a usage error (exit code 2), before the login; omit the argument for today. - `activities list`, `activities search`, `workouts list` and `events list` page with `--limit`/`-l` and `--offset` (number of items to skip). `--limit` must be at least 1 and `--offset` must not be negative; other values are a usage error (exit code 2). In `events list`, `--offset` must be 0 or a multiple of `--limit`. <!-- gccli:commands:begin --> <!-- Generated from the command tree. Do not edit. Run: go test ./internal/cmd -run TestDocsUpToDate -update --> ## Command Reference ### Authentication - `gccli auth login <email> [flags]`: Log in to Garmin Connect. - `<email>`: Garmin account email address. - `--headless`: Use headless login (email/password) instead of browser SSO. - `--mfa-code=STRING`: MFA code for two-factor authentication. - `gccli auth status`: Show authentication status. - `gccli auth remove`: Remove stored credentials. - `gccli auth token`: Print current access token, refreshing it first when expired. - `gccli auth export`: Export credentials for transfer to another machine. - `gccli auth import [<token>]`: Import credentials from another machine. - `[<token>]`: Base64-encoded token string from 'auth export'. Reads from stdin if omitted. ### Activities - `gccli activities list [flags]`: List recent activities. Also runs as `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). - `gccli activities count`: Show total activity count. - `gccli activities search --start=DATE [flags]`: Search activities by date range. - `-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). - `gccli activities favorites [flags]`: List your favorite activities. - `-l, --limit=20`: Maximum number of activities to return. - `gccli activities types`: List all activity types supported by Garmin. - `gccli activities pending`: List pending activities. - `gccli activities stats view`: Show activity totals by activity type. Also runs as `gccli activities stats`. - `gccli activities stats monthly`: Show monthly activity totals by activity type. - `gccli activities privacy status`: Show the last privacy change of past activities. Also runs as `gccli activities privacy`. - `gccli activities privacy set <level> [flags]`: Change the privacy of all past activities, or of past activities of some types. - `<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 summary <id>`: Show activity summary. Also runs as `gccli activity <id>`. - `<id>`: Activity ID. - `gccli activity details <id> [flags]`: Show full activity details. - `<id>`: Activity ID. - `--max-chart=2000`: Maximum chart data points. - `--max-poly=4000`: Maximum polyline data points. - `gccli activity splits <id>`: Show activity splits. - `<id>`: Activity ID. - `gccli activity typed-splits <id>`: Show typed splits. - `<id>`: Activity ID. - `gccli activity split-summaries <id>`: Show split summaries. - `<id>`: Activity ID. - `gccli activity weather <id>`: Show weather conditions. - `<id>`: Activity ID. - `gccli activity hr-zones <id>`: Show heart rate time in zones. - `<id>`: Activity ID. - `gccli activity power-zones <id>`: Show power time in zones. - `<id>`: Activity ID. - `gccli activity segments <id>`: List the segments that an activity crossed. - `<id>`: Activity ID. - `gccli activity exercise-sets show <id>`: Show exercise sets. Also runs as `gccli activity exercise-sets <id>`. - `<id>`: Activity ID. - `gccli activity exercise-sets set --exercise=EXERCISE,... <id>`: Set exercise sets for a strength training activity. - `<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). - `gccli activity gear <id>`: Show linked gear. - `<id>`: Activity ID. - `gccli activity comments list <id>`: List the comments on an activity. Also runs as `gccli activity comments <id>`. - `<id>`: Activity ID. - `gccli activity comments add <id> <text>`: Add a comment to an activity. - `<id>`: Activity ID. - `<text>`: Comment text. - `gccli activity comments edit <id> <comment-id> <text>`: Change the text of your comment on an activity. - `<id>`: Activity ID. - `<comment-id>`: Comment ID (conversationCommentUuid in activity comments list). - `<text>`: New comment text. - `gccli activity comments delete <id> <comment-id> [flags]`: Delete a comment on an activity. - `<id>`: Activity ID. - `<comment-id>`: Comment ID (conversationCommentUuid in activity comments list). - `-f, --force`: Skip confirmation prompt. - `gccli activity comments likes list <comment-id>`: List the likes of a comment. Also runs as `gccli activity comments likes <comment-id>`. - `<comment-id>`: Comment ID (conversationCommentUuid in activity comments list). - `gccli activity comments likes add <comment-id>`: Like a comment. - `<comment-id>`: Comment ID (conversationCommentUuid in activity comments list). - `gccli activity comments likes remove <comment-id>`: Remove your like from a comment. - `<comment-id>`: Comment ID (conversationCommentUuid in activity comments list). - `gccli activity likes list <id>`: List the likes of an activity. Also runs as `gccli activity likes <id>`. - `<id>`: Activity ID. - `gccli activity likes add <id>`: Like an activity. - `<id>`: Activity ID. - `gccli activity likes remove <id>`: Remove your like from an activity. - `<id>`: Activity ID. - `gccli activity download <id> [flags]`: Download activity file. - `<id>`: Activity ID. - `--format="fit"`: Download format: fit, gpx, tcx, kml, csv. - `-o, --output=STRING`: Output file path (default: activity_{id}.{format}). - `gccli activity upload <file>`: Upload an activity file (FIT/GPX/TCX). - `<file>`: Path to activity file (FIT, GPX, or TCX). - `gccli activity create --name=FREE-TEXT --type=FREE-TEXT --duration=DURATION [flags]`: Create a manual activity. - `--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. - `gccli activity rename <id> <name>`: Rename an activity. - `<id>`: Activity ID. - `<name>`: New activity name. - `gccli activity retype --type-id=INT --type-key=FREE-TEXT <id> [flags]`: Change activity type. - `<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. - `gccli activity describe <id> <text>`: Set or clear the description of an activity. - `<id>`: Activity ID. - `<text>`: New description. An empty text ("") clears it. - `gccli activity privacy <id> <level>`: Change who can see an activity. - `<id>`: Activity ID. - `<level>`: Who can see the activity: public, private or connections. - `gccli activity trim <id> [flags]`: Trim the start or end of an activity. - `<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. - `gccli activity restore <id>`: Restore the original of a trimmed activity. - `<id>`: Activity ID. - `gccli activity favorite <id>`: Mark an activity as a favorite. - `<id>`: Activity ID. - `gccli activity unfavorite <id>`: Remove the favorite mark from an activity. - `<id>`: Activity ID. - `gccli activity delete <id> [flags]`: Delete an activity. - `<id>`: Activity ID. - `-f, --force`: Skip confirmation prompt. - `gccli exercises list [flags]`: List available exercise categories and exercises. Also runs as `gccli exercises [flags]`. - `-c, --category=STRING`: Filter by category (e.g. BENCH_PRESS). ### Health Data - `gccli health summary [<date>]`: Show daily health summary. Also runs as `gccli health [<date>]`. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health steps view [<date>]`: Show step chart data for a date. Also runs as `gccli health steps [<date>]`. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health steps daily --start=DATE --end=DATE`: Show daily step totals for a date range. - `--start=DATE`: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `gccli health steps weekly [flags]`: Show weekly step totals. - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `--weeks=4`: Number of weeks. - `gccli health steps monthly [flags]`: Show monthly step totals. - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `--months=6`: Number of months. - `gccli health calories weekly [flags]`: Show weekly calorie totals. - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `--weeks=4`: Number of weeks. - `gccli health pushes weekly [flags]`: Show weekly wheelchair push totals. - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `--weeks=4`: Number of weeks. - `gccli health pushes monthly [flags]`: Show monthly wheelchair push totals. - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `--months=6`: Number of months. - `gccli health lifetime-totals`: Show lifetime totals. - `gccli health hr view [<date>]`: Show heart rate data for a date. Also runs as `gccli health hr [<date>]`. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health hr daily --start=DATE --end=DATE`: Show daily heart rate statistics for a date range. - `--start=DATE`: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `gccli health hr weekly [flags]`: Show weekly heart rate statistics. - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `--weeks=4`: Number of weeks. - `gccli health rhr [<date>]`: Show resting heart rate data. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health floors view [<date>]`: Show floors climbed for a date. Also runs as `gccli health floors [<date>]`. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health floors daily --start=DATE --end=DATE`: Show daily floors climbed for a date range. - `--start=DATE`: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `gccli health floors weekly [flags]`: Show weekly floors climbed. - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `--weeks=4`: Number of weeks. - `gccli health sleep view [<date>]`: Show sleep data for a date. Also runs as `gccli health sleep [<date>]`. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health sleep naps view [<date>]`: Show naps for a date. Also runs as `gccli health sleep naps [<date>]`. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `gccli health sleep naps add <start> <end>`: Add a nap for today. Garmin takes naps only for the current day. - `<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. - `gccli health sleep naps delete <date> <start> [flags]`: Delete a nap. - `<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. - `gccli health sleep note <date> [<text>] [flags]`: Set or remove the note of a night of sleep. - `<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. - `gccli health sleep daily --start=DATE --end=DATE`: Show daily sleep statistics for a date range (at most 28 days). - `--start=DATE`: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `gccli health sleep weekly [flags]`: Show weekly sleep statistics for the 52 weeks up to a date. - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `gccli health sleep overall --start=DATE --end=DATE`: Show overall sleep statistics for a date range. - `--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 view [<date>]`: Show stress data for a date. Also runs as `gccli health stress [<date>]`. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health stress daily --start=DATE --end=DATE`: Show daily stress statistics for a date range. - `--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 weekly [flags]`: Show weekly stress data. - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `--weeks=4`: Number of weeks. - `gccli health respiration view [<date>]`: Show respiration data for a date. Also runs as `gccli health respiration [<date>]`. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health respiration daily --start=DATE --end=DATE`: Show daily respiration statistics for a date range. - `--start=DATE`: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `gccli health spo2 [<date>]`: Show SpO2 (blood oxygen) data. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health hrv [<date>]`: Show heart rate variability data. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health snapshots list [flags]`: List Health Snapshot sessions up to a date. Also runs as `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. - `gccli health snapshots show <date> <uuid>`: Show the summary of a Health Snapshot session. - `<date>`: Date of the session (YYYY-MM-DD, today, yesterday, 3d). - `<uuid>`: Session UUID (activityUuid.uuid in 'health snapshots list'). - `gccli health snapshots epochs <uuid>`: Show the measurements of a Health Snapshot session. - `<uuid>`: Session UUID (activityUuid.uuid in 'health snapshots list'). - `gccli health snapshots report <date> <uuid> [flags]`: Save the PDF report of a Health Snapshot session. - `<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). - `gccli health snapshots rename <date> <uuid> <name>`: Rename a Health Snapshot session. - `<date>`: Date of the session (YYYY-MM-DD, today, yesterday, 3d). - `<uuid>`: Session UUID (activityUuid.uuid in 'health snapshots list'). - `<name>`: New session name. - `gccli health snapshots note <date> <uuid> [<text>] [flags]`: Set or remove the note of a Health Snapshot session. - `<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. - `gccli health snapshots delete <date> <uuid> [flags]`: Delete a Health Snapshot session. - `<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 view [<date>]`: Show body battery data for a date. Also runs as `gccli health body-battery [<date>]`. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health body-battery range --start=DATE --end=DATE`: Show body battery data for a date range. - `--start=DATE`: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `gccli health body-battery daily --start=DATE --end=DATE`: Show the daily low and high body battery for a date range (at most 28 days). - `--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 view [<date>]`: Show intensity minutes for a date. Also runs as `gccli health intensity-minutes [<date>]`. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health intensity-minutes weekly --start=DATE --end=DATE`: Show weekly intensity minutes for a date range. - `--start=DATE`: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `gccli health training-readiness [<date>]`: Show training readiness data. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health training-status view [<date>]`: Show aggregated training status for a date. Also runs as `gccli health training-status [<date>]`. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health training-status daily [<date>]`: Show daily training status for a date. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `gccli health training-status weekly --start=DATE --end=DATE`: Show weekly training status for a date range. - `--start=DATE`: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `gccli health fitness-age [<date>]`: Show fitness age data. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health max-metrics [<date>]`: Show VO2max and max metrics data. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health lactate-threshold`: Show latest lactate threshold. - `gccli health cycling-ftp`: Show latest cycling FTP. - `gccli health critical-swim-speed view [<date>]`: Show latest critical swim speed as of a date. Also runs as `gccli health critical-swim-speed [<date>]`. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `gccli health critical-swim-speed range --start=DATE --end=DATE`: Show critical swim speed for a date range. - `--start=DATE`: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `gccli health critical-swim-speed set <pace> [flags]`: Save a critical swim speed measured now, from a pace per 100 m or 100 yd. - `<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. - `gccli health critical-swim-speed delete <timestamp> <version> [flags]`: Delete a critical swim speed entry. Garmin refuses to delete the last one. - `<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. - `gccli health power-to-weight [<date>]`: Show latest power-to-weight data as of a date. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `gccli health thresholds cycling-ftp --start=DATE --end=DATE`: Show cycling FTP for a date range. - `--start=DATE`: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `gccli health thresholds lactate-heart-rate --start=DATE --end=DATE`: Show lactate threshold heart rate for a date range. - `--start=DATE`: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `gccli health thresholds lactate-speed --start=DATE --end=DATE`: Show lactate threshold speed for a date range. - `--start=DATE`: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `gccli health thresholds power-to-weight --start=DATE --end=DATE`: Show power-to-weight data for a date range. - `--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 view`: Show current race predictions. Also runs as `gccli health race-predictions`. - `gccli health race-predictions range --start=DATE --end=DATE`: Show race predictions for a date range. - `--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 view [<date>]`: Show endurance score data for a date. Also runs as `gccli health endurance-score [<date>]`. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health endurance-score stats --start=DATE --end=DATE [flags]`: Show endurance score statistics for a date range (at most 400 days). - `--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 view [<date>]`: Show hill score data for a date. Also runs as `gccli health hill-score [<date>]`. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health hill-score stats --start=DATE --end=DATE [flags]`: Show hill score statistics for a date range (at most 400 days). - `--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. - `gccli health power-curve --start=DATE --end=DATE`: Show power curve for a date range. - `--start=DATE`: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `gccli health running-tolerance --start=DATE --end=DATE [flags]`: Show running tolerance for a date range. - `--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. - `gccli health cycling-ability --start=DATE --end=DATE [flags]`: Show cycling ability for a date range. - `--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 summary --start=DATE --end=DATE --metric=METRIC,... [flags]`: Show activity totals per period for a date range. Also runs as `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. - `gccli health progress activities --start=DATE --end=DATE --metric=METRIC,... [flags]`: Show metric values of each activity in a date range. - `--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. - `gccli health progress metrics [flags]`: List the metrics of each activity type. - `--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. - `gccli health running-economy [<date>]`: Show latest running economy as of a date. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `gccli health acclimation range --start=DATE --end=DATE`: Show acclimation data for a date range. Also runs as `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). - `gccli health acclimation daily [<date>]`: Show SpO2 acclimation for a date. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `gccli health one-rep-max [<date>]`: Show current estimated one-rep max values as of a date. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `gccli health events [<date>]`: Show daily wellness events. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli health lifestyle [<date>]`: Show lifestyle logging data. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. ### Body Composition - `gccli body composition [<date>] [flags]`: Show body composition data. Also runs as `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). - `gccli body weigh-ins --start=DATE --end=DATE`: Show weigh-in data for a date range. - `--start=DATE`: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `gccli body daily-weigh-ins [<date>]`: Show weigh-in data for a single day. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d). Defaults to today. - `gccli body latest [<date>]`: Show the latest weigh-in as of a date. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `gccli body weekly [<end>]`: Show weekly weight summaries for the 52 weeks that end on a date. - `[<end>]`: Last day of the 52 weeks (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `gccli body add-weight <value> [flags]`: Add a weigh-in entry. - `<value>`: Weight value. - `--unit="kg"`: Unit: kg or lbs. - `gccli body add-composition <weight> [flags]`: Add body composition data (weight, body fat, muscle mass, etc.) via FIT upload. - `<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. - `gccli body delete-weight --date=DATE <pk> [flags]`: Delete a weigh-in entry. - `<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. - `gccli body blood-pressure --start=DATE --end=DATE`: Show blood pressure data. - `--start=DATE`: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `--end=DATE`: End date (YYYY-MM-DD, today, yesterday, 3d, +30d). - `gccli body export-blood-pressure [flags]`: Save the blood pressure report as a PDF. - `--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). - `gccli body add-blood-pressure --systolic=INT --diastolic=INT --pulse=INT [flags]`: Add a blood pressure measurement. - `--systolic=INT`: Systolic pressure (mmHg). - `--diastolic=INT`: Diastolic pressure (mmHg). - `--pulse=INT`: Pulse rate (bpm). - `--notes=STRING`: Optional notes. - `gccli body delete-blood-pressure --date=DATE <version> [flags]`: Delete a blood pressure entry. - `<version>`: Blood pressure entry version. - `--date=DATE`: Date of the measurement (YYYY-MM-DD, today, yesterday, 3d, +30d). - `-f, --force`: Skip confirmation prompt. - `gccli body glucose [<date>]`: Show glucose readings for a date. - `[<date>]`: Date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. ### Workouts - `gccli workouts list [flags]`: List workouts. Also runs as `gccli workouts [flags]`. - `-l, --limit=20`: Maximum number of workouts to return. - `--offset=0`: Number of workouts to skip. - `gccli workouts detail <id>`: View workout details. - `<id>`: Workout ID. - `gccli workouts download <id> [flags]`: Download workout as FIT file. - `<id>`: Workout ID. - `-o, --output=STRING`: Output file path (default: workout_{id}.fit). - `gccli workouts upload <file>`: Upload workout from JSON file. - `<file>`: Path to workout JSON file. - `gccli workouts update <id> <file>`: Update an existing workout from a JSON file. - `<id>`: Workout ID to update. - `<file>`: Path to workout JSON file. - `gccli workouts create --type=STRING --step=STEP,... <name> [flags]`: Create a workout with sport type and optional targets. - `<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. - `gccli workouts copy <id> [<name>]`: Copy a workout. - `<id>`: Workout ID. - `[<name>]`: Name of the copy. Without it, the copy gets the name of the original. - `gccli workouts send <id> [flags]`: Send a workout to a device at its next sync. Undo: devices messages cancel. - `<id>`: Workout ID. - `--device=ID`: Device ID (from 'devices list'). Needed when more than one device can receive the workout. - `gccli workouts types`: List workout types. - `gccli workouts sport-types`: List the sport types a workout can have. - `gccli workouts schedule add <id> <date>`: Add a workout to the schedule. - `<id>`: Workout ID. - `<date>`: Date to schedule (YYYY-MM-DD, today, yesterday, 3d). - `gccli workouts schedule list [<date>] [flags]`: List scheduled workouts for a date. - `[<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). - `gccli workouts schedule remove <id> [flags]`: Remove a scheduled workout from the calendar. - `<id>`: Schedule ID (from 'workouts schedule list'). - `-f, --force`: Skip confirmation prompt. - `gccli workouts schedule export [flags]`: Export the workout schedule from a start date. - `--start=DATE`: Start date (YYYY-MM-DD, today, yesterday, 3d, +30d). Defaults to today. - `gccli workouts benchmarks list`: List strength benchmarks. Also runs as `gccli workouts benchmarks`. - `gccli workouts benchmarks set --weight=WEIGHT --reps=N <key> [flags]`: Set a strength benchmark from a weight and reps. - `<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. - `gccli workouts benchmarks clear <key> [flags]`: Clear a strength benchmark. - `<key>`: Benchmark key, such as BARBELL_ROW (from 'workouts benchmarks list'). - `-f, --force`: Skip confirmation prompt. - `gccli workouts delete <id> [flags]`: Delete a workout. - `<id>`: Workout ID. - `-f, --force`: Skip confirmation prompt. ### Courses & Segments - `gccli courses list`: List courses. Also runs as `gccli courses`. - `gccli courses favorites`: List favorite courses. - `gccli courses detail <id>`: View course details. - `<id>`: Course ID. - `gccli courses download <id> [flags]`: Download course file. - `<id>`: Course ID. - `--format="fit"`: Download format: fit, gpx. - `-o, --output=STRING`: Output file path (default: course_{id}.{format}). - `gccli courses import <file> [flags]`: Import a GPX file as a new course. - `<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. - `gccli courses send <course-id> <device-id>`: Send a course to a device. - `<course-id>`: Course ID. - `<device-id>`: Device ID. - `gccli courses delete <id> [flags]`: Delete a course. - `<id>`: Course ID. - `-f, --force`: Skip confirmation prompt. - `gccli segments list [flags]`: List the segments you created, or your favorites with --favorites. Also runs as `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. - `gccli segments search [flags]`: Search segments by name or map area. - `--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. - `gccli segments show <uuid>`: Show a segment with its track points. - `<uuid>`: Segment UUID. - `gccli segments leaderboard <uuid> [flags]`: Show the leaderboard of a segment. - `<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. - `gccli segments rank <uuid>`: Show your best time and the top three on a segment. - `<uuid>`: Segment UUID. - `gccli segments classifications`: List the segment classifications. - `gccli segments surface-types`: List the segment surface types. - `gccli segments create --from-activity=ID --start-km=KM --end-km=KM --name=NAME --activity-type=TYPE [flags]`: Create a segment from a part of an activity track. - `--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. - `gccli segments favorite <uuid>`: Add a segment to your favorites. - `<uuid>`: Segment UUID. - `gccli segments unfavorite <uuid>`: Remove a segment from your favorites. - `<uuid>`: Segment UUID. - `gccli segments delete <uuid> [flags]`: Delete a segment that you created. - `<uuid>`: Segment UUID. - `-f, --force`: Skip confirmation prompt. ### Devices - `gccli devices list`: List registered devices. Also runs as `gccli devices`. - `gccli devices settings <device-id>`: Show settings for a device. - `<device-id>`: Device ID. - `gccli devices primary`: Show primary training device. - `gccli devices set-primary-tracker <device-id>`: Set the primary activity tracker (not the 'devices primary' training device). - `<device-id>`: Device ID (from 'devices list'). - `gccli devices solar <device-id> [flags]`: Show solar charging data for a device. - `<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 alarms`: Show alarms from all devices. - `gccli devices last-used`: Show last used device. - `gccli devices sensors`: List paired sensors. - `gccli devices backups summary`: Show device backup summary. Also runs as `gccli devices backups`. - `gccli devices backups list`: List device backups. - `gccli devices historical`: List historical devices. - `gccli devices messages list`: List device messages. Also runs as `gccli devices messages`. - `gccli devices messages cancel <id> [flags]`: Cancel a device message, such as a sent workout, before the device syncs. - `<id>`: Message ID (from 'devices messages'). - `-f, --force`: Skip the prompt for a message that is not a workout or a course. ### Gear - `gccli gear list`: List all gear. Also runs as `gccli gear`. - `gccli gear stats <uuid>`: Show usage statistics for a gear item. - `<uuid>`: Gear UUID. - `gccli gear activities <uuid> [flags]`: Show activities linked to a gear item. - `<uuid>`: Gear UUID. - `--limit=20`: Maximum number of activities to return. - `gccli gear defaults`: Show default gear per activity type. - `gccli gear link <uuid> <activity-id>`: Link gear to an activity. - `<uuid>`: Gear UUID. - `<activity-id>`: Activity ID. - `gccli gear unlink <uuid> <activity-id>`: Unlink gear from an activity. - `<uuid>`: Gear UUID. - `<activity-id>`: Activity ID. - `gccli gear set-default <uuid> <activity-type>`: Make a gear item a default gear for an activity type. - `<uuid>`: Gear UUID, with or without dashes. - `<activity-type>`: Activity type key, as activities types prints it (e.g. running, trail_running). - `gccli gear unset-default <uuid> <activity-type>`: Stop a gear item being a default gear for an activity type. - `<uuid>`: Gear UUID, with or without dashes. - `<activity-type>`: Activity type key, as activities types prints it (e.g. running, trail_running). - `gccli gear types`: List gear types. - `gccli gear models <search>`: Search the Garmin list of gear brands and models. - `<search>`: Brand or model words, such as "brooks ghost". - `gccli gear add --brand=FREE-TEXT --model=FREE-TEXT <name> [flags]`: Add a gear item. - `<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). - `gccli gear update <uuid> [flags]`: Change the name, brand, model or notes of a gear item. - `<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). - `gccli gear retire <uuid>`: Retire a gear item. - `<uuid>`: Gear UUID, with or without dashes. - `gccli gear unretire <uuid>`: Make a retired gear item active again. - `<uuid>`: Gear UUID, with or without dashes. - `gccli gear delete <uuid> [flags]`: Delete a gear item. - `<uuid>`: Gear UUID, with or without dashes. - `-f, --force`: Skip confirmation prompt. - `gccli gear collections list`: List gear collections. Also runs as `gccli gear collections`. - `gccli gear collections create <name> [flags]`: Create a gear collection. - `<name>`: Collection name. - `--first-use="today"`: Date of first use (YYYY-MM-DD, today, yesterday, 3d). - `gccli gear collections rename <uuid> <name>`: Rename a gear collection. - `<uuid>`: Collection UUID. - `<name>`: New name. - `gccli gear collections add <uuid> <gear-uuid>`: Add a gear item to a gear collection. - `<uuid>`: Collection UUID. - `<gear-uuid>`: Gear UUID, with or without dashes. - `gccli gear collections remove <uuid> <gear-uuid> [flags]`: Remove a gear item from a gear collection. The gear item stays. - `<uuid>`: Collection UUID. - `<gear-uuid>`: Gear UUID, with or without dashes. - `-f, --force`: Skip confirmation prompt. - `gccli gear collections delete <uuid> [flags]`: Delete a gear collection. The gear items stay. - `<uuid>`: Collection UUID. - `-f, --force`: Skip confirmation prompt. ### Goals, Badges & Challenges - `gccli goals list [flags]`: List goals. Also runs as `gccli goals [flags]`. - `--status="active"`: Goal status: active, future, past. - `gccli goals add --period=STRING <name> [flags]`: Add an activity goal. - `<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. - `gccli goals update <id> [flags]`: Change an activity goal. - `<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. - `gccli goals delete <id> [flags]`: Delete an activity goal. - `<id>`: Goal ID, as goals list prints it. - `-f, --force`: Skip confirmation prompt. - `gccli goals effective <type> [flags]`: Show the daily goal of one type that applies on a date. - `<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 view [flags]`: Show the effective weight goal for a date range. Also runs as `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. - `gccli goals weight set <weight> [flags]`: Set the weight goal. - `<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. - `gccli goals weight delete [flags]`: Delete the current weight goal. An earlier weight goal then applies again. - `-f, --force`: Skip confirmation prompt. - `gccli goals set <type> <value> [flags]`: Set the daily goal for floors climbed, intensity minutes or hydration. - `<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. - `gccli goals steps set <steps> [flags]`: Set a fixed daily steps goal. - `<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. - `gccli goals steps auto [flags]`: Set Garmin's automatic steps goal. - `--date="today"`: First day of the goal (YYYY-MM-DD, today, yesterday, 3d). The goal stays for the days after it. - `gccli badges earned`: Show earned badges. Also runs as `gccli badges`. - `gccli badges available`: Show available badges. - `gccli badges in-progress`: Show badges in progress. - `gccli badges detail <id>`: Show details of a badge. - `<id>`: Badge ID. - `gccli badges compare <display-name>`: Compare your badges with a connection. - `<display-name>`: Display name of the connection. - `gccli badges leaderboard`: Show the badge points leaderboard of your connections. - `gccli challenges list`: Show current challenges. Also runs as `gccli challenges`. - `gccli challenges badge`: Show joined badge challenges that are not completed. - `gccli challenges available`: Show available badge challenges. - `gccli challenges completed`: Show completed badge challenges. - `gccli challenges virtual available`: Show available virtual challenges. - `gccli challenges virtual completed`: Show completed virtual challenges. - `gccli challenges virtual in-progress`: Show virtual challenges in progress. - `gccli challenges show <uuid>`: Show a badge or virtual challenge. - `<uuid>`: Challenge UUID, as the list commands print it. - `gccli challenges join <uuid>`: Join a badge or virtual challenge. - `<uuid>`: Challenge UUID, as the list commands print it. - `gccli challenges leave <uuid>`: Leave a badge or virtual challenge. - `<uuid>`: Challenge UUID, as the list commands print it. - `gccli challenges adhoc list`: Show your ad-hoc challenges that are not finished. Also runs as `gccli challenges adhoc`. - `gccli challenges adhoc history`: Show your finished ad-hoc challenges. - `gccli challenges adhoc show <uuid>`: Show an ad-hoc challenge. - `<uuid>`: Challenge UUID, as the list commands print it. - `gccli challenges adhoc create --type=STRING <name> [flags]`: Create an ad-hoc challenge and invite people who follow you and whom you follow. - `<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. - `gccli challenges adhoc invites <uuid>`: List the open invites of an ad-hoc challenge with their adHocChallengeInviteId. - `<uuid>`: Challenge UUID, as the list commands print it. - `gccli challenges adhoc invite <uuid> <display-name> ...`: Invite people who follow you and whom you follow to an ad-hoc challenge. - `<uuid>`: Challenge UUID, as the list commands print it. - `<display-name> ...`: Display name of a person who follows you and whom you follow. - `gccli challenges adhoc accept <invite-id>`: Accept an invite to an ad-hoc challenge. - `<invite-id>`: Invite ID (adHocChallengeInviteId). - `gccli challenges adhoc decline <invite-id>`: Decline an invite to an ad-hoc challenge. - `<invite-id>`: Invite ID (adHocChallengeInviteId). - `gccli challenges adhoc leave <uuid> [flags]`: Leave an ad-hoc challenge. Only a new invite gets you back in. - `<uuid>`: Challenge UUID, as the list commands print it. - `-f, --force`: Skip confirmation prompt. - `gccli challenges adhoc delete <uuid> [flags]`: Delete an ad-hoc challenge that you created. - `<uuid>`: Challenge UUID, as the list commands print it. - `-f, --force`: Skip confirmation prompt. - `gccli records list`: View personal records. Also runs as `gccli records`. - `gccli records types`: List personal record types. - `gccli records activity <id>`: List the personal records set in an activity. - `<id>`: Activity ID. - `gccli records candidates list`: List the personal record candidates that wait for your review. Also runs as `gccli records candidates`. - `gccli records candidates accept <id>`: Accept a personal record candidate as a personal record. - `<id>`: Candidate ID, as records candidates prints it. - `gccli records candidates dismiss <id> [flags]`: Dismiss a personal record candidate. This cannot be undone. - `<id>`: Candidate ID, as records candidates prints it. - `-f, --force`: Skip confirmation prompt. - `gccli records hide <type-id>`: Hide a personal record type on the records page. - `<type-id>`: Record type ID, as records types prints it. - `gccli records unhide <type-id>`: Show a hidden personal record type on the records page again. - `<type-id>`: Record type ID, as records types prints it. - `gccli records delete <id> [flags]`: Delete a personal record. This cannot be undone. - `<id>`: Personal record ID, as records list prints it. - `-f, --force`: Skip confirmation prompt. ### Events - `gccli events list [flags]`: List calendar events. Also runs as `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. - `gccli events upcoming`: List upcoming events. - `gccli events add --name=FREE-TEXT --date=DATE --type=STRING [flags]`: Add a calendar event. - `-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. - `gccli events delete <id> [fla
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.