The official CLI tool for building, managing, and deploying Spacelift Flows applications.
npm install -g @useflows/flowctlBefore using most commands, you need to authenticate with the Spacelift Flows API.
Authenticate with the Spacelift Flows API to enable access to projects and apps.
- --base-url(optional): API base URL (defaults to- http://localhost)
flowctl auth login
flowctl auth login --base-url https://my-instance.comRemove stored authentication credentials.
flowctl auth logoutCreate a new Spacelift Flows application. This command will prompt for:
- App name
- App description
- Block color (hex color for the app's blocks)
- Block icon URL (path to the icon file)
- -p/- --project(optional): Project ID to create the app in
flowctl app create
flowctl app create --project my-project-idCreate a new version of an existing app by building and uploading the app schema and UI code.
- -e/- --entrypoint(required): Path to the main app entrypoint file
- -u/- --uiEntrypoint(optional): Path to the UI entrypoint file
- -a/- --app(optional): App ID to create version for
- -p/- --project(optional): Project ID
- --version(optional): Specific version number (otherwise prompts for SemVer bump)
- -d/- --debug(optional): Enable debug output showing built code
# Create version with interactive prompts
flowctl version create -e main.ts
# Create version with UI and specific app
flowctl version create -e main.ts -u ui/index.tsx --app my-app-id
# Create version with debug output
flowctl version create -e main.ts --debugUpdate an existing draft version with new code. Useful during development.
- -e/- --entrypoint(required): Path to the main app entrypoint file
- -u/- --uiEntrypoint(optional): Path to the UI entrypoint file
- --id(optional): Version ID to update
- -a/- --app(optional): App ID
- -p/- --project(optional): Project ID
- -w/- --watch(optional): Watch for file changes and auto-update
- -d/- --debug(optional): Enable debug output
# Update version with interactive selection
flowctl version update -e main.ts
# Update with watch mode for development
flowctl version update -e main.ts -u ui/index.tsx --watch
# Update specific version
flowctl version update -e main.ts --id version-idPublish a draft version to make it available for use.
- --id(optional): Version ID to publish
- -a/- --app(optional): App ID
- -p/- --project(optional): Project ID
# Publish with interactive selection
flowctl version publish
# Publish specific version
flowctl version publish --id version-idList all versions for an app.
- -a/- --app(optional): App ID to list versions for
- -p/- --project(optional): Project ID
flowctl version list
flowctl version list --app my-app-idCreate a local .tar.gz bundle containing the built app schema and UI code. This command does not require authentication and works offline.
- -e/- --entrypoint(required): Path to the main app entrypoint file
- -u/- --uiEntrypoint(optional): Path to the UI entrypoint file
- -o/- --output(optional): Output path for bundle (defaults to- bundle.tar.gz)
- -d/- --debug(optional): Enable debug output showing built code
# Create bundle with default filename
flowctl version bundle -e main.ts
# Create bundle with UI and custom filename
flowctl version bundle -e main.ts -u ui/index.tsx -o my-app-v1.0.0.tar.gz
# Create bundle with debug output
flowctl version bundle -e main.ts --debugThe bundle contains:
- main.js- The built app schema code
- ui.js- The built UI code (if UI entrypoint provided)
- Authenticate: flowctl auth login
- Create App: flowctl app create
- Create Initial Version: flowctl version create -e main.ts
- Develop with Watch Mode: flowctl version update -e main.ts --watch
- Publish When Ready: flowctl version publish
Use flowctl version bundle to create distributable packages without requiring authentication:
# Create a bundle for distribution
flowctl version bundle -e main.ts -u ui/index.tsx -o my-app-v1.0.0.tar.gzAll commands follow the pattern:
flowctl <command> <subcommand> [options]
Use --help with any command to see detailed usage information:
flowctl --help
flowctl version --help
flowctl version create --help