Skip to content

CLI Commands ​

Complete reference for all Gyrus CLI commands.

Global Options ​

These options work with all commands:

OptionDescription
--workspace <name>Target a specific workspace instead of the default
--helpShow help for a command
--versionShow version number

Commands ​

gyrus init ​

Initialize a new workspace.

bash
gyrus init [path] [options]

Arguments:

ArgumentDefaultDescription
path~/gyrusDirectory path for the workspace

Options:

OptionDescription
--name <name>Workspace name (defaults to directory name)
--description <desc>Human-readable description

Examples:

bash
# Initialize default workspace
gyrus init

# Initialize with custom path and name
gyrus init ~/work/brain --name work --description "Work projects"

# Initialize in current directory
gyrus init ./brain --name myproject

gyrus workspaces ​

List all registered workspaces.

bash
gyrus workspaces
gyrus ws  # alias

Output:

Workspaces:
  * personal    ~/gyrus                Personal knowledge
    work        ~/work/brain           Work projects

The * indicates the default workspace.


gyrus use ​

Set the default workspace.

bash
gyrus use <name>

Arguments:

ArgumentRequiredDescription
nameYesName of workspace to set as default

Examples:

bash
gyrus use work
gyrus use personal

gyrus doctor ​

Run diagnostics and health checks.

bash
gyrus doctor [options]

Options:

OptionDescription
--workspace <name>Check a specific workspace
--allCheck all workspaces

Checks performed:

  • Configuration file exists and is valid
  • Workspace directories exist and are accessible
  • Required folders (knowledge/, adrs/) are present
  • File permissions are correct

Examples:

bash
# Check default workspace
gyrus doctor

# Check specific workspace
gyrus doctor --workspace work

# Check all workspaces
gyrus doctor --all

gyrus mcp ​

Start the MCP server for AI agent integration.

bash
gyrus mcp [options]

Options:

OptionDescription
--workspace <name>Initial workspace context

The MCP server uses stdio transport for communication with AI agents.

Example configuration for Claude Desktop:

json
{
  "mcpServers": {
    "gyrus": {
      "command": "gyrus",
      "args": ["mcp"]
    }
  }
}

gyrus serve ​

Start the dashboard web server.

bash
gyrus serve [options]

Coming Soon

This command is not yet implemented.

Options:

OptionDefaultDescription
--port <number>3333Port to listen on

gyrus daemon ​

Start HTTP/SSE MCP server for network access.

bash
gyrus daemon [options]

Coming Soon

This command is not yet implemented.

Options:

OptionDefaultDescription
--port <number>3334Port to listen on

Skill Commands ​

gyrus skill list ​

List all skills.

bash
gyrus skill list [options]
gyrus s list  # alias

Options:

OptionDescription
--workspace <name>Target workspace
--tags <t1,t2,...>Filter by tags

gyrus skill read ​

Read a specific skill.

bash
gyrus skill read <name> [options]
gyrus s read <name>  # alias

Arguments:

ArgumentRequiredDescription
nameYesSkill name to read

Options:

OptionDescription
--workspace <name>Target workspace

Search skills.

bash
gyrus skill search <query> [options]
gyrus s search <query>  # alias

Arguments:

ArgumentRequiredDescription
queryNoText to search for

Options:

OptionDescription
--workspace <name>Target workspace
--tags <t1,t2,...>Filter by tags
--trigger <pattern>Filter by trigger pattern

gyrus skill create ​

Create a new skill.

bash
gyrus skill create [options]
gyrus s create  # alias

Options:

OptionRequiredDescription
--name <name>YesSkill name in kebab-case
--title <title>YesHuman-readable title
--content <content>Yes*Skill content
--file <path>Yes*Read content from file
--workspace <name>NoTarget workspace
--description <desc>NoBrief description
--tags <t1,t2,...>NoTags (comma-separated)
--triggers <t1,t2,...>NoTriggers (comma-separated)
--apply-to <p1,p2,...>NoFile patterns (comma-separated)
--related <n1,n2,...>NoRelated skill names

*Either --content or --file is required.

Examples:

bash
# Create with inline content
gyrus skill create \
  --name code-review \
  --title "Code Review Guide" \
  --content "# Code Review\n\nWhen reviewing..."

# Create from file
gyrus skill create \
  --name api-design \
  --title "API Design Guidelines" \
  --file ./guidelines.md \
  --tags api,design

gyrus skill update ​

Update an existing skill.

bash
gyrus skill update <name> [options]
gyrus s update <name>  # alias

Arguments:

ArgumentRequiredDescription
nameYesSkill name to update

Options:

OptionDescription
--workspace <name>Target workspace
--title <title>New title
--content <content>New content
--file <path>Read new content from file
--description <desc>New description
--tags <t1,t2,...>New tags (replaces existing)
--triggers <t1,t2,...>New triggers (replaces existing)
--apply-to <p1,p2,...>New file patterns (replaces existing)
--related <n1,n2,...>New related skills (replaces existing)

Exit Codes ​

CodeMeaning
0Success
1General error
2Configuration error
3Workspace not found

Environment Variables ​

VariableDescription
GYRUS_CONFIGOverride config file location (default: ~/.config/gyrus/config.json)
GYRUS_DEFAULT_WORKSPACEOverride default workspace

Configuration File ​

The global configuration is stored at ~/.config/gyrus/config.json:

json
{
  "version": 1,
  "default": "personal",
  "workspaces": [
    {
      "name": "personal",
      "path": "~/gyrus",
      "description": "Personal knowledge"
    }
  ],
  "settings": {
    "serve": { "port": 3333 },
    "daemon": { "port": 3334 }
  }
}

See Also ​

Released under the MIT License.