Create Command
The create
command is used to scaffold new ElizaOS projects or plugins. It guides you through an interactive setup process to generate the appropriate files and configurations.
Usage
npx @elizaos/cli create [options]
Options
Option | Description |
---|---|
--dir , -d | Installation directory (defaults to project name in current directory) |
--yes , -y | Skip confirmation prompts |
--type , -t | Type to create: project or plugin |
Project Types
Project
A standard ElizaOS project with agent configuration, knowledge setup, and essential components.
npx @elizaos/cli create --type project
This creates a complete project structure:
my-agent-project/
├── knowledge/ # Knowledge files for RAG
├── src/ # Source code directory
├── package.json
└── other configuration files
Plugin
A plugin that extends ElizaOS functionality with custom actions, services, providers, or other extensions.
npx @elizaos/cli create --type plugin
This creates a plugin structure:
my-plugin/
├── src/ # Plugin source code
├── package.json
└── other configuration files
Interactive Process
When run without all options specified, the command launches an interactive wizard:
- Project Type: If not specified, select between project or plugin
- Project Name: Enter a name for your project or plugin
- Database Selection: For projects, choose your database (PGLite or Postgres)
- Database Configuration: For Postgres, you'll be prompted for your database URL
Examples
Creating a basic project
npx @elizaos/cli create
# Then follow the interactive prompts
Creating a plugin
npx @elizaos/cli create --type plugin
# Then follow the interactive prompts
Specifying a directory
npx @elizaos/cli create --dir ./my-projects/new-agent
Skipping confirmation prompts
npx @elizaos/cli create --yes
After Creation
Once your project is created:
-
Navigate to the project directory:
cd my-project-name
-
Start your project:
npx @elizaos/cli start
Or start in development mode:
npx @elizaos/cli dev
-
Visit
http://localhost:3000
to view your project in the browser
For plugins, you can:
-
Start development:
npx @elizaos/cli start
-
Test your plugin:
npx @elizaos/cli test
-
Publish your plugin:
npx @elizaos/cli plugins publish