Command-line interface for SweatStack — the sports data platform for developers
Project description
SweatStack CLI
Command-line interface for SweatStack — the sports data platform for developers.
Installation
Requires Python 3.11+. We recommend uv for installation.
# Run directly without installing
uvx sweatstack-cli
# Or install as a tool
uv tool install sweatstack-cli
# Or with pip
pip install sweatstack-cli
To upgrade:
uv tool upgrade sweatstack-cli
To reinstall (e.g. after a broken install or Python version change):
uvx --reinstall sweatstack-cli
# or if installed as a tool
uv tool install --reinstall sweatstack-cli
Quick Start
# Authenticate with SweatStack
sweatstack login
# Create an app and deploy
sweatstack app create "My App" --page my-page --env
sweatstack page deploy
Commands
Authentication
| Command | Description |
|---|---|
sweatstack login |
Authenticate via browser (OAuth2 PKCE) |
sweatstack login --force |
Force re-authentication |
sweatstack logout |
Remove stored credentials |
sweatstack status |
Show auth status, user info, and version |
sweatstack --version |
Show version and check for updates |
Application Management
| Command | Description |
|---|---|
sweatstack app create NAME |
Create a new private OAuth2 application |
sweatstack app link |
Link current directory to an existing application |
app create options
| Option | Description |
|---|---|
--description, -d TEXT |
Application description (max 500 chars) |
--page, -p SLUG |
Associate with a SweatStack Page |
--secret, -s |
Generate a client secret |
--env |
Write credentials to .env |
--env-file PATH |
Write credentials to a specific file |
--json |
Output as JSON |
app link options
| Option | Description |
|---|---|
--force, -f |
Overwrite existing sweatstack.toml |
Project Configuration
Both app create and app link generate a sweatstack.toml in the current directory. Other commands read defaults from this file.
[app]
name = "My App"
client_id = "abc123"
[page]
slug = "my-page"
directory = "dist"
Page Deployment
Deploy static sites to SweatStack Pages.
# Deploy using sweatstack.toml defaults (recommended)
sweatstack page deploy
# Or specify slug and directory explicitly
sweatstack page deploy my-page --dir ./dist
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sweatstack_cli-0.8.0.tar.gz.
File metadata
- Download URL: sweatstack_cli-0.8.0.tar.gz
- Upload date:
- Size: 75.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
042b721da4ff60e9cee9ed3eb9f0522efe1d64120ae36bc3813973842adb6761
|
|
| MD5 |
2ccf47eb1bf18e1f51d412d6c6cb0ca9
|
|
| BLAKE2b-256 |
b9d9c7b17b464af2483c1d382a83129b6f12e0cff47fd9f3d636b63325281f37
|
File details
Details for the file sweatstack_cli-0.8.0-py3-none-any.whl.
File metadata
- Download URL: sweatstack_cli-0.8.0-py3-none-any.whl
- Upload date:
- Size: 24.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70f20dd55d32b8fd3741d1e968e16803e11f29d9f6dbab98d3b745b05e423767
|
|
| MD5 |
ec65cd4cd06b7a8978d0b290592066d9
|
|
| BLAKE2b-256 |
b38e50e6e1fb7ac0cbb0d7b7d2020dfacf007bc03444024e52e2f564b6e1ff89
|