Skip to content

CLI

Complete command-line reference for stackit.

Command categories

Move around your stack efficiently.

Branch management

Create, modify, and organize branches.

Stack operations

Manage your entire stack.

Worktrees

Work on multiple stacks simultaneously.

  • stackit create -w - Create branch with worktree
  • stackit worktree create - Create a standalone worktree
  • stackit worktree list - List all worktrees
  • stackit worktree open - Open worktree (auto-cd with shell integration)

Git hooks

Enforce branch restrictions locally.

  • stackit precommit install - Prevent commits to locked branches
  • stackit prepush install - Prevent pushes to locked branches

See Git Hooks for details.

Global flags

Available on all commands:

Flag Description
--cwd <path> Working directory for operations
--debug Write debug output to terminal
--interactive Enable interactive features (default: true)
--no-interactive Disable all interactive features
--verify Enable git hooks (default: true)
--no-verify Disable git hooks
--quiet, -q Minimize output (implies --no-interactive)

Next steps