Skip to content

CLI Commands

Overview

Complete reference for all Flaio CLI commands. Run any command with --help for usage details.

flaio

Launch the terminal UI. Opens a full-screen interface with tabbed session management.

bash
flaio
FlagDescription
--helpShow help
--versionShow the CLI version

flaio login

Authenticate with the Flaio platform. Opens a browser window for OAuth.

bash
flaio login

After login, the relay is automatically enabled for remote session access.

flaio logout

Sign out and remove stored credentials. Disables remote relay access.

bash
flaio logout

flaio status

Display CLI status including version, login state, relay connection, hook installation, and available updates.

bash
flaio status

flaio portal

Connect to running Flaio sessions from another terminal window. See Portal for full details.

bash
flaio portal [sessionId]
FlagDescription
-l, --listDisplay a table of active sessions

flaio settings

View current settings as formatted JSON (auth tokens are masked).

bash
flaio settings

flaio settings set <key> <value>

Update a setting. Use dot notation for nested keys.

bash
flaio settings set ui.showCost true
flaio settings set ui.sidebarWidth 30
flaio settings set relay.autoConnect false

Values are auto-parsed: true/false become booleans, numeric strings become numbers, null becomes null.

Protected keys (read-only): relay.authToken, relay.refreshToken.

flaio setup-hooks

Install IPC hook scripts for Claude Code and Gemini CLI integration.

bash
flaio setup-hooks
FlagDescription
--claude-onlyConfigure only Claude Code hooks
--gemini-onlyConfigure only Gemini CLI hooks
--checkCheck if hooks are already configured

Hook scripts are installed to ~/.config/flaio/hooks/ and configuration is merged into the respective agent settings files.

flaio tickets

Manage worktickets. Requires authentication (flaio login).

flaio tickets list

List tickets with optional filters.

bash
flaio tickets list
flaio tickets list --column in_progress --limit 10
flaio tickets list --search "auth bug" --json
FlagDescription
-c, --column <column>Filter by column (backlog, planning, in_progress, etc.)
-s, --search <term>Search in title and description
-l, --limit <number>Max results (default: 20)
--jsonOutput raw JSON

flaio tickets get <id>

View ticket details including title, column, agent, model, branch, PR URL, description, plan, and deliverables.

bash
flaio tickets get <id>
flaio tickets get <id> --json

flaio tickets update <id>

Update ticket fields.

bash
flaio tickets update <id> --column in_progress --title "New title"
FlagDescription
--title <title>Set ticket title
--description <desc>Set description
--column <column>Move to column
--plan <plan>Set plan text
--cwd <path>Set working directory
--agent <agent>Set agent driver (claude, gemini)
--model <model>Set model
--implementation-details <details>Set implementation details
--jsonOutput updated ticket as JSON