Packaging and Publishing

By default, deployments of functions are private. In order to share your function with other users you must package and publish to Braintree's function ecosystem.

Package Your FunctionAnchorIcon

To package your function, define a few more pieces of metadata within you function's configuration. Use our CLI to go through an interactive prompt to set the metadata about your package.
  1. bash
$ btfns package .
> Name: MyPublicFunction
> Developer Website: https://yourwebsite.com
> Support E-mail: support@yourwebsite.com
> Description: My function.
> Logo: /path/to/logo.png

Publish to BraintreeAnchorIcon

  1. bash
$ btfns publish . -v 1.0.0
Publishing MyPublicFunction @ 1.0.0 to https://btfns.co
...
> Success .... https://btfns.co/user/MyPublicFunction