Metadata-Version: 2.5
Name: solti-cli
Version: 0.1.5
Summary: Solti Platform CLI — schedule and run asynchronous workloads without managing infrastructure.
Project-URL: Homepage, https://solti.run
Project-URL: Documentation, https://docs.solti.run
Author-email: Solti <support@solti.run>
License-Expression: MIT
License-File: LICENSE
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# Solti CLI

Command-line interface for the [Solti Platform](https://solti.run) — schedule and run asynchronous workloads without managing infrastructure.

**Packages:** `@solti/cli` (npm) · `solti-cli` (PyPI) · **License:** MIT

## Installation

```bash
brew install trysolti/tap/solti
```

Or via Node.js (>= 20) with npm / pnpm:

```bash
npm install -g @solti/cli
# or: pnpm add -g @solti/cli
```

Or via pip / uv (requires Node.js >= 20 on your PATH):

```bash
pip install solti-cli
# or: uv add solti-cli
```

## Quickstart

```bash
solti account login        # opens your browser — sign in once
solti organization list
solti project list
solti profile set default --project-id <your-project-id>
solti job run --image alpine:latest -- echo "Hello from Solti!"
```

Headless / CI usage (no login required):

```bash
export SOLTI_API_KEY=<your-api-key>
export SOLTI_PROJECT_ID=<your-project-id>
solti job list
```

## Configuration

State is stored under `~/.solti/`:

```
~/.solti/
├── active.json                      # active account + active profile
└── accounts/
    └── <email>/
        ├── auth.json                # OAuth tokens (0600)
        └── profiles/
            └── <profile>/config.json
```

## Development

```bash
pnpm install
pnpm build
node dist/index.js --help
```

### PyPI packaging (Change 069)

The `solti-cli` Python package vendors a self-contained Node bundle. To
rebuild it after a code change:

```bash
pnpm build && pnpm bundle:python
uv build
```
