path
Copy pagePrints the filesystem path of an existing worktree. Useful for scripting or quickly navigating to a worktree directory.
workrex path <name>Arguments
Section titled “Arguments”<name>: Worktree name (the directory name).
Examples
Section titled “Examples”# Get the path of a worktreeworkrex path user-auth# Use in scripts or with cdcd "$(workrex path user-auth)"
# Copy a file to a worktreecp config.json "$(workrex path feature-branch)/"