Metadata-Version: 2.4
Name: agencycore-cli
Version: 0.12.0
Summary: AgencyCore CLI — manage your CRM, outreach, and more from the terminal
Project-URL: Homepage, https://github.com/AlterityNetwork/ac-cli
Project-URL: Repository, https://github.com/AlterityNetwork/ac-cli
Project-URL: Issues, https://github.com/AlterityNetwork/ac-cli/issues
Author-email: AlterityNetwork <dev@agencycore.dev>
License-Expression: MIT
License-File: LICENSE
Keywords: agencycore,cli,crm,pipeline,sales
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Office/Business
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27
Requires-Dist: rich>=13.0
Requires-Dist: socksio>=1.0.0
Requires-Dist: supabase>=2.0
Requires-Dist: typer>=0.9
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: respx>=0.22; extra == 'dev'
Description-Content-Type: text/markdown

# AgencyCore CLI

Command-line interface for [AgencyCore](https://agencycore.dev) — manage your CRM, outreach sequences, and pipeline from the terminal.

## Install

```bash
pip install agencycore-cli
```

Or with [uv](https://docs.astral.sh/uv/):

```bash
uv pip install agencycore-cli
```

Requires Python 3.10+.

## Quick Start

```bash
# Log in (connects to AgencyCore staging by default)
ac login

# Use --dev for local development
ac login --dev

# Check your identity
ac whoami

# Check API health
ac health check
```

## CRM Commands

```bash
# Companies
ac crm companies list
ac crm companies get <id>
ac crm companies create --name "Acme Corp" --industry Technology

# People (Contacts)
ac crm people list
ac crm people create --email jane@acme.com --full-name "Jane Smith"

# Deals
ac crm deals list
ac crm deals create --name "Enterprise Deal" --stage qualified --amount 50000
ac crm deals move <id> --stage negotiation

# Activities
ac crm activities list --status pending
ac crm activities create --type call --title "Follow up" --due-date 2026-03-20

# Communications
ac crm comms unread
ac crm comms draft-email --contact-id <id> --subject "Hello" --content "..."

# Search & Dashboard
ac crm search "acme"
ac crm dashboard --period 30

# Lists & Import
ac crm lists list
ac crm import preview --file contacts.json
```

## Envoy (Outreach)

```bash
ac envoy sequences list
ac envoy outbox pending
ac envoy dashboard
```

## Output Modes

All commands support rich table output (default) or JSON for scripting:

```bash
ac crm deals list                          # Pretty tables
ac crm --json deals list                   # Raw JSON
ac crm --json deals list | jq '.[].name'   # Pipe to jq
```

## Development

```bash
git clone https://github.com/AlterityNetwork/ac-cli.git
cd ac-cli
uv sync --all-extras
uv run pytest
```

## License

MIT
