Create repository: Click here to create repository with cpm-plugin-gs template.
cpm repo clone <url>
cpm goto <repo-name>
cpm template fill
./plugin/src/index.ts
with your favourite code editoractions: {}
object contains all the actions provided by plugintask ls
, task get
, repo clone
)cpm
ctx
will contain config (./cpm.yml
), variables and secrets store (which you can use to get or store new variables or secrets for plugin)
input
will contain all the arguments and options passed for command (according to the command syntax)cpm
inside plugin repository (it should load plugin)npm login
./plugin
foldernpm publish
cpm install <plugin>
with plugin namecpm install <plugin> -g