Skip to content

Commit

Permalink
Merge pull request #3673 from elizaOS/odi-fix4
Browse files Browse the repository at this point in the history
fix: fix CLI install
  • Loading branch information
shakkernerd authored Feb 26, 2025
2 parents 5b21cc7 + 5aefdc8 commit f3659a5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ program
.description('elizaOS CLI - Manage your plugins')
.version(version);

const plugins = new Command()
const pluginsCmd = new Command()
.name('plugins')
.description('manage elizaOS plugins')

Expand All @@ -37,7 +37,7 @@ async function getPlugins() {



plugins
pluginsCmd
.command('list')
.alias('l')
.alias('ls')
Expand All @@ -60,7 +60,7 @@ plugins
}
})

plugins
pluginsCmd
.command('add')
.alias('install')
.description('add a plugin')
Expand All @@ -75,7 +75,7 @@ plugins
return
}


const plugins = await getPlugins()
const repoData = plugins[plugin]?.split(':')
if (!repoData) {
console.error('Plugin', plugin, 'not found')
Expand Down Expand Up @@ -129,7 +129,7 @@ plugins
console.log('Remember to add it to your character file\'s plugin field: ["' + plugin + '"]')
})

plugins
pluginsCmd
.command('remove')
.alias('delete')
.alias('del')
Expand Down Expand Up @@ -172,6 +172,6 @@ plugins
})


program.addCommand(plugins)
program.addCommand(pluginsCmd)

program.parse(process.argv)

0 comments on commit f3659a5

Please sign in to comment.