AI IDE List
AI IDE List
Atlas des commandes Grok BuildVérifié le 16 juillet 2026 · v0.2.101

Aide-mémoire Grok Build

La carte complète des commandes : démarrage, automatisation headless, permissions, worktrees, MCP, plugins, mémoire et commandes TUI fixes.

17
sections complètes
CLI
CLI + flags globaux
TUI
commandes TUI fixes
CI
recettes d’automatisation

Recherche dans toutes les commandes, exemples, tables et notes de la source.

As of July 16, 2026, the latest official Grok Build release is v0.2.101, published July 13. The official CLI Reference documents the most commonly used options, while plugins, Skills, experiments, and account entitlements can add commands dynamically. This reference combines fixed commands from official documentation, recent changelog additions, and conditionally available commands. ([SpaceXAI][1])

Check the real command surface installed on your machine first:

bash
grok version
grok --help
grok <subcommand> --help

Inside Grok Build, run:

text
/help

You can also type / to open the command menu for the installed version.

01

Installation, lancement et connexion

Installez sur macOS, Linux, WSL ou Windows ; lancez dans le projet ou dossier choisi ; authentifiez-vous avec OAuth, device flow ou XAI_API_KEY.

1. Install

macOS, Linux, and WSL:

bash
curl -fsSL https://x.ai/cli/install.sh | bash

Windows PowerShell:

powershell
irm https://x.ai/cli/install.ps1 | iex

2. Launch

bash
cd your-project
grok

Launch in a specific working directory:

bash
grok --cwd /path/to/project

Use an API key:

bash
export XAI_API_KEY="xai-..."
grok

3. Sign in and sign out

bash
grok login
grok login --device-auth
grok logout

--device-auth is intended for SSH sessions, servers, containers, WSL, and other environments where opening a browser is inconvenient. (SpaceXAI Docs)

02

Commandes CLI de premier niveau

Toutes les commandes de premier niveau pour travail interactif, authentification, inspect, modèles, MCP, plugins, sessions, import, mémoire, worktrees, dashboard, ACP, wrap, mises à jour, completions et setup géré.

These are the top-level commands currently listed by the official CLI Reference. (SpaceXAI Docs)

CommandPurpose
grokStart the interactive terminal interface.
grok loginSign in to Grok Build.
grok logoutSign out and remove cached credentials.
grok inspectShow configuration, rules, Skills, plugins, Hooks, and MCP loaded for the current directory.
grok modelsList models currently available to the account or API key.
grok mcp ...Manage MCP servers.
grok plugin ...Manage plugins.
grok plugin marketplace ...Manage plugin marketplace sources.
grok sessions ...List, search, and delete sessions.
grok export ...Export session records.
grok import ...Import Claude Code sessions.
grok memory clear ...Clear cross-session memory.
grok worktree ...Manage Git Worktrees created by Grok.
grok dashboardOpen the Agent Dashboard.
grok agent stdioRun as an ACP agent.
grok wrap ...Wrap SSH, Docker, kubectl, and similar terminal commands.
grok updateCheck for or install updates.
grok versionPrint the installed version.
grok completions ...Generate shell completions.
grok setupFetch and install managed configuration.
03

Diagnostic, modèles et configuration

Inspectez les rules et extensions effectives, listez et choisissez les modèles accessibles, réglez effort, vérifiez la version, générez les completions et installez la configuration gérée.

grok inspect

Show exactly what Grok discovers in the current directory:

bash
grok inspect
grok inspect --json

The report normally includes configuration sources, AGENTS.md and CLAUDE.md files, Skills, plugins, Hooks, MCP servers, Claude/Cursor/Codex-compatible configuration, authentication, and model settings. This is the most important command when a Skill, MCP server, Hook, or rule is not taking effect.

grok models

bash
grok models

Lists models accessible through the current account, API key, or custom model endpoint.

Choose a model at launch:

bash
grok -m <model-id>
grok --model <model-id>

Switch models in the interactive interface:

text
/model <model-id>
/m <model-id>

Version, completions, and managed setup

bash
grok version
grok completions bash
grok completions zsh
grok completions fish
grok setup

grok setup primarily fetches and installs organization-managed Grok Build configuration. (SpaceXAI Docs)

04

Mode Headless et scripts

Exécutez des prompts ponctuels avec sortie plain, JSON, streaming JSON ou JSON Schema ; désactivez les updates en CI et exposez Grok via ACP stdio.

