SitePack CLI Commands
This page provides an overview of the available commands in the SitePack CLI.
sitepack login
The login command authenticates the CLI with your SitePack account. It will open your default web browser to complete the authentication process.
- Usage
- Terminal Output
sitepack login
$ sitepack login
? Select the account you want to use: sitepack.dev
✔ Authentication successful. Welcome, [username]!
sitepack init
Initialize a new SitePack project in the current directory.
- Usage
- Terminal Output
sitepack init [project-name]
$ sitepack init my-awesome-project
✔ Project initialized in ./my-awesome-project
✔ Dependencies installed successfully.
Next steps:
cd my-awesome-project
sitepack dev
sitepack dev
Starts a local development server for your SitePack project.
- Usage
- Terminal Output
sitepack dev
$ sitepack dev
Starting development server...
✔ Server started at http://localhost:3000
Watching for changes in ./src...
sitepack build
Builds your SitePack project for production.
- Usage
- Terminal Output
sitepack build
$ sitepack build
Building project for production...
✔ Build completed successfully.
Output directory: ./dist
sitepack deploy
Deploys your project to SitePack.
- Usage
- Terminal Output
sitepack deploy
$ sitepack deploy
Deploying to sitepack.dev...
✔ Deployment successful!
Your project is live at https://my-awesome-project.sitepack.app