Metadata-Version: 2.4
Name: diagrid-cli
Version: 0.2.3
Summary: Diagrid CLI - Command-line interface for Diagrid Catalyst agents
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: diagrid-core>=0.1.0
Requires-Dist: click>=8.1.0
Requires-Dist: rich>=13.0.0

# Diagrid CLI

The Diagrid CLI (`diagrid-cli`) is a command-line tool for managing Diagrid Catalyst resources, deploying agents, and handling infrastructure tasks.

## Community

Have questions, hit a bug, or want to share what you're building? Join the [Diagrid Community Discord](https://diagrid.ws/diagrid-community) to connect with the team and other users.

## Installation

The CLI is installed automatically when you install the main `diagrid` package. You can also install it standalone:

```bash
pip install diagrid-cli
```

## Usage

The CLI provides several command groups for different tasks. Run `diagrid --help` to see all available commands.

### Common Commands

#### Initialization
Initialize a new Diagrid Catalyst project.

```bash
diagrid init
```

#### Deployment
Deploy your agent to a target environment.

```bash
# Deploy to the currently configured context
diagrid deploy
```

#### Infrastructure
Manage local development infrastructure using Kind (Kubernetes in Docker) and Helm.

```bash
# Check if required tools (Docker, Helm, Kind, Kubectl) are installed
diagrid infra check

# Set up a local development cluster
diagrid infra setup
```

## Configuration

The CLI manages configuration and authentication contexts.

- **Authentication:** Supports API key and device code authentication flows for connecting to Diagrid Catalyst.
- **Contexts:** Switch between different environments (e.g., local, dev, prod).
