Plugin Command

Add and remove plugins with automatic manic.config updates.

manic plugin

Use manic plugin to manage plugin packages and keep manic.config.ts in sync.

bunx manic plugin <add|remove|list> [package-name]

Commands

List

bunx manic plugin list

Shows plugins currently configured in plugins: [] (resolved from imports in manic.config.ts/js).

Add

bunx manic plugin add @manicjs/seo

What happens:

  1. Installs package with bun add.
  2. Updates manic.config.ts (or manic.config.js):
    • adds import for the package
    • adds plugin call in plugins: []

Remove

bunx manic plugin remove @manicjs/seo

What happens:

  1. Uninstalls package with bun remove.
  2. Updates manic.config.ts / .js:
    • removes imports from that package
    • removes plugin call(s) in plugins: []

Notes

  • This command requires a config file in the current working directory:
    • manic.config.ts or manic.config.js
  • If a package has unusual exports, review generated import/call once.

Examples

# Add two plugins
bunx manic plugin add @manicjs/mcp
bunx manic plugin add @manicjs/sitemap

# Remove one plugin
bunx manic plugin remove @manicjs/sitemap

On this page