Skip to content

Commit

Permalink
docs: Clarify how to privately share plugin code (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayyrickay authored Mar 28, 2022
1 parent dd227e7 commit d71a846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ twilio my-new-topic:my-new-command --help

Once you have your plugin working, publish it to npmjs.org as a JavaScript package using `npm publish`. The `twilio plugins:install <npm package name>` command will download your package from NPM.

If you want to keep your package private, then you can run `npm pack` to create a tarball and distribute that file. Running `twilio plugins:install <package.tar.gz>` will install the plugin from the file instead of looking on NPM.
If you want to keep your package private, then you can run `npm pack` to create a tarball, host the tarball using a tool like [Twilio Assets](https://www.twilio.com/docs/runtime/assets), and distribute the URL to that tarball. Running `twilio plugins:install <url_to_package.tar.gz>` will install the plugin from the tarball file instead of looking on NPM.

0 comments on commit d71a846

Please sign in to comment.