MayFly LogoMayFly
CLI Reference

CLI Commands Overview

Complete index and syntax reference for all MayFly command-line operations.

Command Syntax

MayFly provides both the primary binary mayfly and the convenient short alias mf:

# 1. Direct process execution (recommended)
mf <command> [arguments...]
mayfly <command> [arguments...]

# 2. Vault and repository management commands
mf <subcommand> [flags] [arguments...]
mayfly <subcommand> [flags] [arguments...]

# 3. Interactive TUI dashboard
mf
mf current

Command Matrix

CommandShorthandDescriptionPrimary Flags
mf <command>mf npm startSpawns target binary with in-memory secrets injection-- separator
mf initmf initInitializes an encrypted vault for the current directory inode-path <DIR>
mf setmf set KEY [VAL]Stores or updates an encrypted variable in the project vaultEphemeral alt-screen
mf getmf get KEYRetrieves decrypted secret value (stdout or clipboard)--clip / -c
mf listmf listLists all registered secret keys for the current project--json
mf deletemf delete KEYRemoves a secret key from the encrypted vaultKey name
mf importmf import [.env]Bulk-imports .env into vault with optional plaintext deletion--delete, --no-delete
mf rotate-passwordmf rotate-passwordRe-encrypts all project vaults with a new master passwordInteractive prompts
mf scanmf scan [dir]Scans source tree for plaintext secrets and API keys--depth, --fix
mf auditmf auditViews chronological access and modification event logLog history
mf audit verifymf audit verifyCryptographically verifies SHA-256 Merkle hash chainIntegrity check
mf backupmf backup [file]Exports an encrypted snapshot of vault and registered projectsSnapshot file path
mf restoremf restore <file>Restores project keys and vault data from snapshotSnapshot file path
mf migratemf migrate <old> <new>Updates project identity when a repository directory movesSource & target path
mf updatemf updateChecks for newer releases and interactively prompts to update--check, --yes
mf completionmf completion <shell>Generates shell autocompletion script (bash, zsh, fish)Shell format
mf uninstallmf uninstallCleanly removes binaries, cleans PATH, and wipes vault-u / --uninstall
mfmf / mf currentLaunches zero-dependency full-screen terminal UI dashboardProject grid

Global Options

The following flags and environment variables are supported across operations:

  • -h, --help: Display command usage and syntax.
  • -v, --version: Output current MayFly binary version and build metadata.
  • MAYFLY_VAULT_PASSWORD: Environment variable to provide the master vault password non-interactively in automated headless CI environments (GitHub Actions, GitLab CI, Buildkite).

Next Steps