Standalone command-line interface for the Fortis Ecosystem. Interacts with the
fortis-agentdaemon over a fast local Unix domain socket.
fortis-cli provides terminal-based access to the Fortis vault and system capabilities. Instead of implementing crypto and database logic itself, the CLI acts as a thin client, sending commands to the fortis-agent IPC socket at /tmp/fortis_agent.sock.
This separation of concerns means the CLI can run without unlocking the database itself, and it has no network access.
cargo build --release# General format
fortis <COMMAND> [ARGS]Creates a new "Secure Note" in the vault. The agent encrypts and stores it.
fortis add "My Secret Note"Retrieves vault entries by title.
Note: Currently, the underlying agent IPC implementation treats all
GETcommands as a "list all" request, returning all vault entries in a debug format.
fortis get "My Secret Note"Generates a cryptographically secure password of the specified length.
# Default length (16)
fortis generate
# Custom length
fortis generate --length 24Initiates the pairing process with a mobile device.
fortis pairReturns a 6-digit code (e.g., 482-916) which must be entered into the FortisMobile app along with the agent's Tailscale IP to exchange Ed25519 public keys.
Triggers an immediate peer-to-peer sync over gRPC.
Note: This is currently a stub implementation.
fortis sync- No I/O — The CLI has no network dependencies and does not read the vault database file.
- Process Isolation — All crypto occurs in the background daemon.
- Socket Permissions — The IPC socket
/tmp/fortis_agent.sockis created with0600permissions (owner-only access). Only your user can run CLI commands.