One-shot execution

bash
grok -p "Explain this repository"
grok --single "Explain this repository"

-p and --single run one task and then exit, which is useful for scripts, CI, bots, and automation. ([SpaceXAI Docs][4])

Output formats

bash
grok -p "List all TODO comments" --output-format plain
grok -p "List all TODO comments" --output-format json
grok -p "Explain the architecture" --output-format streaming-json
FormatBehavior
plainHuman-readable text.
jsonOne JSON object after the task completes.
streaming-jsonA continuous stream of newline-delimited JSON events.

JSON Schema output

bash
grok -p "Analyze this project" \
  --json-schema '{"type":"object","properties":{"language":{"type":"string"}},"required":["language"]}'

--json-schema requires Headless mode to return JSON matching the supplied schema instead of free-form text. ([SpaceXAI][1])

CI and ACP

bash
grok --no-auto-update -p "Run the test suite"

grok \
  --no-auto-update \
  --always-approve \
  --output-format json \
  -p "Review this pull request"

grok agent stdio

ACP mode communicates over stdin/stdout using JSON-RPC and is designed for IDEs, editors, and other agent clients. (SpaceXAI Docs)

05

Options globales de la CLI

Matrice complète des flags pour sessions, dossiers, modèles, effort, permissions, filtres allow/deny, sandbox, prompts, tools, fonctions et présentation du terminal.

Session and directory options

OptionPurpose
--cwd <PATH>Set the working directory.
-r, --resume [<ID>]Resume a session; omit the ID to resume the latest session.
-c, --continueContinue the latest session for the current directory.
-s, --session-id <UUID>Assign a UUID to a new session.
--fork-sessionCreate a branched session when resuming.
-w, --worktree [<NAME>]Start in a new Git Worktree.
--ref <REF>Choose the branch, tag, or commit used as the Worktree base.

--session-id names a new session; it does not resume an existing one. Use --resume for that. ([SpaceXAI Docs][3])

Model and reasoning options

OptionPurpose
-m, --model <MODEL>Select a model.
--effort <LEVEL>Set reasoning effort.
--reasoning-effort <LEVEL>Alias for --effort.
--max-turns <N>Limit the maximum number of agent turns.

Available effort levels vary by model. Check with grok models or /effort. --reasoning-effort has been equivalent to --effort since v0.2.89. ([SpaceXAI][1])

Permissions

OptionPurpose
--always-approveAutomatically approve every tool call.
--yoloAlias for --always-approve.
--permission-mode <MODE>Select a permission mode.
--allow <RULE>Add an allow rule.
--deny <RULE>Add a deny rule.
--sandbox <PROFILE>Enable a sandbox profile.
--no-ask-userPrevent the agent from asking the user.
--dangerously-skip-permissionsClaude Code compatibility alias.

Headless permission modes:

ValueBehavior
defaultUse the default permission behavior.
dontAskReject operations that are not explicitly allowed.
acceptEditsAuto-approve file edits but still ask about shell commands.
bypassPermissionsSkip permission checks.
planPlan mode.
bash
grok -p "Review the API changes" \
  --permission-mode dontAsk \
  --allow 'Bash(git *)' \
  --allow 'Bash(gh *)' \
  --allow 'Read' \
  --allow 'Grep' \
  --deny 'Bash(rm -rf *)'

Permission filters include Bash, Edit, Read, Grep, MCPTool, and WebFetch:

bash
--allow 'Bash(git *)'
--allow 'Edit(**/*.ts)'
--allow 'MCPTool(linear__*)'
--deny 'Edit(**/.env)'

Deny rules take precedence over allow rules. ([SpaceXAI Docs][5])

Sandbox profiles

bash
grok --sandbox off
grok --sandbox workspace
grok --sandbox read-only
grok --sandbox strict
grok --sandbox my-custom-profile
ProfileRecommended use
offDisable sandboxing.
workspaceDaily development with writes restricted to the workspace and approved locations.
read-onlyAudits and read-only analysis.
strictUntrusted repositories and high-security environments.
devboxCloud development environments.
Custom nameLoad a custom profile from sandbox.toml.

The sandbox is applied when the process starts and cannot be fully removed in the middle of that process. ([SpaceXAI Docs][5])

Prompt and tool options

