CLI Tools
Command
/add-command
Create a new CLI command for mgrep.
> /plugin marketplace add mixedbread-ai/mgrep> /plugin install mgrep@Mixedbread-Grep
Command definition
add-command.mdAdd Command
Create a new CLI command for mgrep.
Arguments
- `$ARGUMENTS` - The name of the new command (e.g., "status", "info")
Steps
1. Create a new file at `src/commands/$ARGUMENTS.ts` following the pattern:
import { Command } from "commander";
export const $ARGUMENTS = new Command("$ARGUMENTS")
.description("Description of what this command does")
.option("-x, --example <value>", "Example option description")
.action(async (options) => {
// Implementation here
});2. Register the command in `src/index.ts`:
- Add import: `import { $ARGUMENTS } from "./commands/$ARGUMENTS.js";`
- Add to program: `program.addCommand($ARGUMENTS);`
3. Add tests in `test/test.bats`:
@test "$ARGUMENTS command runs successfully" {
run mgrep $ARGUMENTS
assert_success
}4. Run verification: `pnpm typecheck && pnpm test`
Stats
4,440
Stars
Quiet
Maintenance
TypeScript
Language
Apache-2.0
License
Last commit
Created
Added
In this plugin
See everything inside Ships withmgrep
A calm, CLI-native way to semantically grep everything, like code, images, pdfs and more.
4.4k1 skill
Other commands on mgrep.
More commands from other plugins.
cli-anything
CommandBuild a complete, stateful CLI harness for any GUI application.
canvas
CommandSpawn interactive terminal canvases for calendars, documents, and flight booking
debug-logs
CommandAnalyze claudish debug logs from a failed model run. Extracts SSE fixtures, diagnoses failures, adds regression tests.
report-template
CommandSummarize completed work, current risks, and next actions.

