Skip to content
BENIBIX Learn

--plugin-dir Flag

Also known as claude --plugin-dir, --plugin-url

It loads a plugin from a folder for one session.

Think of it like

It is like you try on a coat in the shop before you buy it.

Example

Lucy is building a plugin. After each change she starts claude --plugin-dir ./my-plugin to try it. There is nothing to install or remove.

Why it matters

You can test a plugin or try someone else's without changing your setup.

Definition

--plugin-dir loads a plugin from a folder or a .zip file, for this session only. Give one path per flag, and repeat the flag for more. --plugin-url fetches a plugin .zip from a web address the same way. Nothing is installed, so the plugin is gone when the session ends.

Example code

bash
claude --plugin-dir ./my-plugin
Try a plugin you are building.

Common mistake

Expecting it to still be there next time. It is only for this session. Use claude plugin install to keep it.

Key takeaways

  1. 1
    Folder or .zip. One per flag.
  2. 2
    --plugin-url. From the web.
  3. 3
    This session only. Not installed.

Learn it properly