Complete guide to all Fukura CLI commands with detailed options and examples
fuku initfuku addfuku searchfuku viewfuku openfuku servefuku gcfuku pushfuku pullfuku syncfuku config remotefuku config redactfuku daemonfuku hookThese options can be used with any command:
--repo <PATH>Path to the repository root (defaults to current directory)--quietSuppress celebratory output--versionDisplay version information--helpDisplay help informationInitialize a new Fukura repository in a directory
fuku init [PATH] [OPTIONS]--forceReinitialize existing repository--no-daemonSkip daemon setup--no-hooksSkip shell hooks installationfuku initfuku init ~/projects/myappfuku init --no-daemonfuku init --forceAdd a new note to the repository
fuku add [OPTIONS]--title <TEXT>Note title--body <TEXT>Note content--file <PATH>Read content from file--stdinRead content from stdin--tag <TAG>Add tag (can be used multiple times)--meta <KEY=VALUE>Add metadata (can be used multiple times)--link <URL>Add link (can be used multiple times)--privacy <LEVEL>Privacy level: private, org, or public (default: private)--author <NAME>Author name--email <EMAIL>Author email--no-editorSkip editor and use inline inputfuku add --title "Fixed CORS issue"fuku add \
--title "Redis connection error" \
--body "Added retry logic with exponential backoff" \
--tag redis \
--tag error-handling \
--meta severity=high \
--link "https://redis.io/topics/connection-handling" \
--privacy orgfuku add --title "Deploy script" --file ./deploy.shecho "Quick note" | fuku add --title "Temp fix" --stdingit log --oneline -5 | fuku add --title "Recent commits" --stdinfuku add --title "Quick note" --no-editorSearch notes in the repository
fuku search [QUERY] [OPTIONS]-n, --limit <N>Maximum number of results (default: 20)-s, --sort <SORT>Sort by: relevance, updated, or likes (default: relevance)--jsonOutput as JSON--tuiInteractive TUI mode-a, --all-reposSearch across all local repositoriesfuku search "database error"fuku search "api" --limit 5fuku search "deployment" --sort updatedfuku search cors nginx apifuku search "redis" --tuifuku search "kubernetes" --all-reposfuku search "error" --json | jq '.[].title'↑/↓Navigate resultsTabSwitch between results and filtersSpaceToggle tag filter1-4Set time filter (All/7d/30d/90d)fClear all filtersoOpen note in browserrRefresh searchq/EscExit TUIView a note's contents
fuku view <ID> [OPTIONS]--jsonOutput as JSONfuku view a3f8e9b2c4d5e6f7fuku view a3f8e9b2fuku view @latestfuku view @1fuku view @latest --jsonOpen a note in your web browser with rendered HTML
fuku open <ID> [OPTIONS]--theme <THEME>Theme: light or dark (default: dark)--browser-onlyOpen in browser directly (no local server)--url-onlyShow URL only (don't open browser)--server-port <PORT>Local server port (default: 8080)fuku open @latestfuku open a3f8e9b2 --theme lightfuku open @latest --browser-onlyfuku open a3f8e9b2 --url-onlyfuku open @latest --server-port 3000Start a local web server to browse notes via HTTP API
fuku serve [OPTIONS]--addr <HOST:PORT>Server address (default: 127.0.0.1:8765)--page-size <N>Default page size (default: 50)fuku servefuku serve --addr 0.0.0.0:8080fuku serve --page-size 100curl http://127.0.0.1:8765/notes?q=redis&limit=5curl http://127.0.0.1:8765/notes/a3f8e9b2curl -X POST http://127.0.0.1:8765/notes \
-H "Content-Type: application/json" \
-d '{"note":{"title":"API test","body":"Created via API","tags":[],"privacy":"private"}}'GET/healthzHealth checkGET/notes?q=<query>&limit=<n>&sort=<relevance|updated|likes>List/search notesGET/notes/:idGet specific notePOST/notesCreate noteGarbage collection: optimize storage by packing loose objects
fuku gc [OPTIONS]--pruneRemove loose objects after packingfuku gcfuku gc --prunePush a note to remote server
fuku push <ID> [OPTIONS]--remote <URL>Remote URL (overrides config)fuku push a3f8e9b2fuku push a3f8e9b2 --remote https://hub.fukura.devfuku push @latestPull a note from remote server
fuku pull <ID> [OPTIONS]--remote <URL>Remote URL (overrides config)fuku pull hub-id-12345fuku pull hub-id-12345 --remote https://hub.fukura.devSync notes with remote server
fuku sync [ID] [OPTIONS]--remote <URL>Remote URL (overrides config)--allSync all private notes--enable-autoEnable automatic syncing--disable-autoDisable automatic syncingfuku sync --enable-autofuku sync --disable-autofuku sync a3f8e9b2fuku sync --allfuku sync --all --remote https://hub.fukura.devConfigure remote URL for syncing
fuku config remote [OPTIONS]--set <URL>Set remote URL--clearClear remote URL--globalApply globally (all projects)fuku config remote --set https://hub.fukura.devfuku config remote --set https://hub.fukura.dev --globalfuku config remote --clearfuku config remote --clear --globalManage redaction rules for sensitive data
fuku config redact [OPTIONS]--set <NAME=REGEX>Add redaction rule (can be used multiple times)--unset <NAME>Remove redaction rule (can be used multiple times)fuku config redact --set api_key='sk-[a-zA-Z0-9]{32}'fuku config redact \
--set api_key='sk-[a-zA-Z0-9]{32}' \
--set password='password=\S+' \
--set token='token:\s*\S+'fuku config redact --unset api_keyfuku config redact --unset api_key --unset passwordManage the background daemon for automatic error capture
fuku daemon [OPTIONS]--statusShow daemon status and information--stopStop the daemon--foregroundRun daemon in foreground (for debugging)fuku daemonfuku daemon --statusfuku daemon --stopfuku daemon --foregroundManage shell hooks for automatic error detection
fuku hook [OPTIONS]--installInstall hooks--uninstallUninstall hooks--statusCheck installation statusfuku hook --installfuku hook --statusfuku hook --uninstall1. Initialize repository
cd ~/projects/myapp
fuku init2. Add a note
fuku add --title "Initial setup notes"3. Search notes
fuku search "setup"4. View note in browser
fuku open @latestThe daemon captures errors automatically
cd ~/projects/myapp
fuku init # Enables daemon by defaultRun commands normally - errors are auto-captured
npm test
cargo build
docker-compose upCheck captured errors
fuku search "error"
fuku daemon --status1. Configure remote
fuku config remote --set https://hub.fukura.dev2. Enable auto-sync
fuku sync --enable-auto3. Add notes with org privacy
fuku add --title "Deployment guide" --privacy org4. Sync all team notes
fuku sync --all5. Pull teammate's note
fuku pull hub-id-12345Set up redaction rules
fuku config redact \
--set api_key='sk-[a-zA-Z0-9]{32}' \
--set password='password=\S+' \
--set aws_key='AWS[A-Z0-9]{16}' \
--set token='Bearer\s+[A-Za-z0-9-._~+/]+=*'Now all notes automatically redact sensitive patterns
fuku add --title "API integration" --file ./script.sh@latest - Latest note
@1 - Second most recent note
@2 - Third most recent note
alias fn='fuku add --title'
alias fs='fuku search'
alias fv='fuku view @latest'