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 directly
sweatstack page deploy my-page ./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.7.2.tar.gz (74.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.7.2-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sweatstack_cli-0.7.2.tar.gz
Algorithm Hash digest
SHA256 e7e2db1515e2c6b26b7d701cf11a5e7a5000651a8fef51ec83e700685be4c1b2
MD5 cdeb9f7331a4a67c7acf27c49faaa473
BLAKE2b-256 e359511bedbe02b7705802cee2e69c4050150d8a2bd3a028df3be7a4078378e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sweatstack_cli-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fb92b9009ca097514da39f6734ee1dd775e467442c54bf5d507048dedbc6b11c
MD5 f5d2eb9035bfa4b7949a857fc5184db4
BLAKE2b-256 5485da99006567a363e6c35f468bbd647fa02fca5a99c9d01f31ce082177dd99

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