Forke Mail
3 min read
Forke Mail CLI
CLI reference
Install
sh
curl -fsSL https://mail.forke.space/install.sh | shOn Windows, download forke-mail-windows-amd64.exe from the latest release. To build from source: go build -o forke-mail ./cmd/forke-mail in the forke-mail repository.
Commands
| Command | What it does |
|---|---|
forke-mail login | Sign in through your browser. Credentials are stored in your user config folder, readable only by you. |
forke-mail logout | Revoke this device and remove the stored credentials. |
forke-mail whoami | Project, plan, credits, limits and whether you're using a test key. |
forke-mail init | Set up the current folder: test key in .env, .env in .gitignore, notes in AGENTS.md. |
forke-mail send | Send an email: --to, --from, --subject, --text, --html, --html-file, --template, --data key=value. |
forke-mail domains | List sending domains and their status. |
forke-mail tools | List every tool with its description. |
forke-mail call <tool> | Run any tool with JSON ('{"name":"x"}') or key=value arguments. |
forke-mail mcp | Run as a local MCP server over stdio. |
Options: --yes answers confirmation prompts with yes (approvals still need the browser), --json prints raw output, --no-browser prints links instead of opening them, --url points at another server. Environment: FORKE_MAIL_API_KEY uses a key instead of signing in, FORKE_MAIL_URL changes the server.
When a command needs confirmation the CLI asks in the terminal. When it needs approval it opens the approval page and waits until you decide.