---
title: Inference CLI Reference
description: doctl command groups for managing serverless inference, dedicated inference endpoints, and agent knowledge bases.
product: Inference
url: https://docs.digitalocean.com/products/inference/reference/cli/
last_updated: "2026-09-30"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# Inference CLI Reference

Inference provides a single control plane for managing inference workflows. It includes a Model Catalog where you can view available foundation models, including both DigitalOcean-hosted and third-party commercial models, compare model capabilities and pricing, use routing to match inference requests to the best-fit model, and run inference using serverless or dedicated deployments.

[`doctl`](https://github.com/digitalocean/doctl) is the command-line interface for the DigitalOcean API. It supports most of the same actions available in the API and DigitalOcean Control Panel.

The Inference `doctl` commands are organized into the following groups:

- [Dedicated Inference](https://docs.digitalocean.com/reference/doctl/reference/dedicated-inference/index.html.md): Create, list, update, and delete dedicated inference endpoints, and manage their accelerators, sizes, GPU model configuration, and access tokens. Dedicated Inference is available in [public preview](https://docs.digitalocean.com/platform/product-lifecycle/index.html.md#public-preview). You can opt in from the [**Feature Preview** page](https://cloud.digitalocean.com/account/feature-preview).
- [Serverless Inference](https://docs.digitalocean.com/reference/doctl/reference/serverless-inference/index.html.md): Call models for chat completions, embeddings, images, messages, and responses, start and retrieve asynchronous invocations, list available models and regions, and manage OpenAI API keys.
- [Knowledge Base](https://docs.digitalocean.com/reference/doctl/reference/knowledge-base/index.html.md): Create, list, update, and delete agent knowledge bases, attach and detach them from agents, manage their data sources, and run indexing jobs.

Batch Inference has no `doctl` commands. Use the [Batch Inference API](https://docs.digitalocean.com/reference/api/reference/batch-inference/index.html.md) instead.

For the full command tree, including groups outside Inference, see the [`doctl` reference](https://docs.digitalocean.com/reference/doctl/reference/index.html.md). Run any command with `--help` for its options and flags.

To install and authenticate `doctl`, see [How to Install and Configure doctl](https://docs.digitalocean.com/reference/doctl/how-to/install/index.html.md).