Skip to main content
The CNAP CLI provides terminal-based access to all API operations with interactive pickers, streaming logs, and shell access to running pods.

Quick Start

1

Install

2

Log in

This opens your browser for approval, then stores a session token in ~/.cnap/config.yaml.
For CI/CD, use cnap auth login --token cnap_pat_... with a Personal Access Token. You can also set the CNAP_API_TOKEN environment variable.
3

Run your first command

Authentication

Sessions are long-lived and auto-refresh on use.

Output Formats

The -o / --output flag is available on all commands.

Pagination

List commands accept --limit and --cursor flags for pagination:
Default limit is 50, maximum is 100.

Configuration

The CLI stores configuration in ~/.cnap/config.yaml:

Environment Variables

Debugging

Enable verbose output with the --debug flag or CNAP_DEBUG=1:
This shows HTTP request/response details for troubleshooting.

API Reference

REST API conventions, pagination, and error codes

AI & Agents

Manage CNAP through AI agents and MCP servers