Set up environment
Clone and develop the environment on your local machineIf you have already configured your local machine, you are now ready to start running your environment locally using SiteBox CLI. In this documentation, we will walk you through the steps required to get your project up and running on your local machine.
How to set up the environment?
How to install the environment?
To begin setting up your development environment on your local machine, open your terminal and execute the following command:
statik install
The SiteBox CLI will prompt you to provide the required identifiers sucha as: "company," "project," and "backend."
These identifiers are essential for configuring your development environment.
❯ statik install
? Company ACME Corporation (acmecorp_onmc)
? Project Hosting (hosting_tqbp)
? Backend main (main_ueub)
Once you've provided these basic pieces of information, the installation process will begin. This process involves cloning the necessary files and installing the required dependencies. It may take a while, so arm yourself with patience.
The SiteBox CLI will attempt to clone a Git repository that is connected to the environment. Therefore, make sure you are authenticated and have the necessary permissions to fetch the mentioned repository.
How to start server?
After the installation process is complete, you will receive a confirmation message with instructions for navigating to your site and running it locally.
The CLI created the site as a new folder with the name of the repository.
Start by going to the directory with
cd acmecorp-hosting
Start the local development environment with
statik backend start
The SiteBox CLI will launch the environment on the first available port (starting from 8080
), for example:
http://localhost:8080
.
Enjoy and develop
Now you’re ready to make changes to your site!
During the installation process, the admin
user has been created. You can log in to the WordPress dashboard using the
following command:
statik backend login
You will be asked to select a user, after which a "magic link" will be displayed, allowing you to log in to the WordPress dashboard without entering a password.