open-index/open-npm huggingface dataset:
npm package: @supaworks/cli
Description: Terminal-based API key management for SUPA
Author: SUPA
Latest version: 0.1.1

# @supa/cli

Terminal-based API key management for [SUPA](https://supa.works).

## Installation

```bash
npm install -g @supa/cli
```

## Usage

### Authentication

```bash
# Sign in to your SUPA account
supa login

# Sign out
supa logout
```

### API Key Management

```bash
# List all API keys
supa keys list

# Create a new API key
supa keys create --name "My Key"
supa keys create --name "Expiring Key" --expires-in 30  # expires in 30 days

# Delete an API key
supa keys delete <key-id>

# Enable an API key
supa keys enable <key-id>

# Disable an API key
supa keys disable <key-id>
```

## Configuration

By default, the CLI connects to `https://app.supa.works`. You can override this for local development:

```bash
SUPA_API_URL=http://localhost:5173 supa login
```

## Session

Your session is stored in `~/.supa/session.json`. Run `supa logout` to clear it.

## Requirements

- Node.js >= 22.0.0