Skip to main content

A command-line interface for managing LlamaDeploy projects and deployments

Project description

llamactl

llamactl is the CLI for developing LlamaAgents apps locally and managing their LlamaCloud deployments.

For the full guide, see the LlamaAgents llamactl docs.

Installation

Install globally with uv:

uv tool install -U llamactl

Or pin it to a project:

uv add --dev llamactl

Quick Start

Create or select an auth profile:

llamactl auth login

If browser login is not available, use an API key:

llamactl auth token --api-key "$LLAMA_CLOUD_API_KEY" --project "$LLAMA_AGENTS_PROJECT_ID"

Scaffold and run an app:

llamactl init
cd my-app
llamactl serve

Create a cloud deployment:

llamactl deployments create

Inspect it and stream logs:

llamactl deployments get
llamactl deployments get NAME
llamactl deployments logs NAME --follow

For declarative deployments:

llamactl deployments template > deployment.yaml
llamactl deployments apply -f deployment.yaml

Command Groups

  • llamactl auth: log in, create API-key profiles, and switch profiles.
  • llamactl environments: list, add, inspect, and switch LlamaCloud API environments.
  • llamactl projects: list and select projects.
  • llamactl organizations: list organizations.
  • llamactl deployments: create, apply, edit, update, inspect, delete, roll back, and stream deployment logs.
  • llamactl init: create a new LlamaAgents project from a starter template.
  • llamactl serve: run the local app server and optional frontend dev server.
  • llamactl pkg: generate container build files for self-hosted deployments.
  • llamactl completion: generate or install shell completions.
  • llamactl agentcore: run or export AgentCore apps.

Configuration

llamactl auth login and llamactl auth token create local auth profiles. A profile stores the active API environment, project, and credential used by deployment commands.

For CI and other non-interactive environments, set env vars instead of using a profile:

export LLAMA_CLOUD_API_KEY="llx-..."
export LLAMA_AGENTS_PROJECT_ID="project-id"

LLAMA_CLOUD_BASE_URL can point the CLI at a non-default environment. When both LLAMA_CLOUD_API_KEY and LLAMA_AGENTS_PROJECT_ID are set, env var auth takes precedence over the stored profile for cloud commands. Many commands also accept --project to override the active project for that invocation.

Shell Completion

Install completions for your current shell:

llamactl completion install

Or print a completion script:

llamactl completion generate zsh

Requirements

  • Python 3.12+
  • uv for project dependency management
  • git for cloud deployments

License

MIT

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llamactl-0.10.3.tar.gz (81.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llamactl-0.10.3-py3-none-any.whl (106.8 kB view details)

Uploaded Python 3

File details

Details for the file llamactl-0.10.3.tar.gz.

File metadata

  • Download URL: llamactl-0.10.3.tar.gz
  • Upload date:
  • Size: 81.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llamactl-0.10.3.tar.gz
Algorithm Hash digest
SHA256 1f92281f3082cc9ddabb755d89a2f5fab38ef6c168a0d9a9a9ebd4fc9a5f09a2
MD5 9dce33d8120511728dc66007adca3239
BLAKE2b-256 93506061065120bf689e4fe7e7ef1f9f2bdaaa0435cecc7692eb3b64afef0dc3

See more details on using hashes here.

File details

Details for the file llamactl-0.10.3-py3-none-any.whl.

File metadata

  • Download URL: llamactl-0.10.3-py3-none-any.whl
  • Upload date:
  • Size: 106.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llamactl-0.10.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b572a4dd7c6f0a45c2716fe1583801dc0e071c7e93f299a4fea3c9f5f399578f
MD5 1afea6d420f41b4d1751399331472735
BLAKE2b-256 275f61877566671f7988d9b0ebb436119c784e4faf8bc7b120fa2e0d3c58b964

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page