OptionPurpose
--rules <TEXT>Append rules to the system prompt.
--system-prompt-override <TEXT>Replace the complete system prompt.
--tools <LIST>Select allowed built-in tools.
--disallowed-tools <LIST>Remove tools.
--allowedToolsClaude Code compatibility alias.
--disallowedToolsClaude Code compatibility alias.
--append-system-promptClaude Code compatibility alias.
--system-promptClaude Code compatibility alias.
bash
grok \
  --rules "Do not modify generated files. Run tests after every change." \
  -p "Refactor the authentication module"

Feature switches

OptionPurpose
--no-planDisable planning.
--no-subagentsDisable subagents.
--no-memoryDisable memory.
--disable-web-searchDisable web search.
--experimental-memoryEnable cross-session memory.
--oauthForce OAuth on the welcome screen.
--plugin-dir <PATH>Load an additional plugin directory.
--hunk-tracker-mode <MODE>Configure or disable the code hunk tracker.

--hunk-tracker-mode is a low-level, versioned option; use local grok --help for its current values. (SpaceXAI Docs)

Interface options

OptionPurpose
--no-alt-screenRun inline instead of using the terminal alternate screen.
--minimalStart with the compact terminal layout.
--fullscreenForce the full-screen TUI.
--no-auto-updateDisable the update check for this run.

The --minimal and --fullscreen preference is remembered for future launches. (SpaceXAI)

06

Gestion des sessions

Reprenez ou continuez des sessions, listez/recherchez/supprimez l’historique, exportez vers fichier ou clipboard, importez Claude Code et capturez le session ID dans les scripts.

Resume or continue work:

bash
grok --resume <session-id>
grok --resume
grok -c

List, search, and delete sessions:

bash
grok sessions list
grok sessions search "authentication"
grok sessions delete <session-id>

Export a session to stdout, a file, or the clipboard:

bash
grok export <session-id>
grok export <session-id> output.md
grok export <session-id> --clipboard

Import Claude Code sessions:

bash
grok import
grok import <target>
grok import <target1> <target2>

Capture a new session ID and continue it later:

bash
SESSION_ID=$(
  grok -p "Start the refactor" \
    --output-format json |
  jq -r '.sessionId'
)

grok -r "$SESSION_ID" -p "Continue and run tests"

(SpaceXAI Docs)

07

Git Worktrees

Démarrez des sessions Worktree isolées, distinguez la syntaxe de nommage, inspectez/supprimez, prévisualisez et nettoyez les enregistrements absents ou anciens.

Start a Worktree session

bash
grok -w
grok --worktree
grok --worktree=feat "Refactor module X"
grok -w --ref main "Fix the flaky test"
grok -w -r <session-id>

In grok --worktree=feat "Refactor module X", feat is the Worktree name. With grok --worktree feat, some parsers may treat feat as the prompt, so the explicit equals-sign form is recommended.

Manage Worktrees

bash
grok worktree list
grok worktree ls
grok worktree show <id>
grok worktree rm <id>
grok worktree rm <id1> <id2>
grok worktree rm <id> --dry-run
grok worktree gc
grok worktree gc --max-age 7d
CommandPurpose
list / lsList Worktrees managed by Grok.
showShow details for one Worktree.
rmRemove one or more Worktrees.
rm --dry-runPreview removal without changing anything.
gcRemove records whose directories no longer exist.
gc --max-age 7dRemove unused Worktrees idle for more than seven days.

(SpaceXAI Docs)

08

Commandes MCP

Listez les MCP servers, ajoutez des transports stdio ou HTTP, headers et variables, choisissez le project scope, retirez les servers et lancez doctor.

List servers

bash
grok mcp list
grok mcp list --json

Add a local stdio server

bash
grok mcp add filesystem -- \
  npx -y @modelcontextprotocol/server-filesystem /path/to/dir

Everything after -- is the real MCP server launch command.

Add a remote HTTP server

bash
grok mcp add \
  --transport http \
  linear \
  https://mcp.linear.app/mcp

Add headers

bash
grok mcp add \
  --transport http \
  api \
  https://mcp.example.com/mcp \
  --header "Authorization: Bearer ${API_TOKEN}"

grok mcp add \
  --transport http \
  example \
  https://example.com/mcp \
  -H "Authorization: Bearer ${TOKEN}" \
  -H "X-Team-ID: ${TEAM_ID}"

Headers may be repeated.

Project-scoped MCP

