Budibase CLI Setup

Downloading Budibase CLI

The budibase CLI is how you initialise, manage and update your budibase installation.
Downloading the Budibase CLI is a fairly straight forward process. If you have NodeJS installed, you can simply run the following to install the budibase CLI:
1
$ npm i -g @budibase/cli
Copied!
Alternatively, you can just download the budibase CLI for your operating system here:
If you do download from the above links, the steps are slightly different compared to downloading the CLI from NPM. After downloading the CLI, you will have to make it executable. Let's take the cli-linux for example:
1
# optional - if you have already downloaded this just navigate to the file
2
wget https://github.com/Budibase/budibase/releases/download/v0.9.1/cli-linux
3
​
4
chmod +x cli-linux
5
​
6
# optional - rename to budi
7
mv cli-linux budi
Copied!
When following the rest of this guide, when you see the budi command being used, you will need to replace it with:
1
./budi
Copied!

Running Budibase

Once the CLI is installed, navigate to the directory where you would like to store the files for your budibase installation, and run:
budi hosting --init # or ./cli-linux hosting --init
1
? This will create multiple files in current directory, should continue? Yes
2
​
3
# Feel free to configure your port
4
? Please enter the port on which you want your installation to run: 10000
5
​
6
Configuration has been written successfully - please check .env file for more details.
Copied!
If you have an ARM based CPU, you will have to make a slight update to your docker-compose.yaml . Update the couchdb-service part of your compose config with platform: amd64
1
couchdb-service:
2
platform: linux/amd64
3
...
Copied!

First Time Budibase Setup

You can now start the budibase services with the following command.
budi hosting --start
1
Starting services, this may take a moment.
2
Services started, please go to http://localhost:10000 for next steps.
Copied!
Last modified 3mo ago