Skip to content

moncface/mon-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mon-cli

GitHub release License

Developer tools in your terminal. CLI companion for montab.

by moncface

Install

npm install -g mon-tab

Update

npm update -g mon-tab

Usage

mon uuid              # 550e8400-e29b-41d4-a716-...
mon pw                # Xk#9mP2@vL5q!...
mon b64 hello         # aGVsbG8=
mon sha hello         # 2cf24dba5fb0a30e...
mon calc 1920/1080    # 1920/1080 = 1.777777778
mon calc 2 inch to cm # 5.08 cm (math.js)
mon --version         # 0.5.2
mon ?                 # list all commands
echo "b64 hello" | mon  # aGVsbG8= (stdin pipe)

Type mon ? to see all available commands.

.lndf Distillation (CLI only)

mon ld              # generate project snapshot from git + package.json + npm test
mon lv              # view current .lndf
mon lv --reindex    # build SQLite index from hako/ frontmatter
mon lv --tag sql    # search hako by tag
mon lv --after 2026-03  # search hako by date
mon lv --stats      # show hako index statistics
mon lc              # generate + copy to clipboard

Generates a minimal project state file (.lndf/current.lndf) designed for LLM context injection. See LNDF for the philosophy.

Debug Distillation (v0.5.2)

mon ld automatically runs npm test if scripts.test exists in package.json:

  • test:pass — all tests passing
  • test:fail + error:<stderr tail> — tests failing, status becomes debugging
  • test:timeout — tests exceeded 30s, status becomes debugging
  • No scripts.test → fields omitted (Defaults Are Silence)

Cross-Project Source Collection (CLI only)

mon lp create myproj       # create a project in ~/.mon/projects/
mon lp add myproj file.js  # add a source to the project
mon lp view myproj         # list sources with preview
mon lp dump myproj         # concatenate all sources for LLM context
mon lp list                # list all projects

Aggregate source files across projects for LLM context injection.

Architecture

mon-cli imports shared commands from the mon-tab npm package. Chrome-only commands (like rem) are not available in CLI.

Support

If montab saves you time:

Support moncface

License

Apache-2.0

About

Developer tools in your terminal. CLI companion for Mon [tab] Chrome extension.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors