FlexSite CLI Reference
Breadcrumb
-
- FlexLab
- FlexSite CLI Reference
Applies to: FlexLab
Overview
The FlexSite CLI (flexsite) automates database pulls, file sync, Drush, and auth against FlexLab environments.
Prerequisites
- FlexLab project with at least one ready environment.
- Personal access token from Profile → Tokens (account menu).
- CLI installed locally (
npm install -g @flexsite/clior per docs).
Common commands
| Command | Purpose |
|---|---|
flexsite auth login | Authenticate with token |
flexsite auth status | Verify session |
flexsite db pull | Download latest DB backup |
flexsite files pull | Download files backup |
flexsite sync | Sync DB and files |
flexsite drush -- | Run Drush remotely |
Steps — first use
- Create token with required scopes on Tokens.
- Run
flexsite auth loginin your project directory. - Select organization and environment when prompted.
- Run
flexsite db pullto test connectivity.
See FlexSite CLI Setup in the FlexLab book for full command reference.
-
FlexLab
- Creating a FlexLab Project
- Repository Access and Clone
- Branch per Environment
- Deployments and Pipelines
- FlexSite CLI Setup
- Post-Deployment Automation
- Environment Variables
- Merge Request Preview Environments
- Composer Module Installation
- Build Settings
- SSH Keys
- Why Theme Marketplace Is Not Available
- FlexSite CLI Reference
- Profile, Tokens, and SSH Keys
- Quality Metrics Overview