Skip to main content
Version: 1.0.0-beta

ElizaOS CLI

The ElizaOS Command Line Interface (CLI) provides a comprehensive set of tools to create, manage, and interact with ElizaOS projects and agents.

Installation

Install the ElizaOS CLI globally using npm:

npm install -g @elizaos/cli

Or use it directly with npx:

npx @elizaos/cli [command]

Available Commands

CommandDescription
createCreate new projects, plugins, or agents
startStart an ElizaOS project or agent
devRun a project in development mode with hot reloading
agentManage agent configurations and state
pluginManage plugins in your project
projectManage project configuration and settings
envConfigure environment variables and API keys
publishPublish packages to npm registry
updateUpdate ElizaOS components
testRun tests for your project

Quick Start

Creating a new project

# Create a new project using the interactive wizard
npx @elizaos/cli create

# Or specify a name directly
npx @elizaos/cli create my-agent-project

Starting a project

# Navigate to your project directory
cd my-agent-project

# Start the project
npx @elizaos/cli start

Development mode

# Run in development mode with hot reloading
npx @elizaos/cli dev

Global Options

These options apply to most commands:

OptionDescription
--help, -hDisplay help information
--version, -vDisplay version information
--debugEnable debug logging
--quietSuppress non-essential output
--jsonOutput results in JSON format

Working with Projects

ElizaOS organizes work into projects, which can contain one or more agents along with their configurations, knowledge files, and dependencies. The CLI provides commands to manage the entire lifecycle of a project:

  1. Create a new project with create
  2. Configure settings with env
  3. Develop using dev for hot reloading
  4. Test functionality with test
  5. Start in production with start
  6. Share by publishing with publish

Working with Plugins

Plugins extend the functionality of your agents. Manage them with the plugin command:

# Add a plugin to your project
npx @elizaos/cli plugin add @elizaos/plugin-discord

# Remove a plugin
npx @elizaos/cli plugin remove @elizaos/plugin-discord

# List installed plugins
npx @elizaos/cli plugin list

Environment Configuration

Configure your API keys and environment variables with the env command:

# Set OpenAI API key
npx @elizaos/cli env set OPENAI_API_KEY your-api-key

# List all environment variables
npx @elizaos/cli env list