memaxdocs
CLI Reference

memax push

Push knowledge to your Memax hub. Accepts files, stdin, URLs, and directories.

Push content into your memory hub.

Usage

memax push [options]

Options

FlagShortDescriptionDefault
--file <path>-fFile to push (repeatable, supports globs)
--category <cat>-cOverride auto-classificationAuto-detected
--tags <tags>Comma-separated tags
--boundary <level>private, team, or publicprivate
--hub <id>Target hubDefault hub
--title <title>-tOverride auto-generated titleAuto-generated
--hint <text>Context hint for classifier
--snapshotFor URLs: capture full contentLink-only
--mode <mode>auto, suggest, or confirmsuggest
--dry-runShow what would be pushed
--forceSkip secret detection warnings

Examples

Push a file

memax push --file ./ARCHITECTURE.md
✓ Saved — "Architecture Overview" (core · private) [48ms]

Push with metadata

memax push -f ./runbook.md \
  --category reference \
  --tags "ops,incidents" \
  --boundary team \
  --hint "on-call runbook for production incidents"

Push from stdin

echo "We chose JWT for auth because of stateless verification" | memax push

cat meeting-notes.txt | memax push --category daily

Push multiple files

memax push -f ./docs/*.md
memax push -f ./src/auth.ts -f ./src/middleware.ts

Push a URL

# Store as link reference (default)
memax push https://docs.google.com/document/d/1abc...

# Snapshot the full content
memax push https://example.com/pricing --snapshot

Dry run

memax push -f ./ARCHITECTURE.md --dry-run
Would push:
  Title:    "Architecture Overview"
  Category: core (confidence: 94%)
  Boundary: private
  Size:     2,847 bytes → 4 chunks

Classification modes

ModeBehavior
autoSave immediately, no review
suggestSave immediately, show review hint (default)
confirmInteractive confirmation before saving

Secret detection

Memax scans content for potential secrets (API keys, tokens, passwords) before pushing. If detected:

  • In suggest/auto mode: a warning is shown, push continues
  • In confirm mode: you're asked to confirm
  • Use --force to skip secret detection