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 update, which applies a batch of changes at once, 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 update, which applies a batch of changes transactionally, 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.
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.1.0
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.1.0.tar.gz | 663.6 kB | Without provenance | Details for formist_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| formist_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for formist_cli-0.1.0-py3-none-any.whl |
Total release size: 887.8 kB
Release files / formist_cli-0.1.0.tar.gz
| Download URL | formist_cli-0.1.0.tar.gz |
|---|---|
| Size | 663.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5242f4a0c8f48438938c15c2978bf98190c216c0772d459801f4a2dec8664bb1
|
|
BLAKE2b-256 checksum How to use checksums |
f9ca11c45f3cd16293c94056fd80e91ec560dec6ebee6b50e3d76cbda784efd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.1.0-py3-none-any.whl
| Download URL | formist_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 224.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
883f556c4690affe69ef13dd8c9176191b99ba52492454908c8a8de51f252a1a
|
|
BLAKE2b-256 checksum How to use checksums |
2c54b5d4825cfc09fba2437b4637b66be91d603f8e940ecbdb55d8c9f477c185
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.1.0
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.