Skip to main content
Version: 1.0.0-beta

Project Command

The project command helps you manage ElizaOS projects, including their plugins and configurations.

Usage

npx @elizaos/cli project <action> [options]

Actions

ActionDescription
list-pluginsList available plugins to install into the project
add-pluginAdd a plugin to the project
remove-pluginRemove a plugin from the project

Managing Plugins

Listing Available Plugins

View all plugins that are available to install:

npx @elizaos/cli project list-plugins

You can filter the results by type:

npx @elizaos/cli project list-plugins --type adapter

Options for list-plugins

OptionDescription
-t, --type <type>Filter by type (adapter, client, plugin)

Adding Plugins

Add a plugin to your project:

npx @elizaos/cli project add-plugin @elizaos/plugin-discord

This will:

  1. Find the plugin in the registry
  2. Install the plugin into your project
  3. Add it to your project's dependencies

Options for add-plugin

OptionDescription
--no-env-promptSkip prompting for environment variables

Removing Plugins

Remove a plugin from your project:

npx @elizaos/cli project remove-plugin @elizaos/plugin-discord

This will:

  1. Uninstall the plugin from your project
  2. Remove it from your project's dependencies

Examples

Discovering and installing plugins

# List all available plugins
npx @elizaos/cli project list-plugins

# Install a specific plugin
npx @elizaos/cli project add-plugin @elizaos/plugin-telegram

Managing multiple plugins

# Add multiple plugins
npx @elizaos/cli project add-plugin @elizaos/plugin-discord
npx @elizaos/cli project add-plugin @elizaos/plugin-pdf

# Remove a plugin you no longer need
npx @elizaos/cli project remove-plugin @elizaos/plugin-pdf

Plugin Configuration

After adding a plugin, you'll need to configure it in your project's code:

// In your src/index.ts file
import { createProject } from '@elizaos/core';
import { discordPlugin } from '@elizaos/plugin-discord';

const project = createProject({
name: 'my-project',
plugins: [
discordPlugin, // Use the imported plugin
],
// Plugin-specific configuration
discord: {
token: process.env.DISCORD_BOT_TOKEN,
guildId: process.env.DISCORD_GUILD_ID,
},
});

export default project;

Troubleshooting

Plugin Not Found

If a plugin can't be found in the registry:

Plugin @elizaos/plugin-name not found in registry

Check for:

  1. Typos in the plugin name
  2. Network connectivity issues
  3. Registry availability

Installation Problems

If a plugin fails to install:

  1. Check that you have the necessary permissions
  2. Ensure you have a stable internet connection
  3. Check for compatibility issues with your project
  • create: Create a new project from scratch
  • plugin: Manage plugin publishing
  • start: Start your project
  • dev: Run your project in development mode