Metadata-Version: 2.4
Name: strava-client-cli
Version: 0.1.0
Summary: CLI tool for interacting with the Strava API
Project-URL: Homepage, https://github.com/geodeterra/strava-cli
Project-URL: Repository, https://github.com/geodeterra/strava-cli
Author-email: Geo Deterra <geo.deterra@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: cli,cycling,fitness,running,strava
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet :: WWW/HTTP
Requires-Python: >=3.11
Requires-Dist: httpx>=0.27.0
Requires-Dist: rich>=13.0.0
Requires-Dist: typer>=0.9.0
Description-Content-Type: text/markdown

# strava-cli

CLI tool for interacting with the Strava API.

## Install

```bash
uv pip install -e .
```

## Setup

1. Create a Strava API app at https://www.strava.com/settings/api
2. Set callback URL to `http://localhost`
3. Run `strava auth` and follow the prompts

## Commands

| Command | Description |
|---------|-------------|
| `strava auth` | OAuth2 setup flow |
| `strava profile` | Show athlete profile |
| `strava stats` | Athlete stats summary |
| `strava activities` | List recent activities |
| `strava activity <id>` | Detailed activity view |
| `strava export` | Bulk export activities |

## Usage

```bash
# List last 10 activities
strava activities --limit 10

# Filter by type and date
strava activities --type Run --after 2024-01-01

# View a specific activity
strava activity 12345678

# Export activities to JSON
strava export --output ./export --format json --after 2024-01-01
```

## Token Management

Tokens are stored in `~/.config/strava-cli/tokens.json` and automatically refreshed when expired (every 6 hours).
