Skip to content

Instantly share code, notes, and snippets.

View SaturnXIII's full-sized avatar
🌌

AthenaXIII SaturnXIII

🌌
View GitHub Profile
@michaellihs
michaellihs / strava_cli.md
Last active January 3, 2026 18:39
Upload tracks to Strava from the Command Line

Upload GPS Tracks to Strava from your Command Line

This short tutorial describes how to upload GPS tracks to Strava using your command line interface / shell. It requires no special tools or any 3rd party code.

1. Generate an API Key

Run the following steps with your user logged in to Strava in your browser!

Strava uses OAuth to authenticate against 3rd party applications. In order to authenticate to your Strava account from your command line, you first have to generate an API key. Therefore go to this page https://strava.github.io/api/v3/oauth/ and create a new API. The settings are as follows: