Command reference
Commands
| Command | Description |
|---|---|
codemap | Pack the current directory. |
codemap config | Create or update the global configuration file. |
codemap mcp | Run the MCP server over stdio. |
codemap --help | Show help. |
codemap --version | Show the version. |
Options
| Option | Alias | Value | Description |
|---|---|---|---|
--format | -f | markdown, xml, json, plain | Output format. |
--output | -o | path | Output file. |
--output-mode | file, stdout, clipboard | Where output goes. | |
--stdout | flag | Write to stdout. | |
--clipboard | flag | Copy to the clipboard. | |
--include | -i | patterns | Include patterns. |
--exclude | -e | patterns | Exclude patterns. |
--max-file-size | -m | bytes | Skip larger files. |
--token-budget | -t | number | Stop after this many tokens. |
--split-output | bytes | Split output into numbered files. | |
--skills | -s | name or path | Load a skill. Repeatable. |
--instruction | path | Prepend an instruction file. | |
--header-text | text | Add header text. | |
--truncate-base64 / --no-truncate-base64 | flag | Truncate or keep base64 runs. | |
--summary / --no-summary | flag | File summary. | |
--tree / --no-tree | flag | Directory structure. | |
--line-numbers / --no-line-numbers | flag | Line numbers. | |
--remove-comments / --no-remove-comments | flag | Remove comments. | |
--remove-empty-lines / --no-remove-empty-lines | flag | Remove empty lines. | |
--security-check / --no-security-check | flag | Run the security scan. | |
--include-diffs / --no-include-diffs | flag | Include Git diffs. | |
--include-logs / --no-include-logs | flag | Include Git logs. | |
--include-logs-count | number | Number of log entries. | |
--remote | -r | repo or URL | Pack a remote repository. |
--remote-branch | -b | branch | Branch for --remote. |
--watch | -w | flag | Re-pack on change. |