# Commandbox Install in Ubuntu

<div id="bkmrk-run-the-following-co">Run the following command in CLI prompt to install Commandbox:</div><div id="bkmrk-"></div>```
/usr/bin/curl -fsSl https://downloads.ortussolutions.com/debs/gpg | sudo apt-key add - && echo "deb https://downloads.ortussolutions.com/debs/noarch /" | sudo tee -a /etc/apt/sources.list.d/commandbox.list && /usr/bin/apt update && /usr/bin/apt install apt-transport-https commandbox -y
```

Run the following command in CLI prompt to initialize Commandbox for the first time to install Commandbox in the default user's home directory:

```
/usr/local/bin/box exit
```

Run the following command in CLI prompt to initialize Commandbox for the first time to install Commandbox in a specified directory (/opt/hermes/webapps/Commandbox:

```
/usr/local/bin/box -commandbox_home=/opt/hermes/webapps/Commandbox exit
```