Upload FIT, TCX and GPX files to strava.com from the command line.
- POSIX shell
- cURL
- Python 3
- Sign up at http://www.strava.com/
- Register your own Strava client at https://www.strava.com/settings/api
- Create a .stravauprc file in your home directory:
STRAVAUP_CLIENT_ID=FIXME
STRAVAUP_CLIENT_SECRET=FIXME
- Get your authorization code
On the first run of the program, you will be prompted to visit a URL
with your browser and click
Authorize
. The browser must be running on the same computer as the stravaup script. Alternatively, after clicking onAuthorize
, copy thecode
parameter from the redirect URL into your .stravauprc:
STRAVAUP_CODE=FIXME
Upload a single file:
stravaup file.fit
Use find and xargs to upload everything:
find -iname \*.fit | xargs stravaup
Strava API reference https://strava.github.io/api/