CLI Reference
Install
The Fusebit CLI is built on Node.js, and v10+ is required. After installing Node.js, run the following command:
npm install -g @fusebit/cli
Initialization
To start using the CLI against your deployment, you will need a one-time initialization token, which will be provided during onboarding or when you are given access.
fuse init {initialization-token}
After the command completes, a local profile is created and stored on your machine under ~/.fusebit
. The profile contains private connection information that enables the CLI to communicate with the Fusebit service, and should not be shared.
A profile can also optionally specify a Fusebit boundary and function, which will result in all commands that take those as parameters to default to the values provided in the profile. If you frequently work within the same boundary or on the same function, this is a useful way to save time. Multiple profiles can be created with combinations of boundary and function defaults via the fuse profile
command.
Commands
The Fusebit CLI supports the following top-level commands. Each command displays further information when invoked with no parameters:
Command | Description |
---|---|
| Initialize the CLI with a one-time token provided by account administrator |
| Manage functions, view function logs, download functions for local development More details here: Local Development with the Fusebit CLI |
| Manage profiles |
| Generate a short-lived access token to be used with the HTTP API |
| (account admins) Retrieve and manage users and their identities and access |
| (account admins) Retrieve and manage clients and their identities and access |
| (account admins) Retrieve and manage trusted issuers associated with the account |
| Return the version of the Fusebit CLI |
Update
To update the Fusebit CLI to the latest version, use:
npm install -g @fusebit/cli
Uninstall
To uninstall the Fusebit CLI, use the following command:
npm uninstall -g @fusebit/cli
For security reasons, you may also choose to remove any profiles that were stored locally:
rm -r ~/.fusebit
Updated 19 days ago