npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@useflows/flowctl

v0.6.0

Published

The official CLI tool for building, managing, and deploying Spacelift Flows applications.

Readme

Spacelift Flows CLI

The official CLI tool for building, managing, and deploying Spacelift Flows applications.

Installation

npm install -g @useflows/flowctl

Authentication

Before using most commands, you need to authenticate with the Spacelift Flows API.

flowctl auth login

Interactively authenticate with the Spacelift Flows API to enable access to projects and apps.

API Key

Alternatively you can use an API key, by setting the FLOWCTL_API_KEY and FLOWCTL_BASE_URL environment variables:

export FLOWCTL_API_KEY="sfapi_..."
export FLOWCTL_BASE_URL="https://useflows.eu"

Options

  • --base-url (optional): API base URL (defaults to http://localhost)

Example

flowctl auth login
flowctl auth login --base-url https://my-instance.com

flowctl auth logout

Remove stored authentication credentials.

Example

flowctl auth logout

App Management

flowctl app create

Create 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)

Options

  • -p/--project (optional): Project ID to create the app in

Example

flowctl app create
flowctl app create --project my-project-id

Flow Management

flowctl flow export

Export the definition of a flow as YAML. When --id is omitted you are prompted to pick a project and then a flow. By default the definition is written to standard output so it can be piped or redirected; pass -f to write it to a file instead.

Because the prompts would otherwise end up in a redirected definition, --id is required when the command is not attached to a terminal (in CI, for example).

This command needs the flows:view scope. If you authenticated before that scope was requested, you will see missing capability "flows:view" — run flowctl auth logout and flowctl auth login again to get a token that has it.

Options

  • --id (optional): ID of the flow to export (prompts for one when omitted)
  • -p/--project (optional): Project ID, to skip the project prompt
  • -f/--file (optional): Path to write the definition to instead of standard output

Examples

# Pick a project and a flow interactively, printing to standard output
flowctl flow export

# Pick a flow from a known project, writing it to a file
flowctl flow export --project my-project-id -f my-flow.yaml

# Print a known flow's definition to standard output
flowctl flow export --id 2f1b0c9e-1234-4a56-b789-0123456789ab

# Redirect it to a file yourself
flowctl flow export --id 2f1b0c9e-1234-4a56-b789-0123456789ab > my-flow.yaml

# Write the definition to a file
flowctl flow export --id 2f1b0c9e-1234-4a56-b789-0123456789ab -f my-flow.yaml

Version Management

flowctl version create

Create a new version of an existing app by building and uploading the app schema and UI code.

Options

  • -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

Examples

# 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 --debug

flowctl version update

Update an existing draft version with new code. Useful during development.

Options

  • -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

Examples

# 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-id

flowctl version publish

Publish a draft version to make it available for use.

Options

  • --id (optional): Version ID to publish
  • -a/--app (optional): App ID
  • -p/--project (optional): Project ID

Examples

# Publish with interactive selection
flowctl version publish

# Publish specific version
flowctl version publish --id version-id

flowctl version list

List all versions for an app.

Options

  • -a/--app (optional): App ID to list versions for
  • -p/--project (optional): Project ID

Example

flowctl version list
flowctl version list --app my-app-id

flowctl version bundle

Create a local .tar.gz bundle containing the built app schema and UI code. This command does not require authentication and works offline.

Options

  • -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

Examples

# 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 --debug

The bundle contains:

  • main.js - The built app schema code
  • ui.js - The built UI code (if UI entrypoint provided)

Development Workflow

Typical Development Flow

  1. Authenticate: flowctl auth login
  2. Create App: flowctl app create
  3. Create Initial Version: flowctl version create -e main.ts
  4. Develop with Watch Mode: flowctl version update -e main.ts --watch
  5. Publish When Ready: flowctl version publish

Offline Development

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.gz

Command Structure

All 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