Skip to main content

serve

The serve command starts a local express web server that can be used to take all actions accessible from the CLI in the form of RESTful API calls from an HTTP interface.

bsafe serve --port <port> --hostname <hostname>

serve will start the web server at port 8087 by default; however, you can specify an alternate port with the --port option.

serve will bind your API web server to localhost by default however you can specify an alternate hostname with the --hostname option. API requests can only be made from the bound hostname.

View the API spec for help making calls with serve.