Commands
Repository commands
Section titled “Repository commands”dojo init
Section titled “dojo init”Initialize a new Dojo repository in the current directory.
dojo initCreates a .dojo directory and registers the repository with the remote server.
dojo clone
Section titled “dojo clone”Clone an existing repository.
dojo clone <repository-url>Example:
dojo clone https://dojo.ninja/api/repos/mies/my-projectdojo status
Section titled “dojo status”Show the current state of the working copy.
dojo statusDisplays modified, added, and deleted files, current bookmark, and working copy change ID.
Commit commands
Section titled “Commit commands”dojo commit
Section titled “dojo commit”Describe the current working copy and create a new empty change on top.
dojo commit -m "Your commit message"Options:
| Flag | Description |
|---|---|
-m, --message | Commit message |
--intent-goal | What this commit aims to achieve |
--intent-plan | Steps taken |
--intent-confidence | Confidence level: low, medium, high |
Example with intent metadata:
dojo commit -m "Add user model" \ --intent-goal "Create database schema" \ --intent-plan "Define types, create Drizzle schema" \ --intent-confidence highdojo describe
Section titled “dojo describe”Change the message of an existing commit without creating a new one.
dojo describe -m "Updated message" <commit>dojo edit
Section titled “dojo edit”Move the working copy to an existing commit for editing.
dojo edit <commit>Accepts @ (current), @- (parent), @-- (grandparent), bookmark names, or commit/change IDs.
dojo new
Section titled “dojo new”Create a new empty change on top of a parent.
dojo new --parent <commit> --message "description"History commands
Section titled “History commands”dojo log
Section titled “dojo log”Show the commit history graph.
dojo logOptions:
| Flag | Description |
|---|---|
-n <count> | Limit number of entries |
dojo show
Section titled “dojo show”Show details of a specific commit.
dojo show <commit>dojo show @ # current working copydojo show @- # parentdojo diff
Section titled “dojo diff”Show changes in the working copy vs its parent.
dojo diffdojo evolution
Section titled “dojo evolution”Show how a change evolved through rewrites and snapshots.
dojo evolution <commit>Sync commands
Section titled “Sync commands”dojo sync push
Section titled “dojo sync push”Push local commits to the remote server.
dojo sync pushdojo sync pull
Section titled “dojo sync pull”Pull new changes from the remote server.
dojo sync pulldojo remote
Section titled “dojo remote”Show the remote server URL.
dojo remoteStack commands
Section titled “Stack commands”dojo stack submit
Section titled “dojo stack submit”Submit commits as a stack for code review.
dojo stack submit --title "Stack title"dojo stack list
Section titled “dojo stack list”List all stacks.
dojo stack listdojo stack list --status review # filter by statusdojo stack list --status mergeddojo stack show
Section titled “dojo stack show”Show details of a specific stack.
dojo stack show <number>Review commands
Section titled “Review commands”dojo review list
Section titled “dojo review list”List stacks awaiting your review.
dojo review listdojo review diff
Section titled “dojo review diff”View changes in a stack.
dojo review diff --number <stack-number>dojo review diff --number 42 --delta # only changes since last reviewdojo review diff --number 42 --commit <id> # specific commitdojo review approve
Section titled “dojo review approve”Approve a stack.
dojo review approve --number 42dojo review reject
Section titled “dojo review reject”Request changes on a stack.
dojo review reject --number 42 --message "Missing error handling"dojo review comment
Section titled “dojo review comment”Leave a comment on a stack.
dojo review comment --number 42 --message "Consider using a Map here"dojo review comments
Section titled “dojo review comments”View comments on a stack.
dojo review comments --number 42dojo review comments --number 42 --unresolved # only unresolvedRewrite commands
Section titled “Rewrite commands”dojo rewrite split
Section titled “dojo rewrite split”Split a commit into multiple commits by file groups.
dojo rewrite split <commit> --specs "file1.ts,file2.ts:First part" "file3.ts:Second part"dojo rewrite reorder
Section titled “dojo rewrite reorder”Reorder commits in a chain.
dojo rewrite reorder <commit-id-1> <commit-id-2> <commit-id-3>dojo undo
Section titled “dojo undo”Undo the last operation.
dojo undodojo ops log
Section titled “dojo ops log”Show the operation log.
dojo ops logWorkspace commands
Section titled “Workspace commands”Workspaces are remote sandboxes for agents (or any automation) to work in isolation.
dojo workspace create
Section titled “dojo workspace create”dojo workspace create --name "feature-name" --agent "agent-name"dojo workspace list
Section titled “dojo workspace list”dojo workspace listdojo workspace show
Section titled “dojo workspace show”dojo workspace show <workspace-id>dojo workspace write
Section titled “dojo workspace write”Write a local file to the workspace.
dojo workspace write <workspace-id> <local-file> [remote-path]dojo workspace read
Section titled “dojo workspace read”Read a file from the workspace.
dojo workspace read <workspace-id> <path>dojo workspace status
Section titled “dojo workspace status”Show changed files in the workspace.
dojo workspace status <workspace-id>dojo workspace commit
Section titled “dojo workspace commit”Commit workspace changes.
dojo workspace commit <workspace-id> -m "Commit message"dojo workspace submit
Section titled “dojo workspace submit”Submit workspace as a stack for review.
dojo workspace submit <workspace-id> -t "Stack title"dojo workspace check-conflicts
Section titled “dojo workspace check-conflicts”Check for conflicts with other workspaces.
dojo workspace check-conflicts <workspace-id>dojo workspace delete
Section titled “dojo workspace delete”Delete a workspace (committed changes are preserved).
dojo workspace delete <workspace-id>Authentication commands
Section titled “Authentication commands”dojo auth login
Section titled “dojo auth login”Sign in to the Dojo server.
dojo auth loginCredentials are stored in ~/.dojo/credentials.json.