bash
grok mcp add \
  --scope project \
  filesystem -- \
  npx -y @modelcontextprotocol/server-filesystem .

This writes .grok/config.toml in the project rather than user-global configuration.

Remove and diagnose

bash
grok mcp remove <name>
grok mcp doctor
grok mcp doctor <name>
grok mcp doctor --json
grok mcp doctor <name> --json

Related options include -e for environment variables, -H / --header, --transport, and --scope project. (SpaceXAI Docs)

09

Plugins et Marketplace

Listez, installez, désinstallez, mettez à jour, activez, désactivez, détaillez et validez les plugins ; gérez les sources Marketplace distantes ou locales.

Plugin commands

bash
grok plugin list
grok plugin install ...
grok plugin uninstall ...
grok plugin update ...
grok plugin enable ...
grok plugin disable ...
grok plugin details ...
grok plugin validate ...
SubcommandPurpose
listShow discovered or installed plugins.
installInstall a plugin.
uninstallUninstall a plugin.
updateUpdate a plugin.
enableEnable a plugin.
disableDisable a plugin.
detailsShow plugin details.
validateValidate plugin structure and configuration.

Marketplace commands

bash
grok plugin marketplace list
grok plugin marketplace add ...
grok plugin marketplace remove ...
grok plugin marketplace update ...

A Marketplace source may be a configured remote source or a local directory. Accepted arguments vary by source, so verify them with:

bash
grok plugin install --help
grok plugin marketplace add --help

Plugins can contribute Skills, Agents, Hooks, MCP servers, LSP servers, and slash commands. (SpaceXAI Docs)

10

Mises à jour

Vérifiez les updates, installez une version précise ou basculez entre les canaux Alpha et Stable.

bash
grok update
grok update --check
grok update --version <VERSION>
grok update --alpha
grok update --stable

Example:

bash
grok update --check
grok update --version 0.2.101
grok update --alpha
grok update --stable
OptionPurpose
No optionUpdate to the latest release on the current channel.
--checkCheck without installing.
--version <V>Install a specific version.
--alphaSwitch to or install the Alpha channel.
--stableSwitch to or install the Stable channel.

(SpaceXAI Docs)

11

Proxy de terminal : grok wrap

Encapsulez SSH, Docker et kubectl pour transmettre le clipboard OSC 52 distant au clipboard local ; la fonction reste expérimentale.

bash
grok wrap <command...>

Common forms:

bash
grok wrap ssh user@host
grok wrap docker exec -it container bash
grok wrap kubectl exec -it pod-name -- bash

grok wrap runs the target command in a local PTY, receives OSC 52 clipboard content emitted by the remote process, and forwards it to the local clipboard. It is useful when running Grok through SSH, inside Docker containers, in Kubernetes Pods, or whenever remote copy operations cannot reach the local clipboard. The feature is currently marked experimental. (SpaceXAI Docs)

12

Slash commands TUI fixes

Toutes les commandes TUI fixes : aide, sessions, contexte, historique, modèles, permissions, plans, goals, tâches, médias, UI, diagnostic, extensions, mémoire, compte, confidentialité, feedback et releases.

Type these commands after entering the interactive grok interface.

1. Help and navigation

CommandPurpose
/helpOpen command and keyboard-shortcut help.
/docsOpen the official guide and jump by heading.
/homeReturn to the welcome page.
/quitExit.
/exitAlias for /quit.
/newStart a new session.
/clearAlias for /new.

/docs was added in v0.2.87 and may be absent from older Modes pages. ([SpaceXAI Docs][10])

2. Sessions

CommandPurpose
/resumeResume a previous session.
/sessionsOpen sessions or the Agent Dashboard.
/forkCreate a parallel session from the current context.
/fork --worktreeFork into an isolated Worktree.
/fork --no-worktreeFork without creating a Worktree.
/rename <title>Rename the current session.
/title <title>Alias for /rename.
/shareCreate a share link for the session.
/session-infoShow session details.
/exportExport the current session.
/recapGenerate a session recap manually.

Newer versions open the Agent Dashboard directly from /sessions instead of showing only a simple history picker. ([SpaceXAI Docs][10])

3. Context and history

CommandPurpose
/contextShow context usage.
/compact [instructions]Compact the conversation context.
/rewindReturn to an earlier user turn and restore file state.
/copy [N]Copy the latest or Nth-latest response.
/findSearch the current scrollback.
/historySearch prompt history.
/transcriptOpen the full transcript in $PAGER.
text
/compact Preserve the API design decisions and unresolved bugs
/copy
/copy 2

