English · 简体中文 · Français · العربية
formist-cli
fm is a terminal client for Formist and Evane
deployments, over the exact same API and login the web app uses.
Mock data, rendered by the real fm code with python3 scripts/render_screenshot.py.
The problem
Keeping a Formist or Evane deployment running means asking it small, urgent questions all day: is this region healthy, is a connector stuck, did yesterday's migration apply everywhere, which of many spaces is this customer's. Each one normally means opening the web app and clicking through an admin page, or writing a one-off script against the API and hand-rolling the login. Neither is scriptable, and both are slow exactly when speed matters.
The idea
fm signs in the same way the web app does, so it can only ever do what your own account is
allowed to do there, nothing more. Every command prints the deployment, space and credential it
resolved, before it runs, so what is on screen is the full picture, not a guess. A command that
changes data always shows what it would do first; committing is a separate, explicit step.
- One client, every deployment.
--hostswitches between Formist, Evane, Evane UAE, Formist China, or any custom origin, such as a local dev server, same binary, same commands. - Provenance before action. Every command announces which deployment and space it resolved, and where each came from, a flag, a remembered default, or nothing, so a wrong target is caught by reading the screen, not by its effect.
- Dry run by default. A command that changes data prints what it would do and waits for
--apply.fm participants dedupe, which merges a group of duplicate rows, re-checks the plan still matches before committing, so a stale read can't turn into a wrong write. - A credential per deployment.
fm loginstores an OAuth credential at0600, one file per host, so signing in to a staging deployment never touches production.FORMIST_TOKENsupplies one for CI: used as-is, never written to disk, never refreshed. - No surprise dependencies. Standard library only, Python 3.10+, installs in a second.
Install
pipx install formist-cli
Python 3.10 or newer. No third-party dependencies.
Usage
Sign in
fm login # opens a browser; the credential is stored at 0600
fm whoami
fm logout
On a machine without a browser, use fm login --no-browser and paste the code the page shows.
For CI, export FORMIST_TOKEN with the token field of the file fm login writes; it is used
as-is and never written to disk.
Credentials live in ~/.config/formist/ (override with FORMIST_CONFIG_DIR), one file per host,
so signing in to one deployment never replaces another.
Platform-administration actions need an extra grant: fm login --admin requests it, and the
server only honours the request if your account already has it. Without that flag, a platform
admin's own token still runs as an ordinary user.
Choosing a deployment
fm talks to https://api.formist.ai by default. --host picks another one:
--host |
API |
|---|---|
formist |
https://api.formist.ai (default) |
evane |
https://api.evane.ai |
evane-ae |
https://ae.api.evane.ai |
formist-cn |
https://formist-api.we-carbon.com |
Anything else is taken as an API origin, for example fm --host 127.0.0.1:8160 spaces for a
local server. --host works before or after the command: fm --host evane spaces and
fm spaces --host evane are the same.
Spaces
A space is always addressed by its id, never by its name, since names are not unique:
fm spaces # your own spaces
fm use --space <space-id> # remember a default space
fm kb search "venue contract" --space <space-id>
fm use can also remember a host, for reads only. A command that writes never inherits a
remembered host: name it with --host, or the default (formist) is used.
Writes
Most commands that change data run as a dry run first and print what they would do; add
--apply to commit. fm participants dedupe, which merges a group of duplicate rows, is slightly
different: the dry run prints a plan token, and --apply <token> re-runs the dry run to confirm
the plan still matches before committing. A handful of actions with no undo, such as fm spaces --admin delete, have no dry run at all and say so in their own --help.
Commands
Run fm --help for the full list and fm <command> --help for each one. Every command works
with your own account's permissions, the same as the web app, and the server re-checks every
permission on every call: fm spaces lists the spaces you belong to, fm health is public and
needs no login, fm doctor rolls health up across every deployment, and the rest, chats,
chat, kb, get, export, import, diff, upload, skill-attach, entity-fields,
skill-library-install, meeting, project, connector, skills-add, skills-update,
proposals, audit-log, connectors, files, read or write your own space the same way.
Tasks (fm task)
fm task is a built-in port of nod's task-and-decision
tracker: a node is one piece of work, a task when an AI can just do it, a decision when the
owner has to rule on it. It runs in one of two modes:
- Logged out, in any project:
fm task initcreates adecisions/folder, and every command below finds it by walking up from the current directory, the same waygitfinds.git. Nothing leaves the machine. - Logged in, with
fm login:fm task --host <deployment>(or a rememberedfm usehost with a stored credential) talks to that space's node API instead, so a team shares one tracker through Formist/Evane rather than a per-clone folder. Not every verb has a server route yet; one that doesn't says so rather than guessing.
fm task init # creates decisions/ here
fm task add "Write the onboarding doc" --task # a new node
fm task start X1 # to do -> in progress
fm task note X1 "found last year's draft" # progress, without closing it
fm task show active # every open node (bare `show` lists only ones needing a decision)
fm task done X1 --note "doc is up" # -> done
A decision looks the same, just with options instead of --task:
fm task add "Which domain for staging" -o 1="api-staging.example.com" -o 2="staging-api.example.com"
fm task push X2 1 --note "matches the cert" # the owner's answer, recorded on the node
Every write needs an author: pass --author "<you> · <doing what>" or export NODDIT_AUTHOR
once per session. fm task whoami reports who a write would sign as: the signed-in account and
space once fm login/--host resolves to cloud mode, otherwise the local identity stamped on
each note. fm task briefs lists work the owner filed that nobody has picked up yet;
fm task claim <ref> takes one. Run fm task --help for the full verb list and fm task <verb> --help for its flags.
Claude Code plugin
The git repo, not the pipx package, is also a Claude Code plugin: hooks/hooks.json injects
the fm task usage rules and the project's open nodes at the start of a session, and
monitors/monitors.json starts fm task monitor --here so the owner's replies reach the agent
without it polling. It isn't published to a marketplace, so load it from a clone instead of the
installed package:
git clone https://github.com/WeCarbon/formist-cli
claude --plugin-dir formist-cli
FAQ
Do I need platform-admin access to use this?
No. Every command works with your own account's permissions by default, the same as the web app
would for that account: fm spaces, for example, lists the spaces you belong to. A few
commands also accept --admin, for a platform administrator account; without it, or without
the matching grant, they refuse locally before any request is sent, and the server still has
the final say either way.
Can I point it at a local dev server?
Yes: --host accepts any API origin, not only the four named deployments, for example
fm --host 127.0.0.1:8160 health.
Can I use it in CI, without a browser?
Yes: export FORMIST_TOKEN with the token field from the file fm login writes. It is read
fresh on every invocation, used as-is, and fm never writes it to disk or refreshes it.
What stops a write from landing on the wrong deployment?
fm use only remembers a host for reads; a write always resolves --host from the command
line, defaulting to formist if it is not given. There is no "current environment" for a write
to silently inherit.
Will fm ever do something my account couldn't do in the web app?
No. It calls the same API with the same credential, and the server enforces every permission on
every call; fm is a different front end for it, not a different set of rights.
Development
uv sync
uv run pytest
docs/screenshot.png is generated from real fm output against a local mock server, never
handwritten:
python3 scripts/render_screenshot.py
License
MIT © 2026 WeCarbon
Metadata
Release files for formist-cli 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| formist_cli-0.2.5.tar.gz | 847.4 kB | Without provenance | Details for formist_cli-0.2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| formist_cli-0.2.5-py3-none-any.whl | Python 3 | none | any | Details for formist_cli-0.2.5-py3-none-any.whl |
Total release size: 1.2 MB
Release files / formist_cli-0.2.5.tar.gz
| Download URL | formist_cli-0.2.5.tar.gz |
|---|---|
| Size | 847.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c09779089f8575661573637f633adbd1a574749014503465126300286d277fca
|
|
BLAKE2b-256 checksum How to use checksums |
2c98de4d4ccb179d4c60af4136ac624286672a9f53b507c382be8023e8bf89af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / formist_cli-0.2.5-py3-none-any.whl
| Download URL | formist_cli-0.2.5-py3-none-any.whl |
|---|---|
| Size | 361.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff4c364769e1255afe16114186fac19a8486f3cd8fe6cec6d0c3ccb325ccaf58
|
|
BLAKE2b-256 checksum How to use checksums |
21d3b03def234d888465bf024e7d5e2740528d719cad7f00a3602c2f323e4d0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for formist-cli 0.2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.