DEV Community

Discussion on: How to build a Vue CLI plugin

Collapse
 
lkoida profile image
Leonid

Hi, Natalia, I have a question regarding to local vue-cli plugin configuration. According to documentation I can create a local cli plugin if I don't want to create a separate repository for it.

In the docs I found that I can register the service plugin in package.json inside the vuePlugins object.
somehow like this:

   {
     "vuePlugins": {
      "service": ["my-commands.js"]
    }
  }

My question is - how I can ivoke this plugin in the cli? I tried

vue invoke my-service

but this is not worked.

Can you add a hint what should I do to make local plugin work with cli?
Thanks in advance.