Commands Reference

Complete reference for all ContextMark CLI commands.

Library Management

contextmark init-library

Initialize the ContextMark library at ~/.contextmark.

Options: -f, --force - Reinitialize even if exists

contextmark blocks

List all available blocks in your library.

Options: -a, --all - Show as flat table

contextmark profiles

List all available profiles.

Block Commands

contextmark block create <slug>

Create a new block. Slug format: category/name (e.g., laravel/base).

contextmark block show <slug>

Display the content of a block.

contextmark block edit <slug>

Open a block in your default editor.

contextmark block remove <slug>

Remove a block from the library.

Options: -f, --force - Skip confirmation

Profile Commands

contextmark profile create <slug>

Create a new profile.

contextmark profile show <slug>

Display profile configuration.

contextmark profile edit <slug>

Open a profile in your default editor.

contextmark profile remove <slug>

Remove a profile.

Options: -f, --force - Skip confirmation

Agent Commands

contextmark agents

List all available agents in your library.

contextmark agent create <slug>

Create a new agent.

Options: -n, --name, -d, --description

contextmark agent show <slug>

Display agent content.

contextmark agent edit <slug>

Open an agent in your default editor.

contextmark agent remove <slug>

Remove an agent.

Options: -f, --force - Skip confirmation

contextmark add-agent <slug>

Add an agent to the current project.

Command Commands

contextmark commands

List all available commands in your library.

contextmark command create <slug>

Create a new command.

Options: -n, --name, -d, --description

contextmark command show <slug>

Display command content.

contextmark command edit <slug>

Open a command in your default editor.

contextmark command remove <slug>

Remove a command.

Options: -f, --force - Skip confirmation

contextmark add-command <slug>

Add a command to the current project.

Project Commands

contextmark init

Initialize a project with a profile.

Options: -p, --profile, -b, --blocks, --no-global, --dry-run, -f, --force

contextmark status

Show project status and check for block updates.

contextmark update

Update CLAUDE.md with latest blocks.

Options: -a, --all - Update all projects, -d, --diff, -f, --force

Sync Commands

contextmark sync status

Check synchronization status with remote Git.

contextmark sync push

Push library changes to remote.

contextmark sync pull

Pull library changes from remote.

contextmark sync setup

Configure Git synchronization.

Need Help?

Run contextmark --help or contextmark <command> --help for detailed usage.