# FlightDesk CLI

The command-line interface for [FlightDesk](https://flightdesk.dev) — AI task management for Claude Code sessions.

## What is FlightDesk?

FlightDesk helps development teams track and manage work performed by Claude Code remote sessions. It provides:

- Task lifecycle tracking from dispatch to merged PR
- Automated branch detection via GitHub webhooks
- Multi-organization support for developers working across clients
- Integration with GitHub, SonarQube, and other review tools
- Preview environment management

Learn more at **[flightdesk.dev](https://flightdesk.dev)**

## Installation

```bash
npm install -g flightdesk
```

## Quick Start

```bash
# Configure your FlightDesk API credentials
flightdesk init

# Register a Claude Code session with a task
claude --remote "Fix the auth bug" | flightdesk register <project-id>

# Check task status
flightdesk status
```

## Commands

| Command | Description |
|---------|-------------|
| `flightdesk init` | Configure API credentials |
| `flightdesk register` | Register a session with a task |
| `flightdesk task` | Create, list, and manage tasks |
| `flightdesk status` | Show status of all active tasks |
| `flightdesk prompt` | Get prompts ready to paste into Claude |
| `flightdesk org` | Manage organization connections |
| `flightdesk context` | Show current repo/org mapping |
| `flightdesk sync` | Refresh project-to-repo mappings |
| `flightdesk project` | Project management commands |
| `flightdesk preview` | Preview environment management |

## Multi-Organization Support

Developers working across multiple clients can connect multiple FlightDesk organizations:

```bash
# List connected organizations
flightdesk org list

# Switch active organization
flightdesk org switch <name>

# Check which org maps to current repo
flightdesk context
```

The CLI automatically routes tasks to the correct organization based on the Git repository you're working in.

## Documentation

Full documentation available at **[flightdesk.dev/docs](https://flightdesk.dev/docs)**

## License

This software is proprietary. See [flightdesk.dev](https://flightdesk.dev) for licensing information.
