Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sweatstack_cli-0.10.0.tar.gz (76.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sweatstack_cli-0.10.0-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file sweatstack_cli-0.10.0.tar.gz.

File metadata

  • Download URL: sweatstack_cli-0.10.0.tar.gz
  • Upload date:
  • Size: 76.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.10

File hashes

Hashes for sweatstack_cli-0.10.0.tar.gz
Algorithm Hash digest
SHA256 a072662388e0c86ee51049147c8ee674cf9fa78aa0ed3e5633d87156e3f761b8
MD5 1ef6812d5ff12160f7dedce72541dab5
BLAKE2b-256 b4a483fb98183d72c034c7afa410256a120e1d1078ca38e5bf222a6a111a83c5

See more details on using hashes here.

File details

Details for the file sweatstack_cli-0.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sweatstack_cli-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a0e7ea86186a2f5d6ee0ff3d85e81c105ac3e78f8494054446be7b47138ec23
MD5 85ca071bce77c4efcf0698c759f70384
BLAKE2b-256 566cc8f707513674f80e91dcc3a76df8684b13370112ed1e616df3de5682e3a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page