gh wt run

Run an action or command in an existing worktree

Synopsis

Run an action or command in an existing worktree.

Use this command to:

  • Run configured actions on worktrees that were created without an action
  • Run commands directly in a worktree
gh wt run <worktree> [action] [-- command]

Examples

# Run named action on worktree
gh wt run pr_123 claude -- fix issue #456

# Run command directly in worktree
gh wt run pr_123 -- ls

# Show help
gh wt run pr_123

Options inherited from parent commands

FlagDescription
--no-colordisable color output
--verboseverbose output
-f, --forceforce operation without prompts