Skip to main content

Fleek CLI

In this guide, you will find all the information on how to set up and start interacting with Fleek's Command Line Interface (CLI).


The minimum requirement to use the Fleek CLI is Node.js Version 18.

What is a CLI?

A CLI is a command-line program that accepts text input to execute operating system functions. With this, you can interact directly with all the services offered by Fleek directly from your command line. Fleek CLI provides a unified command line interface to Fleek Services.


This package requires a minimum of Node.js 18. To install the CLI, run:

npm install -g @fleekxyz/cli

Incase this returns an access error (EACCES), run:

sudo npm install -g @fleekxyz/cli


The Fleek CLI command has the following structure:

fleek <service> <command> [options and parameters]

To view all available services and commands, you can use:

fleek help


All the services in the Fleek CLI require authentication. To do this, you have to run:

fleek login

This will trigger the login process, and we use Web3Auth to manage authentication. Once the flow is completed, you will be greeted like this:

fleek login
🔗 Opening browser on
🧑‍💻 Please login to continue
✅ Successfully logged in.

If at any point you want to log out, you can do so:

fleek logout
✅ Successfully logged out.


As explained here, to interact with services, you need to have a project. This can be created and managed via the CLI too!

To create a project, you can do it like this:

fleek projects create
$ ? Enter project name: ›

When you enter a correct name, you will be automatically switched to it. Additionally, you can switch between different projects using the 'switch' command, which will prompt a selector:

fleek projects switch
❯ project-1