CLI Cheatsheet¶
A comprehensive reference of bauplan commands and their functionality.
Installation and Configuration¶
Command |
Description |
---|---|
|
Install the latest version of bauplan |
|
Show the version of the bauplan CLI |
|
Show available commands or help for one command |
|
Configure your API key |
|
Display current profile, active branch, user details, client/server versions and available runners |
Branch Management¶
Command |
Description |
---|---|
|
List all available branches. Active branch marked with * |
|
Create a new branch |
|
Switch to specified branch |
|
Show all tables in specified branch |
|
Show all open branches (not just user’s) |
|
Delete branch (only own branches) |
|
Merge branch into main (must be on main) |
|
Show differences between current and the specified branch. |
Namespace Management¶
Command |
Description |
---|---|
|
Create a new namespace in current branch |
|
List all tables in a namespace |
Table Management and Import¶
Command |
Description |
---|---|
|
List tables in active branch |
|
Show table metadata in active branch |
|
Create empty table from schema |
|
Create partitioned table |
|
Import data into existing table |
|
Generate table creation plan |
|
Apply table creation plan |
|
Delete table from current branch |
Note
The URI should be an S3 path, for example: ‘s3://your-bucket/path/*.parquet’
Parameters and Secrets¶
Command |
Description |
---|---|
|
Set a secret parameter |
|
Set a regular parameter |
Pipeline and Job Execution¶
Command |
Description |
---|---|
|
Execute pipeline in active branch |
|
Execute pipeline in memory only |
|
Execute and show table previews |
|
Reproduce a previous run |
|
Execute with data contract enforcement |
|
Submit job for detached execution |
|
Get status of a detached job |
|
List recent jobs (last 24 hours) |
|
Get logs from a detached job |
|
Cancel a running detached job |
Query¶
Command |
Description |
---|---|
|
Execute query in active branch |
|
Execute query in specified branch |
|
Execute query with specified namespace |
|
Execute query from file |
|
Execute query without truncating output |
Important
Always prefix branch names with your username (e.g.,
<YOUR_USERNAME>.<BRANCH_NAME>
)- The
--dry-run
flag is required when: Working in the
main
branchTesting changes without materialization
- The
Materialization is not allowed in the
main
branchDetached runs logs are persisted for 24 hours
Branch names must follow the format
username.branchname
except for themain
branch