flow

command module
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

README

flow

GitHub release Go Reference Join Discord GitHub Repo stars

flow is a workflow manager for developers who work across many projects. One interface for all your scripts, secrets, and automation — no matter the stack.


Why Flow

Most projects come with their own Makefile, npm scripts, or shell scripts — each with different conventions, flags and undocumented quirks. AI-generated tools and side projects have made this worse. The real cost isn't running the scripts; it's remembering how everything works every time you switch contexts.

Flow sits above your projects, not inside them: one place to see, run, and compose everything — regardless of what's underneath.

Quick Start

# Install
curl -sSL https://install.flowexec.io | bash

# Add the examples workspace
flow workspace add examples https://github.com/flowexec/examples.git --set

# Explore all workflows in the TUI
flow browse

You'll have a real workspace with runnable examples immediately. No configuration needed.

See the full quickstart guide to define your own workflows.

Key Features

flow complements existing CLI tools by adding multi-project organization, built-in security, and visual discovery to your automation toolkit.

  • Works across all your projects — Register any repo as a workspace; run its workflows from anywhere on your machine
  • Find anything instantly — Browse, search, and filter all workflows across all projects from one TUI
  • Secrets as first-class citizens — Encrypted local vaults with multiple backends; secrets inject at runtime, never hardcoded
  • Any execution pattern — Serial, parallel, conditional, HTTP requests, interactive prompts, background jobs
  • Reusable templates — Bootstrap new projects with flow-ready scaffolding from your own templates
  • AI-native — MCP server lets Claude Code, Cursor, and other AI tools run your workflows directly

flow

Example Workflows

# api.flow
executables:
  - verb: deploy
    name: staging
    serial:
      execs:
        - cmd: npm run build
        - cmd: docker build -t api:staging .
        - ref: shared-tools/k8s:deploy-staging
        - cmd: curl -f https://api-staging.example.com/health

  - verb: backup
    name: database
    exec:
      params:
        - secretRef: database-url
          envKey: DATABASE_URL
      cmd: pg_dump $DATABASE_URL > backup-$(date +%Y%m%d).sql
# Run workflows
flow deploy staging
flow backup database

# Visual discovery
flow browse

Documentation

Complete documentation at flowexec.io

Community

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
Package cmd handle the cli commands
Package cmd handle the cli commands
internal/errors
Package errors provides the central CLI error handler that emits a structured JSON/YAML envelope to stderr when --output=json|yaml, and falls back to the existing plain-text logger for text/TUI mode.
Package errors provides the central CLI error handler that emits a structured JSON/YAML envelope to stderr when --output=json|yaml, and falls back to the existing plain-text logger for text/TUI mode.
internal/response
Package response provides a structured success-response helper that is symmetric with the error envelope in cmd/internal/errors.
Package response provides a structured success-response helper that is symmetric with the error envelope in cmd/internal/errors.
internal
io
mcp
mcp/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
runner/engine/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
runner/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
pkg
cache/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
cli
Package cli provides a public API for extending and customizing the Flow CLI.
Package cli provides a public API for extending and customizing the Flow CLI.
cli/example command
Package main demonstrates basic usage of the Flow CLI extension API.
Package main demonstrates basic usage of the Flow CLI extension API.
store/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
tests
tools
docsgen command
types

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL