FXCode
SIGN IN →
Doc. 03 — Connectors

fxc CLI

All of FXCode from the terminal. With --json, scripts and agents read the output without guessing.

Install

fxc ships as a single binary for Windows, macOS and Linux: no Node, no cloning the repository. The installer detects your system, downloads the binary of the latest version (public, no account needed), checks its SHA-256 and puts it on your PATH:

# macOS / Linux → ~/.local/bin/fxc
curl -fsSL https://api.fxcode.dev/downloads/cli/install-sh | sh
# Windows (PowerShell) → %LOCALAPPDATA%\fxc\fxc.exe, added to your user PATH
irm https://api.fxcode.dev/downloads/cli/install-ps1 | iex

To update, run fxc update (or the install command again). fxc --version shows the version you have and fxc update --check tells you whether there’s a newer one.

System Binary (latest version)
Windows x64 (also ARM, emulated) fxc-windows-x64.exe
macOS Apple Silicon / Intel fxc-darwin-arm64 / fxc-darwin-x64
Linux x64 / ARM64 (glibc) fxc-linux-x64 / fxc-linux-arm64

You can also download the file from that table, check it against SHA256SUMS (or the latest.json manifest) and put it on your PATH as fxc. The installer accepts FXC_VERSION (a specific version) and FXC_INSTALL_DIR (another folder). Alpine and other musl-based distributions aren’t supported by the binary yet.

From the repository (for contributors)

Only if you have access to the FXCode repository and want to work on the CLI itself: build it with Node and link it.

git clone https://github.com/fazt/fxcode.git
cd fxcode && pnpm install
pnpm build:cli
cd apps/cli && npm link

pnpm --filter @fxcode/cli build:bin compiles the binaries with Bun into apps/cli/dist-bin/.

Sign in

# Opens the browser to approve access (works with GitHub accounts)
fxc auth login --web

# Or with email and password
fxc auth login -e tu@correo.dev

fxc auth me          # who you are, the server and when the session expires

