Repository Commands
Complete reference for all Outpost CLI repository commands — init, clone, add, commit, status, checkout, branch, fetch, pull, push, merge, log, diff, restore, remote, rm, ls, and df.
Repository commands provide Git-style version control for datasets, models, and code. They handle everything from cloning and committing to branching and merging, with native support for large files and efficient data transfer.
outpost init
Initialize a new Outpost repository in the current directory or at a specified path.
Syntax
Arguments
Options
| Option | Description |
|---|---|
--storage-backend <backend> | Storage backend to use: local or s3 |
-h, --help | Display help |
Examples
outpost clone
Clone a repository from a URL into a new local directory.
Syntax
Arguments
Options
| Option | Description |
|---|---|
--filter <filter> | Clone only a specific directory or subpath |
--depth <depth> | Limit directory tree depth (used with --filter) |
--all | Download full commit history, all data files, and commit databases |
-h, --help | Display help |
Examples
outpost add
Stage files or directories for the next commit.
Syntax
Arguments
Examples
outpost commit
Record staged changes to the repository history.
Syntax
Options
| Option | Description |
|---|---|
-m, --message <message> | (Required) Commit message describing the changes |
--allow-empty | Allow creating a commit with no staged changes |
-h, --help | Display help |
Examples
Commit message guidelines
Write messages that explain why the change was made, not just what changed.
Good: Fix missing rows in user analytics CSV, Add validation for empty input in pipeline
Avoid: update, changes, fixed stuff
outpost status
Show the current state of the working tree and staging area.
Syntax
Options
| Option | Description |
|---|---|
--skip <n> | Skip the first n entries in the output |
--limit <n> | Limit the number of entries shown |
--ignore <pattern> | Ignore files matching the given pattern |
-h, --help | Display help |
Examples
The output shows files grouped by state: staged (ready to commit), modified (changed but not staged), and untracked (new files not yet added).
outpost checkout
Switch branches, create new branches, or resolve merge conflicts.
Syntax
Arguments
Options
| Option | Description |
|---|---|
-b, --create <name> | Create a new branch and switch to it |
--ours | Resolve merge conflicts using the current branch's version |
--theirs | Resolve merge conflicts using the incoming branch's version |
-h, --help | Display help |
Examples
outpost branch
List, create, rename, or delete branches.
Syntax
Arguments
Options
| Option | Description |
|---|---|
-a, --all | List both local and remote branches |
-r, --remote <remote> | List branches on a specific remote |
-d, --delete <branch> | Delete a merged local branch |
-D, --force-delete <branch> | Force-delete a local branch (even if unmerged) |
-m, --move <name> | Rename the current branch |
--show-current | Print the name of the current branch |
-h, --help | Display help |
Examples
outpost fetch
Fetch changes from a remote repository without merging them into your local branch.
Syntax
Options
| Option | Description |
|---|---|
-b, --branch <branch> | Fetch a specific branch only |
-h, --help | Display help |
Examples
outpost pull
Fetch and merge changes from a remote branch into your local branch.
Syntax
Arguments
Options
| Option | Description |
|---|---|
--all | Download entire commit history, all data files, and commit databases |
-h, --help | Display help |
Examples
outpost push
Upload local commits and files to a remote branch.
Syntax
Arguments
Options
| Option | Description |
|---|---|
-d, --delete | Delete the specified branch from the remote |
--missing-files | Push even when some files are missing locally |
-h, --help | Display help |
Examples
outpost merge
Merge a branch into the currently checked-out branch.
Syntax
Arguments
Merge behavior
| Scenario | Behavior |
|---|---|
| No divergence | Fast-forward merge -- advances the branch pointer without a new commit |
| Diverged histories | Three-way merge -- compares both branches against a common ancestor |
| Conflicts detected | Writes conflicts to disk for manual resolution |
| No conflicts | Automatically creates a merge commit |
Conflict resolution
When conflicts occur, resolve them using outpost checkout:
Examples
outpost log
View the commit history for the current branch.
Syntax
Examples
Displays a chronological list of commits with their hashes, authors, timestamps, and messages.
outpost diff
Show differences between files or commits.
Syntax
Examples
outpost restore
Restore files from a previous commit.
Syntax
Examples
outpost remote
Manage remote repository connections.
Syntax
Examples
outpost rm
Remove files from the repository.
Syntax
Arguments
Examples
outpost ls
List contents of the repository.
Syntax
Examples
outpost df
View and transform data frames from tabular files such as CSV and Parquet.
Syntax
Arguments
Examples
Common workflows
Start a new project
Daily development cycle
Feature branch workflow
Previous → Overview
Next Compute Commands →