Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CLI Reference

This chapter provides a complete reference for all Flow CLI commands.

Note: Flow is in early development. Commands and options may change.

Global Options

These options can be used with any command:

OptionShortDescription
--space <name>-sSpace to use (registered name or path)
--help-hPrint help information
--version-VPrint version information

Commands

flow capture

Quickly capture a thought without leaving your terminal.

flow capture "Your thought here #tag"

Arguments:

ArgumentDescription
<TEXT>The text to capture

Examples:

# Simple capture
flow capture "Remember to update the docs"

# Capture with tags
flow capture "Research CRDT sync options #idea #research"

# Capture to a specific space
flow -s work capture "Meeting notes from standup"

Search your knowledge base.

flow search <QUERY>

Arguments:

ArgumentDescription
<QUERY>Search query

Examples:

# Simple search
flow search "project ideas"

# Search with tags
flow search "#rust #async"

flow list

List notes in the current space.

flow list [OPTIONS]

Options:

OptionDescription
--limit <N>Maximum number of results
--tag <TAG>Filter by tag

flow init

Initialize a new Flow space.

flow init [PATH]

Arguments:

ArgumentDescription
[PATH]Directory to initialize (defaults to current directory)

Examples:

# Initialize in current directory
flow init

# Initialize in a specific directory
flow init ~/notes/personal

UI Commands

These commands launch interactive interfaces (requires respective features to be compiled in).

flow tui

Launch the Terminal User Interface.

flow tui

Requires the tui feature.

flow gui

Launch the Desktop GUI application.

flow gui

Requires the gui feature.

flow serve

Start the Flow server for sync and web access.

flow serve [OPTIONS]

Requires the server feature.


Environment Variables

VariableDescription
FLOW_HOMEDirectory for Flow configuration and data
FLOW_DEFAULT_SPACEDefault space to use when --space is not specified

Exit Codes

CodeDescription
0Success
1General error
2Invalid arguments