SitePack CLI Commands
This page provides a comprehensive reference for all available commands in the SitePack CLI.
Authentication Commands
sitepack login
Connect the CLI interface with your SitePack account. This command opens your default web browser to authorize the CLI.
- Usage
sitepack login
sitepack logout
Disconnect the CLI from your SitePack account and remove local authentication credentials.
- Usage
sitepack logout
sitepack whoami
Show the currently logged-in user and the active organization.
- Usage
sitepack whoami
App Commands
sitepack app:init
Initialize a new SitePack app project. This command guides you through creating a new app structure and a package.json file.
- Usage
sitepack app:init
sitepack app:publish
Publish your app to SitePack. This performs a full synchronization of your local files and creates a new release of your app.
- Usage
sitepack app:publish
sitepack app:checkout
Pull an existing app from SitePack to your local machine for editing.
- Usage
sitepack app:checkout
Theme Commands
sitepack theme:init
Start a new SitePack theme project. It downloads the theme skeleton and prepares the directory structure.
- Usage
sitepack theme:init
sitepack theme:watch
Watch for changes in the theme directory and automatically sync them to SitePack in real-time. This is the primary command for theme development.
- Usage
sitepack theme:watch
sitepack theme:publish
Publish the theme to SitePack. This performs a full synchronization and creates a new release, making it available for use or marketplace listing.
- Usage
sitepack theme:publish
Partner & Organization Commands
sitepack partner:organisations
List all organizations (partners) you have access to.
- Usage
sitepack partner:organisations
sitepack partner:change-organisation
Select a different active organization to work with. This affects which apps and themes are accessible to other commands.
- Usage
sitepack partner:change-organisation
sitepack partner:create-organisation
Opens the browser to the SitePack Partner Dashboard to create a new organization.
- Usage
sitepack partner:create-organisation
General Commands
sitepack --version
Check the current version of the SitePack CLI.
sitepack --version
sitepack --help
Show help for all commands or a specific command.
sitepack --help
sitepack [command] --help