Getting Started

In this section you will initialize the Fusebit CLI and create your first Fusebit function.

Start by installing the Fusebit CLI from NPM:

npm install -g @fusebit/cli

During on-boarding to the Fusebit platform, you should have received a one-time initialization token that allows you to bootstrap the CLI. Use it now with the CLI init command:

fuse init {initialization-token}

You are now ready to start using the CLI. The Fusebit CLI allows you to manage Fusebit functions. With the CLI, you can scaffold new functions, downloading existing functions, deploying local functions, and more.

The Fusebit CLI also allows you to manage users and clients that have access to the Fusebit platform. You'll learn more about this in the next section on [setting up your team]({{ site.baseurl }}{% link integrator-guide/setting-up-your-team.md %}).

For now, let's create your first function by executing the CLI function edit command:

fuse function edit hello-world

Running this command should open the default browser on your machine and present the Fusebit Editor. The Fusebit editor allows you to edit and run Fusebit functions.

Click on the Run button in the editor to execute your newly-created hello-world function. If you look at the output displayed in the log viewer panel, you should see the response returned from executing the function.

Going back to the terminal, you can also use curl to execute the function:

curl $(fuse function url hello-world)

πŸ“˜

The fuse function url command returns the execution URL of a given Fusebit function

Congratulations! You are now ready to start using the Fusebit CLI to manage functions.


Did this page help you?