Skip to main content

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

ActionDescriptionRequired flags
initInitialize a new Git repository--path
statusShow working tree statusNone
addAdd all changes to stagingNone
commitCommit staged changes--message
pushPush commits to remoteNone
pullPull changes from remoteNone
checkoutCheckout a branch--branch
branchCreate a new branch--branch
logsShow commit logs--path
diffShow diff for a commit--commit
cloneClone a remote repository--url

init

Initialize a new Git repository

codebolt git init --path <string>
NameFlagTypeRequiredDescription
path--pathstringYesFilesystem 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>
NameFlagTypeRequiredDescription
message--messagestringYesHuman-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>
NameFlagTypeRequiredDescription
branch--branchstringYesGit branch name for the operation.

branch

Create a new branch

codebolt git branch --branch <string>
NameFlagTypeRequiredDescription
branch--branchstringYesGit branch name for the operation.

logs

Show commit logs

codebolt git logs --path <string>
NameFlagTypeRequiredDescription
path--pathstringYesFilesystem or workspace path used by the command.

diff

Show diff for a commit

codebolt git diff --commit <string>
NameFlagTypeRequiredDescription
commit--commitstringYesCommit hash or commit reference for the git operation.

clone

Clone a remote repository

codebolt git clone --url <string> [--path <string>]
NameFlagTypeRequiredDescription
url--urlstringYesURL used for browser or repository operations.
path--pathstringNoFilesystem or workspace path used by the command.