Skip to content

Slash commands in Claude Code

In Claude Code, the server’s four prompts are slash commands: /turf:guide, /turf:up, /turf:destroy and /turf:watch. This page shows what each one takes and how Claude Code fills its arguments. In other clients, ask in words.

/turf:guide
/turf:up path/to/config
/turf:destroy path/to/config
/turf:watch path/to/config

The prefix is the name the server was registered under: turf, from --name turf or claude mcp add turf (see Connect your agent). Claude Code also runs them as /mcp__turf__guide, /mcp__turf__up, /mcp__turf__destroy and /mcp__turf__watch, but does not list that form.

Command Arguments, in order What it does
/turf:guide topic A hands-on walkthrough of Turf™ on real examples from turf-examples.
/turf:up config_path, instructions Deploys or updates the infrastructure a configuration directory declares.
/turf:destroy config_path, instructions Destroys everything in a workspace.
/turf:watch config_path, instructions Watches a workspace for drift and reconciles it as it appears.

Every argument is optional:

  • config_path is the configuration directory. Without one, the agent asks which directory.
  • instructions steer the run, such as which resource to replace or which module to touch. They are honoured within the normal plan and approval flow and never bypass approval, or a destroy’s confirmation.
  • topic opens a journey directly: deploy AICR, day-2 maintenance, installer, promotion, TACO or guardrails. Without one, the guide offers the menu. The agent matches a topic to the journey that fits best, so /turf:guide maintenance opens day 2.

/turf:up and /turf:destroy run the same flow as asking in words: a plan gate and an approval point every round. The agent approves only a low-risk plan itself, asks you about any other, and always asks about a destroy plan. See Approval.

/turf:watch sets the agent on a loop: watch, and on drift an ordinary up, planned with refresh_drift: true so the plan reads only what drifted, then watch again. Every plan in the loop stops at its approval point as any other does. Where detection is off or was never turned on, the agent says so, offers to turn it on, and does so only if you agree. At the plan tier, which lists no drift tool, it tells you a full-tier server can. See Watching for drift.

Claude Code fills a prompt’s arguments one typed word each, in the order the server declares them. A word past the last argument is dropped. So:

  • The path has no spaces. /turf:up ./infra works; a path with a space in it is split into two arguments.
  • instructions gets one word. /turf:up ./infra staging passes staging. Anything longer, say in the conversation instead, as you would in any other client.
  • config_path comes first. The first word is always the directory; a second word, if any, is instructions.

/turf:up, /turf:destroy and /turf:watch appear only when the server runs at the plan or full tier. At read and apply, Claude Code lists /turf:guide alone. At plan, every run ends with a planfile instead of an apply.

In a client without slash commands, ask in words: “deploy the configuration in ./infra with Turf”. The agent follows the same flow, guided by the server instructions and the deployment skill.

Turf™ is a trademark of Turf LLC. Terraform® is a trademark of HashiCorp. Ansible® is a trademark of Red Hat, LLC, registered in the United States and other countries. Helm®, Kubernetes®, Prometheus® and OpenTelemetry® are registered trademarks, and Jaeger™ is a trademark, of the Linux Foundation. OpenTofu® and Model Context Protocol® are registered trademarks of LF Projects, LLC. All other trademarks are the property of their respective owners. Turf is not affiliated with, endorsed by, or sponsored by HashiCorp, IBM, Red Hat, the Linux Foundation, LF Projects or the OpenTofu project.

© 2026 Turf LLC. Free for individuals, education and small businesses within the Community limits, under the Turf Community Edition License 1.0. Government and larger organizations need a commerciallicense.turf.build · Discord ·GitHub