/history is a newer prompt-history search command. ([SpaceXAI Docs][10])

4. Models and reasoning

CommandPurpose
/model <name>Switch models.
/m <name>Alias for /model.
/effortChange reasoning effort for the current model.
/personasManage personas.
/config-agentsManage agent definitions.
/agentsAlias for /config-agents.

5. Permissions and work modes

CommandPurpose
/autoToggle automatic permission classification.
/always-approveToggle automatic approval for everything.
/plan [description]Enter plan mode.
/view-planView the current plan.
/goal <objective>Start goal-driven mode.
/code-reviewRun the built-in code-review workflow.

Run /auto or /always-approve again to turn the mode off. /goal may depend on the account or a feature flag. /code-review has shipped as a built-in command since v0.2.51. ([SpaceXAI][1])

6. Side questions

text
/btw <question>
/btw Why did you choose Redis instead of PostgreSQL?

This asks a side question while minimizing disruption to the main task.

7. Background tasks and queue

CommandPurpose
/tasksShow background commands, subagents, monitors, and scheduled tasks.
/queueShow prompts waiting to run.
/loop [interval] <prompt>Run a prompt periodically.
/dashboardOpen the Agent Dashboard.
text
/loop 5m Check whether the test suite passes and report failures
/loop 1h Check deployment health
/loop 1d Review new dependency updates

Intervals use Ns, Nm, Nh, or Nd. Seconds have a minimum of 60. Loops can run for at most seven days, with up to 50 scheduled tasks at once. ([SpaceXAI Docs][11])

8. Image and video generation

text
/imagine <prompt>
/imagine-video <prompt>

/imagine A clean isometric diagram of this system architecture
/imagine-video Animate this product mockup into a short presentation

Availability depends on the account, model, and media-generation access. ([SpaceXAI Docs][10])

9. UI and display

CommandPurpose
/settingsOpen settings.
/configAlias for /settings.
/theme [name]Switch themes.
/t [name]Alias for /theme.
/compact-modeToggle the compact layout.
/multilineToggle multiline input.
/mlAlias for /multiline.
/vim-modeToggle Vim-style scrolling.
/timestampsShow or hide message timestamps.
/minimalSwitch the current session to Minimal mode.
/fullscreenSwitch the current session to Fullscreen mode.

Built-in themes:

text
groknight
dark
grokday
light
day
tokyonight
tokyo
rosepine
rose-pine-moon
oscura
oscura-midnight
auto
system

([SpaceXAI Docs][10])

10. Terminal diagnostics

text
/terminal-setup
/terminal-check
/terminal-info

These equivalent commands check terminal type, True Color, clipboard transport, OSC 52, tmux/SSH state, Fullscreen support, and likely compatibility problems. ([SpaceXAI Docs][9])

11. Plugins, Skills, Hooks, and MCP

CommandPurpose
/hooksOpen the Hooks tab in Extensions.
/hooks-trustTrust Hooks in the current project.
/pluginsOpen the Plugins tab.
/marketplaceOpen the Marketplace tab.
/skillsOpen the Skills tab.
/mcpsOpen the MCP tab.

All six commands open the same Extensions panel with a different default tab.

Inside /mcps:

KeyPurpose
SpaceEnable or disable an MCP server.
rReload configuration.
iComplete OAuth sign-in.
aAdd an MCP server.
xRemove an MCP server.

Project Hooks in .grok/hooks/ require /hooks-trust first. ([SpaceXAI Docs][12])

12. Memory

CommandPurpose
/remember <note>Save a memory.
/memoryBrowse and manage memory.
/memAlias for /memory.
/flushWrite session memories to disk immediately.
/dreamRun memory consolidation.

/memory, /mem, /flush, and /dream appear only when cross-session memory is enabled.

bash
grok memory clear --workspace
grok memory clear --global
grok memory clear --all

(SpaceXAI Docs)

13. Account, usage, and privacy

CommandPurpose
/loginSign in again from the TUI.
/logoutSign out from the TUI.
/usageShow allowance, credits, or billing.
/costAlias for /usage.
/privacyView or change data retention for the session.

/usage and /cost depend on account type and may be hidden for free accounts, some X plans, or API-key sessions. (SpaceXAI Docs)

14. Import, feedback, and release information

