FlexSite CLI Setup

Applies to: FlexLab

FlexSite CLI Setup
FlexSite CLI Setup

Overview

Set up the FlexSite CLI for FlexLab local development and remote operations.

Steps — install CLI

  1. Install Node.js LTS.
  2. Install CLI: npm install -g @flexsite/cli (verify version in platform docs).
  3. Run flexsite --help to confirm.

Steps — authenticate

  1. Create personal access token at /dashboard/profile/tokens with scopes: drush:execute, database/files pull as needed.
  2. Run flexsite auth login and paste token.
  3. Run flexsite auth status to verify org context.
  4. In cloned repo, run flexsite link or follow project Code instructions.

Common workflows

  • flexsite db pull — local DB from remote backup.
  • flexsite sync — DB + files.
  • flexsite drush -- status — remote Drush.

Add SSH public key on Tokens page for SSH gateway shell access.