{"id":15487960,"url":"https://github.com/dblock/strava-ruby-cli","last_synced_at":"2025-09-20T05:32:53.488Z","repository":{"id":59156564,"uuid":"164448166","full_name":"dblock/strava-ruby-cli","owner":"dblock","description":"Strava command-line client.","archived":false,"fork":false,"pushed_at":"2020-06-06T00:25:36.000Z","size":19,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-09T20:09:52.271Z","etag":null,"topics":["strava","strava-api"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dblock.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-07T14:55:43.000Z","updated_at":"2022-12-05T21:21:26.000Z","dependencies_parsed_at":"2022-09-13T20:10:51.630Z","dependency_job_id":null,"html_url":"https://github.com/dblock/strava-ruby-cli","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Fstrava-ruby-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Fstrava-ruby-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Fstrava-ruby-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Fstrava-ruby-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dblock","download_url":"https://codeload.github.com/dblock/strava-ruby-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233566907,"owners_count":18695286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["strava","strava-api"],"created_at":"2024-10-02T06:45:10.527Z","updated_at":"2025-09-20T05:32:53.165Z","avatar_url":"https://github.com/dblock.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Strava Command-Line Client\n==========================\n\n[![Gem Version](https://badge.fury.io/rb/strava-ruby-cli.svg)](https://badge.fury.io/rb/strava-ruby-cli)\n[![Build Status](https://travis-ci.org/dblock/strava-ruby-cli.svg?branch=master)](https://travis-ci.org/dblock/strava-ruby-cli)\n\nA command-line client for Strava [Strava API v3](https://developers.strava.com).\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Authentication](#authentication)\n  - [Run Commands](#run-commands)\n  - [Strava Console](#strava-console)\n- [Contributing](#contributing)\n- [Copyright and License](#copyright-and-license)\n\n## Installation\n\n```\ngem install 'strava-ruby-cli'\n```\n\n## Usage\n\n### Authentication\n\nStrava commands require a Strava _Client ID_ and _Client Secret_ from [Your API Application](https://www.strava.com/settings/api). The command-line tool with prompt you for these or you can supply them with `--client_id` and `--client_secret` options. You can also adjust access scope with `--scope`.\n\nThe client will fetch an access token. This will open a new browser window, navigate to Strava, request the appropriate permissions, then handle OAuth in a local redirect. The token type, refresh token, access token and token expiration will be displayed in the browser and subsequently used.\n\nYou can note the access token and supply it via `--access_token` to avoid being prompted in the future.\n\n### Run Commands\n\nUse `strava run` to execute commands against the Strava API. Everything in [strava-ruby-client](https://github.com/dblock/strava-ruby-client) is supported.\n\n```bash\n$ strava run athlete.username\n\ndblockdotorg\n```\n\nBecause this is Ruby, you can could fetch all currently logged-in athlete attributes in JSON.\n\n```bash\n$ strava run athlete.to_json\n\n{\"id\":26462176,\"username\":\"dblockdotorg\", ...}\n```\n\nTo retrieve activities you need the `activity:read` scope.\n\n```bash\n$ strava --scope=activity:read run athlete_activities.first.name\n\nTCS NYC Marathon 2018\n```\n\n### Strava Console\n\nUse `strava console` to explore the Strava API interactively.\n\n```bash\n$ strava console\n\nStrava\u003e athlete.name\n\n\"Daniel Doubrovkine\"\n```\n\n## Contributing\n\nSee [CONTRIBUTING](CONTRIBUTING.md).\n\n## Copyright and License\n\nCopyright (c) 2019, [Daniel Doubrovkine](https://twitter.com/dblockdotorg) and [Contributors](CHANGELOG.md).\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdblock%2Fstrava-ruby-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdblock%2Fstrava-ruby-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdblock%2Fstrava-ruby-cli/lists"}