CommandPurpose
/import-claudeOpen Claude settings import.
/feedback [text]Send feedback.
/release-notesShow release notes for the current version.
/changelogAlias for /release-notes.
13

Commandes dynamiques de Skills

Les Skills invocables deviennent des slash commands, acceptent un namespace en cas de conflit et viennent du projet, utilisateur, plugin, Agents ou dossiers compatibles Claude.

Every Skill marked as user-invocable automatically becomes a slash command:

text
/<skill-name>

/commit
/deploy
/review-pr
/generate-tests

If multiple sources provide the same Skill name, use a namespace:

text
/local:commit
/plugin-name:deploy

Skills may come from:

text
./.grok/skills/
~/.grok/skills/
plugin skills/ directories
~/.agents/skills/
~/.agents/commands/
Claude Code plugins and Skills

The local slash-command list can therefore be larger than the fixed commands documented here. (SpaceXAI Docs)

14

Commandes Shell dans la TUI

Préfixez par ! pour exécuter Shell directement ; les processus longs peuvent passer en arrière-plan et apparaître dans /tasks.

Prefix a prompt with ! to execute a Shell command directly:

text
!git status
!pnpm test
!npm run build
!docker compose ps

This runs the command directly rather than interpreting it as a natural-language task. Long-running commands may move to the background and remain visible through /tasks. (SpaceXAI)

15

Syntaxe de référence aux fichiers

Utilisez @path pour joindre fichiers ou dossiers au prompt en vue d’une explication, d’un audit ou d’un refactoring.

Use @ in a prompt to reference files or directories:

text
@src/main.ts Explain this file
@package.json Check for outdated dependencies
@src/auth/ Refactor this module

This is input syntax rather than a separate slash command, but it is one of the most frequently used Grok Build features. (SpaceXAI Docs)

16

Commandes historiques et instables

Considérez /execute-plan et grok agent --leader comme supprimés ou instables sauf confirmation par le /help local.

Changelogs have previously mentioned commands or internal options that the current official Reference no longer lists:

text
/execute-plan
grok agent --leader

/execute-plan existed in at least some May 2026 releases. It may have been replaced by Plan mode, /view-plan, and the normal execution flow, or may remain enabled only in some environments. Do not use historical commands in stable automation unless local /help confirms they are still available. (SpaceXAI)

17

Combinaisons de commandes pratiques

Recettes prêtes pour analyse read-only, corrections automatiques, review CI, développement parallèle Worktree, JSON avec schema et permissions Git uniquement.

Analyze an unfamiliar repository safely

bash
grok \
  --sandbox read-only \
  --permission-mode dontAsk \
  -p "Analyze the architecture and identify security risks"

Modify code and run tests automatically

bash
grok \
  --sandbox workspace \
  --always-approve \
  -p "Fix the failing tests, run the test suite, and summarize the changes"

CI code review

bash
grok \
  --no-auto-update \
  --sandbox read-only \
  --permission-mode dontAsk \
  --allow 'Read' \
  --allow 'Grep' \
  --allow 'Bash(git *)' \
  --output-format json \
  -p "Review the current diff and return actionable findings"

Parallel feature development

bash
grok \
  --worktree=feature-auth \
  --ref main \
  "Implement OAuth login and add tests"

Structured output

bash
grok \
  -p "Audit this repository" \
  --output-format json \
  --json-schema '{
    "type": "object",
    "properties": {
      "summary": {"type": "string"},
      "risks": {
        "type": "array",
        "items": {"type": "string"}
      }
    },
    "required": ["summary", "risks"]
  }'

Allow only Git and GitHub CLI

bash
grok \
  --permission-mode dontAsk \
  --allow 'Read' \
  --allow 'Grep' \
  --allow 'Bash(git *)' \
  --allow 'Bash(gh *)' \
  --deny 'Bash(*)' \
  -p "Review the open pull request"

Summary

The current command surface consists of roughly 20 top-level CLI commands, more than 40 fixed slash commands, over a dozen recent changelog additions, dynamically generated plugin and Skill commands, and the Headless, permission, Sandbox, Worktree, and structured-output options described above.

The most reliable local inventory is:

bash
grok version
grok --help
grok mcp --help
grok plugin --help
grok sessions --help
grok worktree --help

Inside the TUI, run:

text
/help
/docs

Grok Build changes frequently, so check weekly for new commands, altered flags, and deprecations.