The CLI talks to FXCode (https://api.fxcode.dev) unless you choose another server: fxc auth config asks (FXCode, local http://localhost:4000 or the URL of your own deployment), or pass it directly, as in fxc auth config https://api.tu-dominio.com. Switching servers signs you out of the previous one.

The session is stored in ~/.fxcode/config.json and refreshes on its own. The FXC_API_URL and FXC_TOKEN variables take precedence over that file, which is handy in CI.

The essentials

fxc projects list
fxc tasks list --project-id <id> --status working --json
fxc tasks create -t "Revisar webhooks de Stripe" -s Working --project-id <id> --tag pagos
fxc tasks update <taskId> --branch feat/fxc-<taskId>-login --pr https://github.com/acme/web/pull/42
fxc tasks finish <taskId>          # review if you're on a branch, completed on main

fxc ideas add -t "Exportar informes a PDF"
fxc ideas promote <ideaId> --project-id <id>

fxc projects notes add --project-id <id> --file informe.md
fxc changelogs create -v 1.4.0 --project-id <id> --content-file CHANGELOG.md
Group What it’s for
requests Client requests: create with files, list, comment, download; the team triages, responds and converts them
projects Projects, links, notes and team (team invite by email with a role)
people People and their accounts: invite, global role, disable, reset password, merge duplicates (admin)
tasks Tasks, with statuses and priorities by name, environment and version, links, comments, branch and PR, finish to close them according to the project’s mode, import to migrate from Notion, bulk changes, archive, merge, relations, subtasks and the work queue (next)
ideas Standalone or project ideas, and turning them into tasks or projects
arch The architecture: import, view, link and focus
changelogs, proposals, quotes, payments The rest of your client work
mcp The MCP server
skills Install and update the agent skills (install, update, status), and sync a repo’s skills to its project

Every command has --help. Statuses are passed by name (-s "No Iniciada"), ignoring case and accents; an unambiguous prefix works too (-s work).

Project lifecycle

Archive and restore projects through MCP: archive_project with projectId (unarchive: true restores). list_projects excludes archived projects by default: archived: true shows only those and archived: "all" includes both. Requires project owner or admin.

For permanent deletion through MCP, first call delete_project with projectId without confirm to get the preview. confirm: true deletes it; a project with a client, payments or proposals also requires confirmTitle with its exact title. Only the project owner can confirm, even if the account is an admin.

The CLI does not yet have projects archive, unarchive or list --archived. Its fxc projects delete <id> uses the older direct deletion (owner or admin), without a preview or title confirmation. For the preview flow, use MCP or the application API routes.

Agents and connected sessions

fxc agent register and serve run tasks in new sessions. fxc agent attach --name asistente --project <id> connects the current session to receive tasks through its inbox; fxc inbox asistente --wait waits for work and fxc agent detach asistente disables new tasks. Configuration, the web picker and MCP examples are in Runners.

People, accounts and invitations

A person is anyone who appears in FXCode (team, clients, people mentioned in imported tasks); an account is how a person signs in, and it’s optional. Each person can have several emails and sign in with any of them: password, a magic link, Google, GitHub or Microsoft. The first time you sign in with a provider it’s linked by its verified email; after that it’s recognized by the provider account itself. Who is a client comes from their role in each project team.

fxc projects team invite <projectId> --email ana@acme.com --role DEVELOPER   # owner or admin
fxc people invite --email luis@acme.com                                      # admin: account only
fxc people list                     # admins see account status: no account, invited, active, disabled
fxc people account role <personId> ADMIN
fxc people account disable <personId>        # no sign-in; sessions and tokens revoked
fxc people merge <keepId> <duplicateId>      # move emails, teams and tasks, delete the duplicate

An invitation lasts 7 days and is accepted by signing in with that email by any method (or with its link). Asking for a sign-in link doesn’t cancel it. If someone registers with an email the team already added, nothing is created with that password: they get an email to activate the account. Your own profile (name, emails, password, linked accounts, “sign out everywhere”) is in the web app under your avatar.

Finishing a task: branches and PRs

fxc tasks finish <id> closes a task according to the project’s branch mode. Without --branch, it reads the current branch with git rev-parse --abbrev-ref HEAD if you’re inside a repo:

  • On any branch other than the main one, the task moves to review and the branch is saved: the work is done but still needs merging.
  • On the main branch, outside a repo, or in Manual mode, it’s completed.
git switch -c feat/fxc-<taskId>-login     # the id in the branch name: the GitHub webhook picks it up
fxc tasks update <taskId> -s Working
# … work …
fxc tasks finish <taskId>                 # → In review
fxc tasks finish <taskId> --branch main   # → completed

fxc tasks update <id> --branch <branch> --pr <url> saves the branch and PR by hand ("" clears them). Never leave a task in Working once you’ve stopped touching it: the full guide is in Branches and PRs.

Parallel work: worktrees

fxc tasks start <taskId> --worktree [--base main]   # ../<repo>-fxc-<id> on feat/fxc-<id>-<slug>, task → Working, session recorded
fxc tasks start <taskId>                            # Working + session, in the current directory
fxc tasks heartbeat <taskId>                        # keeps the session alive and sends the files touched
fxc worktrees status --project-id <projectId>      # who works where, possible clashes, worktrees to clean up
fxc worktrees                                       # local worktrees: branch, task, status, merged
fxc worktrees prune [--yes]                         # deletes the merged/finished ones (never with uncommitted changes)

start, finish and heartbeat send the branch, worktree, machine and agent (--agent <name>, or detected from CLAUDECODE, CODEX, CURSOR_TRACE_ID…; manual otherwise). Any other command on the task refreshes its session. The full guide is in Parallel work (worktrees).

fxc tasks create -t "Payment error" --project-id <id> --priority Alta --environment production --version-tag 1.4.0
fxc tasks list --project-id <id> --priority alta --environment production --version-tag 1.4.0
fxc tasks update <taskId> --priority Media --environment ""   # "" clears the environment

fxc tasks links add <taskId> https://figma.com/file/abc --label Design
fxc tasks links list <taskId>
fxc tasks links remove <taskId> <linkId>

fxc tasks comment <taskId> -m "I can reproduce it on Safari" -f screenshot.png -f report.docx
fxc tasks comments <taskId>

fxc settings priorities list
fxc settings priorities seed      # Alta, Media and Baja if the catalog is empty

The task’s version goes in --version-tag because --version is the global flag that prints the CLI version. Priorities are passed by name, like statuses. tasks get also shows the assignee (with or without an account), who requested it, its links and the date it was completed.

Importing tasks

fxc tasks import <file.json> --project-id <id> [--dry-run] migrates tasks from Notion or another tool, with their comments, attachments, people and original dates. Re-importing updates instead of duplicating. The file format is in Import tasks.

Filters, bulk changes, archive and merge

fxc tasks list --project-id <id> --assignee <userId|personId> --priority alta --tag bug --search login
fxc tasks list --changelog-id <changelogId>     # what ships in a changelog
fxc tasks list --parent-id <taskId>             # its subtasks (none: only top-level tasks)
fxc tasks list --archived                       # only archived (--archived all: everything)

fxc tasks create -t "Login form" --project-id <id> --parent-id <taskId> --changelog-id <changelogId>
fxc tasks update <taskId> --changelog-id <changelogId> --parent-id ""      # "" clears them

# The same changes to several tasks
fxc tasks update --ids a,b,c --status Working --priority Alta --add-tag sprint-3 --remove-tag backlog
fxc tasks update --ids a,b --assigned-person-id <personId> --environment production --version-tag 1.4.0
fxc tasks update --ids a,b --archive          # or --unarchive

fxc tasks archive <id> <id> …                 # leave lists, project progress and the MCP
fxc tasks unarchive <id>
fxc tasks merge <targetId> <sourceId> …       # moves comments, attachments, links, notes and requests; archives the sources

--assignee takes a user id or the id of a person without an account (imported from Notion, for example). With --ids, update accepts --status, --priority, --assigned-user-id, --assigned-person-id, --environment, --version-tag, --changelog-id, repeatable --add-tag / --remove-tag, --archive and --unarchive.

Relations, subtasks and the queue

fxc tasks link-task <id> --blocks <otherId>        # also --blocked-by, --relates-to, --duplicates, --duplicated-by
fxc tasks relations <id>
fxc tasks unlink-task <id> --blocks <otherId>      # or --relation <relationId>

fxc tasks queue <id>                               # at the end of the project's queue
fxc tasks queue <id> --first                       # or --after <otherId>, --last
fxc tasks queue --remove <id>
fxc tasks queue --project-id <projectId>           # In progress / Next / Later
fxc tasks next --project-id <projectId> [--mine]   # the task to pick up now

fxc tasks notes <id> [--full]                      # notes linked to the task (--full: with their content)
fxc tasks link-note <id> <noteId>
fxc tasks unlink-note <id> <noteId>
fxc projects notes add --project-id <id> --file analysis.md --task <taskId>   # uploads the Markdown's local images

A blocked task is never “Next” while its blocker is unfinished. After finishing a task, an agent asks fxc tasks next for the following one. The whole model is in Kanban, queue and relations.

Due dates, releases and the status report

fxc tasks create -t "Checkout" --project-id <id> --due 2026-11-30 --release 12
fxc tasks update <taskId> --due none --release none        # none clears them
fxc tasks list --project-id <id> --due overdue             # overdue | week (next 7 days) | none
fxc tasks list --project-id <id> --release 12              # by id or name (name needs --project-id); none = without release

fxc releases list --project <id>                           # ★ = current release
fxc releases create --project <id> --name 12 [--target 2026-11-30] [--status planned|in_progress|delivered] [--description <text>]
fxc releases update <id|name> [--project <id>] [--name <name>] [--target <date|none>] [--status <status>] [--description <text>]
fxc releases show <id|name> [--project <id>]               # progress, by status/priority, pending and done tasks
fxc releases delete <id|name> [--project <id>]             # its tasks are left without release
fxc releases link-version <id|name> [--project <id>]       # links tasks whose version is the release name
fxc releases changelog <id|name> [--project <id>] [--version <v>] [--no-ai]

fxc projects report <projectId>                            # summary; --md [--lang en|es] Markdown; --json raw

--release and the release commands take an id or a name (a name is looked up in the project, ignoring case). releases changelog creates the changelog with the release’s finished tasks (AI if configured, otherwise a draft list). Everything is explained in Releases and reports.

Requests

What someone needs from a project: something broken, something they want changed, or an idea. Whoever creates it (usually the client) just describes what they need, without picking a type; it starts as “Received”, untriaged, and the team gets notified, just like from the portal.

fxc projects mine                      # your projects and their ID ("You are": client / team)

fxc requests create --project-id <id> \
  -d "El botón Pagar no responde en el móvil. En iPhone, tras elegir la tarjeta, se queda gris." \
  --page-url https://tienda.ejemplo.com/checkout \
  --file ~/Desktop/captura.png --file informe.pdf

fxc requests list --mine                # yours, across all your projects
fxc requests get <requestId>
fxc requests comment <requestId> -m "Pasa también en Android" --file video.mp4
fxc requests download <requestId> --dir ./adjuntos

# Team only: triage (BUG, FEATURE or IDEA), respond and convert
fxc requests list --type none           # the ones still waiting for triage
fxc requests respond <requestId> --type BUG --response "Lo vemos esta semana"
fxc requests convert <requestId> -s "No Iniciada"   # BUG/FEATURE → task, IDEA → idea
fxc requests link <requestId> --task <taskId>       # an existing task: no new one is created

# On behalf of the client (a person, even without an account), with its original date and no emails
fxc requests create --project-id <id> -d "Asked for it on WhatsApp" \
  --requester-person-id <personId> --created-at 2025-03-01T10:00:00Z --silent

fxc requests archive <requestId>        # created by mistake: out of the lists (unarchive to undo)
fxc requests list --archived            # only archived (--archived all: everything)
fxc requests delete <requestId>

Triage. The team classifies each request when reviewing it: BUG (something is broken) and FEATURE (something new or different) become tasks; IDEA is saved as an idea (kind: IDEA). Classifying a “Received” request moves it to “In review”. convert picks task or idea based on the classification (or force it with --task / --idea, and classify at the same time with --type). The legacy names CORRECTION and CHANGE are accepted as aliases for BUG and FEATURE.

What the client sees. The Status column shows the client-facing status: Received, In review, In progress (accepted, or converted into an unfinished task), Ready to review (its task is in the project’s review status: the client accepts it or asks for changes with requests verify), Done, Saved as idea, or Declined (with the reason in Response). Clients never see a task’s internal details, only whether it became a task or an idea. They get an email, in their language, whenever that status changes or the team comments.

Command Options
requests create --project-id, -d/--description (what you need), -t/--title (optional: derived from the description), --type (optional, team only: BUG, FEATURE, IDEA; also CORRECTION/CHANGE), --page-url, --priority (Low, Medium, High), repeatable -f/--file <path>; team only: --requester-person-id, --created-at, --silent (sends no email to anyone)
requests respond <id> --type (classification), --status, --response (team only)
requests convert <id> --type, --task / --idea, -s/--status (task status), -t/--title (team only)
requests link <id> --task <taskId>: links it to an existing task of the project; it becomes Accepted and closes when the task is finished (team only)
requests archive <id> / unarchive <id> / delete <id> Archive, restore or delete a request created by mistake (team only; the author can still delete their own while it’s Received)
requests comment <id> -m/--message and/or repeatable -f/--file <path>
requests verify <id> --accept [--comment <text>] or --changes <comment>: the client checks a request that is “Ready to review” (see client verification)
requests download <id> --dir <folder> (defaults to ./fxcode-request-<id>); never overwrites existing files
requests list --project-id, --status, --type (BUG, FEATURE, IDEA or none), --mine, --archived [all]

Attachments. Accepted: images (png, jpg, gif, webp, heic), PDF, text (txt, md, csv, json, log), Office (doc, docx, xls, xlsx, ppt, pptx), zip and video (mp4, mov, webm), up to 10 MB per file and 20 files per request. The content has to match the extension (a .png that’s something else inside is rejected). The CLI checks this before creating anything, and the API checks again against the uploaded bytes. If an attachment fails after the request is created, the error includes its ID so you can retry with requests comment <id> --file.

With every flag set it asks nothing; if --project-id or the description (with no --title) is missing and there’s a terminal, it prompts for them. With --json, create returns the request with its attachments, comment returns { comment, attachments }, and download returns the list of saved files.

For clients

On the web, the overview and Tasks tab show a read-only board that refreshes as the team makes changes. It groups top-level tasks by status and highlights work you requested or are assigned (including your subtasks); “Only mine” filters cards without changing the overall percentage. Your open requests without a task appear separately. The quick-request box sends what you need without choosing a type or title; use the full form for attachments. Cards only open your linked request, not internal task details.

Your assistant gets this board through project_progress with board: true; without that flag it gets the request and current-release summary. It exposes no internal descriptions, branches or tags. Progress counts all tasks in the board, while finished cards are limited to the 50 most recent plus up to 50 of your own finished tasks.

If you’re a client on a project, the CLI and your assistant (Claude Code, Claude Desktop…) let you file requests with screenshots and track their status without opening the web app. Just describe what you need: no type or title required, the team triages it when they review it. Your account only sees requests on your projects, and you get an email whenever one of yours changes status or the team replies.

If the team invited you, the invitation email includes a passwordless sign-in link (valid for 7 days, single use); signing in with that email via Google, GitHub or Microsoft works too. On the web you’ll see “My requests”.

1. Install the CLI: a single file, no Node or account needed:

# macOS / Linux
curl -fsSL https://api.fxcode.dev/downloads/cli/install-sh | sh
# Windows (PowerShell)
irm https://api.fxcode.dev/downloads/cli/install-ps1 | iex

Open a new terminal and check it with fxc --version. More options in Install.

2. Sign in with the same account you use on the web. The browser opens: sign in if needed, check that the code matches the one in your terminal, and click “Authorize”.

fxc auth login --web
fxc auth me          # "Client only: yes"
fxc projects mine    # your project's ID

3. Connect your assistant with the MCP server and ask for what you need in plain language, or use the fxc requests commands above.

Best practices for scripts and agents

  • Pass every option to create and update: without them the CLI prompts, and a process with no terminal hangs waiting.
  • Use --json whenever you’re going to parse the output.
  • For long text (changelogs, notes), use --content-file or --file instead of passing the text as an argument; - reads from standard input.