Git Pseudo CLI
Generated from packages/codeboltjs/src/tools/pseudo-cli/commands.ts. Edit the registry or rerun node scripts/generate-pseudo-cli-docs.js instead of updating this file by hand.
The git pseudo CLI module currently exposes 11 commands.
Related SDK docs: Git
Commands At A Glance
| Action | Description | Required flags |
|---|---|---|
init | Initialize a new Git repository | --path |
status | Show working tree status | None |
add | Add all changes to staging | None |
commit | Commit staged changes | --message |
push | Push commits to remote | None |
pull | Pull changes from remote | None |
checkout | Checkout a branch | --branch |
branch | Create a new branch | --branch |
logs | Show commit logs | --path |
diff | Show diff for a commit | --commit |
clone | Clone a remote repository | --url |
init
Initialize a new Git repository
codebolt git init --path <string>
| Name | Flag | Type | Required | Description |
|---|---|---|---|---|
path | --path | string | Yes | Filesystem or workspace path used by the command. |
status
Show working tree status
codebolt git status
This command takes no parameters.
add
Add all changes to staging
codebolt git add
This command takes no parameters.
commit
Commit staged changes
codebolt git commit --message <string>
| Name | Flag | Type | Required | Description |
|---|---|---|---|---|
message | --message | string | Yes | Human-readable message text sent to the SDK method. |
push
Push commits to remote
codebolt git push
This command takes no parameters.
pull
Pull changes from remote
codebolt git pull
This command takes no parameters.
checkout
Checkout a branch
codebolt git checkout --branch <string>
| Name | Flag | Type | Required | Description |
|---|---|---|---|---|
branch | --branch | string | Yes | Git branch name for the operation. |
branch
Create a new branch
codebolt git branch --branch <string>
| Name | Flag | Type | Required | Description |
|---|---|---|---|---|
branch | --branch | string | Yes | Git branch name for the operation. |
logs
Show commit logs
codebolt git logs --path <string>
| Name | Flag | Type | Required | Description |
|---|---|---|---|---|
path | --path | string | Yes | Filesystem or workspace path used by the command. |
diff
Show diff for a commit
codebolt git diff --commit <string>
| Name | Flag | Type | Required | Description |
|---|---|---|---|---|
commit | --commit | string | Yes | Commit hash or commit reference for the git operation. |
clone
Clone a remote repository
codebolt git clone --url <string> [--path <string>]
| Name | Flag | Type | Required | Description |
|---|---|---|---|---|
url | --url | string | Yes | URL used for browser or repository operations. |
path | --path | string | No | Filesystem or workspace path used by the command. |