# Apideck CLI

An OpenAPI-native command-line interface for the Apideck Unified APIs. Built for both human developers and AI coding agents that need a deterministic way to call the API.

## Install

```bash
brew install apideck-libraries/tap/apideck
```

Or see the [releases page](https://github.com/apideck-libraries/cli/releases) for binaries.

## Configure

```bash
apideck config set --api-key <YOUR_API_KEY>
apideck config set --app-id <YOUR_APP_ID>
apideck config set --consumer-id <YOUR_CONSUMER_ID>
```

## Use

```bash
# List CRM contacts from Salesforce
apideck crm contacts list --service-id salesforce

# Get a specific invoice
apideck accounting invoices one --service-id xero --id inv_123
```

Every OpenAPI operation is available as a subcommand. Run `apideck <api> <resource> --help` to see all options.

## Resources

- Source: https://github.com/apideck-libraries/cli
- [MCP Server](https://developers.apideck.com/mcp.md) for agents that prefer JSON-RPC over shell
- [Get an API key](https://developers.apideck.com/get-started.md)
