>_DEVCMDcommand library
LOCAL • READY

$ help --commands --workflows

Commands are easy.
Sequences are the skill.

Search individual commands or complete, copy-ready workflows. Understand every step before you run it.

$ command index 179 results
Click to inspect →
Git

Repository status

git status

See staged, unstaged and untracked changes.

1 command
Git

Initialize repository

git init

Turn the current folder into a Git repository.

1 command
Git

Clone repository

git clone <url>

Download a remote repository and its history.

1 command
Git

Stage one file

git add <file>

Stage a specific file.

1 command
Git

Stage everything

git add -A

Stage new, modified and deleted files.

1 command
Git

Stage interactively

git add -p

Choose individual hunks to stage.

1 command
Git

Commit staged changes

git commit -m "message"

Create a commit from the index.

1 command
Git

Amend last commit

git commit --amend -m "new message"

Change the latest commit without creating another one.

1 command
Git

Amend without changing message

git commit --amend --no-edit

Add forgotten changes to the previous commit.

1 command
Git

Show commit history

git log --oneline --graph --decorate --all

Inspect commits in a compact graph.

1 command
Git

Show a commit

git show <commit>

Inspect one commit and its patch.

1 command
Git

Search commits

git log --all --grep="keyword"

Find commits by message text.

1 command
Git

See line history

git blame <file>

See who last changed each line.

1 command
Git

Create branch

git branch <name>

Create a branch without switching.

1 command
Git

Create and switch branch

git switch -c <name>

Create a branch and move to it.

1 command
Git

Switch branch

git switch <name>

Move to an existing branch.

1 command
Git

Rename current branch

git branch -m <new-name>

Rename the checked-out branch.

1 command
Git

Delete merged branch

git branch -d <name>

Delete a local branch after merging.

1 command
Git

Force-delete branch

git branch -D <name>

Delete a local branch even if unmerged.

1 command
Git

List branches

git branch

Show local branches.

1 command
Git

List remote branches

git branch -r

Show remote-tracking branches.

1 command
Git

List every branch

git branch -a

Show local and remote branches.

1 command
Git

Add origin

git remote add origin <url>

Connect the repo to a remote named origin.

1 command
Git

Change origin URL

git remote set-url origin <url>

Replace the URL used by origin.

1 command
Git

Add another remote

git remote add upstream <url>

Add a second remote such as upstream.

1 command
Git

Rename remote

git remote rename <old> <new>

Rename a remote.

1 command
Git

Remove remote

git remote remove <name>

Remove a remote reference locally.

1 command
Git

Inspect remotes

git remote -v

Show remote names and URLs.

1 command
Git

Fetch everything

git fetch --all --prune

Download remote refs without merging.

1 command
Git

Fetch one remote

git fetch <remote>

Download refs from one remote.

1 command
Git

Pull with rebase

git pull --rebase

Update the current branch using rebase.

1 command
Git

Push new branch

git push -u origin <branch>

Push a branch and set its upstream.

1 command
Git

Push current branch

git push

Push the current branch to its upstream.

1 command
Git

Delete remote branch

git push origin --delete <branch>

Delete a branch from a remote.

1 command
Git

Force push safely

git push --force-with-lease

Force push while refusing non-fast-forward overwrites.

1 command
Git

Unstage file

git restore --staged <file>

Remove a file from the staging area but keep changes.

1 command
Git

Discard file changes

git restore <file>

Restore a tracked file to HEAD. Destructive.

1 command
Git

Restore file from commit

git restore --source <commit> -- <file>

Restore one file from another commit.

1 command
Git

Undo last commit, keep changes

git reset --soft HEAD~1

Move HEAD back while keeping changes staged.

1 command
Git

Undo last commit, keep edits

git reset HEAD~1

Move HEAD back and leave edits unstaged.

1 command
Git

Discard last commit and edits

git reset --hard HEAD~1

Hard reset to the previous commit. Destructive.

1 command
Git

Stash changes

git stash push -m "work in progress"

Temporarily store working-tree changes.

1 command
Git

List stashes

git stash list

See saved stashes.

1 command
Git

Apply stash

git stash apply stash@{0}

Apply a stash and keep it in the stash list.

1 command
Git

Pop stash

git stash pop

Apply and remove the latest stash.

1 command
Git

Delete stash

git stash drop stash@{0}

Remove a stash.

1 command
Git

Create tag

git tag v1.0.0

Create a lightweight tag.

1 command
Git

Create annotated tag

git tag -a v1.0.0 -m "v1.0.0"

Create a signed-off annotated release tag.

1 command
Git

Push tag

git push origin v1.0.0

Push one tag to origin.

1 command
Git

Push all tags

git push origin --tags

Push every local tag.

1 command
Git

Delete local tag

git tag -d v1.0.0

Delete a local tag.

1 command
Git

Delete remote tag

git push origin --delete v1.0.0

Delete a tag from origin.

1 command
Git

Cherry-pick commit

git cherry-pick <commit>

Copy one commit onto the current branch.

1 command
Git

Continue cherry-pick

git cherry-pick --continue

Continue after resolving a cherry-pick conflict.

1 command
Git

Abort cherry-pick

git cherry-pick --abort

Cancel an in-progress cherry-pick.

1 command
Git

Merge branch

git merge <branch>

Merge another branch into the current branch.

1 command
Git

Abort merge

git merge --abort

Cancel an in-progress merge.

1 command
Git

Rebase branch

git rebase <base>

Replay current commits on top of another branch.

1 command
Git

Interactive rebase

git rebase -i HEAD~<n>

Edit, reorder, squash or drop recent commits.

1 command
Git

Continue rebase

git rebase --continue

Continue after resolving rebase conflicts.

1 command
Git

Abort rebase

git rebase --abort

Cancel an in-progress rebase.

1 command
Git

Recover lost commit

git reflog

Find previous HEAD positions, useful after reset/rebase.

1 command
Git

Recover branch from reflog

git switch -c recovery <reflog-sha>

Recreate a branch at a previous reflog entry.

1 command
Git

Find bad commit

git bisect start

Binary-search history for the commit that introduced a bug.

1 command
Git

Ignore a file

echo "<pattern>" >> .gitignore

Append a path to .gitignore.

1 command
Git

Remove tracked file but keep local copy

git rm --cached <file>

Stop tracking a file without deleting it locally.

1 command
Git

Clean untracked files

git clean -fdn && git clean -fd

Preview then remove untracked files. Destructive.

1 command
Git

Set user identity

git config --global user.name "Your Name"

Configure the author name for commits.

1 command
Git

Set email

git config --global user.email "you@example.com"

Configure the author email for commits.

1 command
Git

Sign commits

git commit -S -m "message"

Create a signed commit when signing is configured.

1 command
Git

Create worktree

git worktree add ../feature feature/name

Check out another branch in a separate directory.

1 command
Git

Remove worktree

git worktree remove ../feature

Remove a linked worktree.

1 command
Git

Backdate a commit

GIT_AUTHOR_DATE="2026-01-15T10:00:00+05:30" GIT_COMMITTER_DATE="2026-01-15T10:00:00+05:30" git commit -m "message"

Create a commit with an explicit author and committer date. Use only for legitimate historical/import workflows; the date is metadata, not proof of when work happened.

1 command
Git

Backdate amend

GIT_COMMITTER_DATE="2026-01-15T10:00:00+05:30" git commit --amend --no-edit --date="2026-01-15T10:00:00+05:30"

Change the latest commit metadata while preserving its message.

1 command
Linux

Print directory

pwd

Show the current path.

1 command
Linux

List files

ls -la

List files in the current directory.

1 command
Linux

Change directory

cd <directory>

Move into a directory.

1 command
Linux

Go up one directory

cd ..

Move to the parent directory.

1 command
Linux

Create directory

mkdir -p <path>

Create a directory.

1 command
Linux

Create empty file

touch <file>

Create an empty file.

1 command
Linux

Copy file

cp <source> <destination>

Copy a file.

1 command
Linux

Move or rename

mv <source> <destination>

Move or rename a file.

1 command
Linux

Delete file

rm <file>

Delete a file.

1 command
Linux

Delete directory

rm -rf <directory>

Delete a directory recursively. Destructive.

1 command
Linux

Search text

grep -Rni "text" .

Search recursively inside files.

1 command
Linux

Find files

find . -name "*.log"

Find files by name.

1 command
Linux

View file

cat <file>

Print a file to the terminal.

1 command
Linux

Follow logs

tail -f <file>

Watch a file grow in real time.

1 command
Linux

Disk usage

df -h

See filesystem space usage.

1 command
Linux

Directory size

du -sh <directory>

See how much space a directory uses.

1 command
Linux

Make executable

chmod +x <script>

Add execute permission.

1 command
Linux

Run script

./script.sh

Execute a shell script.

1 command
Linux

Environment variable

export NAME=value

Set an environment variable for the current shell.

1 command
Linux

Process list

ps aux

Inspect running processes.

1 command
Linux

Kill process

kill <pid>

Stop a process by PID.

1 command
Linux

Port owner

sudo lsof -i :3000

Find the process listening on a port.

1 command
Linux

Archive files

tar -czf archive.tar.gz <directory>

Create a compressed tar archive.

1 command
Linux

Extract archive

tar -xzf archive.tar.gz

Extract a tar.gz archive.

1 command
Docker

List containers

docker ps

Show running Docker containers.

1 command
Docker

List all containers

docker ps -a

Show running and stopped containers.

1 command
Docker

Build image

docker build -t <name>:<tag> .

Build an image from a Dockerfile.

1 command
Docker

Run container

docker run --name <name> -p 3000:3000 <image>

Start a container and publish a port.

1 command
Docker

Stop container

docker stop <container>

Stop a running container.

1 command
Docker

Remove container

docker rm <container>

Remove a stopped container.

1 command
Docker

List images

docker images

List local Docker images.

1 command
Docker

Remove image

docker rmi <image>

Remove a Docker image.

1 command
Docker

Container shell

docker exec -it <container> sh

Open a shell inside a running container.

1 command
Docker

Container logs

docker logs -f <container>

Follow container logs.

1 command
Docker

Compose up

docker compose up -d --build

Build and start Compose services in background.

1 command
Docker

Compose down

docker compose down

Stop and remove Compose resources.

1 command
Docker

Compose logs

docker compose logs -f

Follow logs for Compose services.

1 command
Docker

Prune Docker

docker system prune

Remove unused Docker resources. Destructive.

1 command
Kubernetes

Pods

kubectl get pods

List pods in the current namespace.

1 command
Kubernetes

Pods all namespaces

kubectl get pods -A

List pods across namespaces.

1 command
Kubernetes

Services

kubectl get svc

List Kubernetes services.

1 command
Kubernetes

Deployments

kubectl get deploy

List deployments.

1 command
Kubernetes

Describe resource

kubectl describe <resource> <name>

Inspect a resource and events.

1 command
Kubernetes

Pod logs

kubectl logs <pod>

Read pod logs.

1 command
Kubernetes

Follow pod logs

kubectl logs -f <pod>

Stream pod logs.

1 command
Kubernetes

Shell into pod

kubectl exec -it <pod> -- sh

Open a shell inside a pod.

1 command
Kubernetes

Apply manifest

kubectl apply -f app.yaml

Create or update resources from YAML.

1 command
Kubernetes

Delete manifest

kubectl delete -f app.yaml

Delete resources defined by YAML.

1 command
Kubernetes

Port forward

kubectl port-forward svc/<service> 8080:80

Forward a local port to a pod/service.

1 command
Kubernetes

Current context

kubectl config current-context

Show the active cluster context.

1 command
Kubernetes

Switch context

kubectl config use-context <context>

Switch Kubernetes context.

1 command
Kubernetes

Rollout status

kubectl rollout status deployment/<name>

Watch a deployment rollout.

1 command
Kubernetes

Restart deployment

kubectl rollout restart deployment/<name>

Restart all pods in a deployment.

1 command
GitHub CLI

GitHub login

gh auth login

Authenticate GitHub CLI.

1 command
GitHub CLI

Clone repo

gh repo clone owner/repo

Clone a GitHub repository.

1 command
GitHub CLI

Create repo

gh repo create <name> --public

Create a repository from the CLI.

1 command
GitHub CLI

Repo view

gh repo view --web

View repository information.

1 command
GitHub CLI

List PRs

gh pr list

List pull requests.

1 command
GitHub CLI

Create PR

gh pr create

Create a pull request.

1 command
GitHub CLI

Checkout PR

gh pr checkout <number>

Checkout a pull request locally.

1 command
GitHub CLI

View PR

gh pr view <number> --web

Open a pull request in the browser.

1 command
GitHub CLI

Merge PR

gh pr merge <number>

Merge a pull request from the CLI.

1 command
GitHub CLI

List issues

gh issue list

List repository issues.

1 command
GitHub CLI

Create issue

gh issue create

Create an issue.

1 command
GitHub CLI

Run workflow

gh workflow run <workflow.yml>

Manually dispatch a GitHub Actions workflow.

1 command
GitHub CLI

Watch workflow

gh run watch

Watch a GitHub Actions run.

1 command
npm

Install dependencies

npm install

Install package.json dependencies.

1 command
npm

Clean install

npm ci

Install exactly from the lockfile.

1 command
npm

Run dev script

npm run dev

Run the project's dev script.

1 command
npm

Run any script

npm run <script>

Run a package.json script.

1 command
npm

Install package

npm install <package>

Add a dependency.

1 command
npm

Install dev package

npm install -D <package>

Add a development dependency.

1 command
npm

Remove package

npm uninstall <package>

Remove a dependency.

1 command
npm

List outdated

npm outdated

Find outdated packages.

1 command
npm

Update packages

npm update

Update packages within package.json ranges.

1 command
npm

Run package directly

npx <package> <args>

Run a package without installing it globally.

1 command
Python

Virtual environment

python -m venv .venv

Create a Python virtual environment.

1 command
Python

Activate venv - Windows

..venvScriptsActivate.ps1

Activate a venv in Windows PowerShell.

1 command
Python

Activate venv - Linux/macOS

source .venv/bin/activate

Activate a venv in bash/zsh.

1 command
Python

Install package

python -m pip install <package>

Install a Python package.

1 command
Python

Freeze dependencies

python -m pip freeze > requirements.txt

Write installed packages to requirements.txt.

1 command
Python

Install requirements

python -m pip install -r requirements.txt

Install dependencies from requirements.txt.

1 command
Python

Run module

python -m <module>

Run a Python module as a script.

1 command
Python

Start FastAPI

uvicorn main:app --reload

Run a FastAPI app with Uvicorn.

1 command
SSH

SSH connect

ssh user@host

Open an SSH session.

1 command
SSH

SSH with key

ssh -i ~/.ssh/id_ed25519 user@host

Connect using a private key.

1 command
SSH

Copy to server

scp <file> user@host:/path/

Upload a file over SSH.

1 command
SSH

Copy from server

scp user@host:/path/file .

Download a file over SSH.

1 command
SSH

Generate SSH key

ssh-keygen -t ed25519 -C "you@example.com"

Create an Ed25519 key pair.

1 command
Networking

Test HTTP headers

curl -I https://example.com

Inspect response headers.

1 command
Networking

GET JSON

curl -s https://api.example.com/data

Fetch a URL.

1 command
Networking

DNS lookup

nslookup example.com

Inspect DNS records.

1 command
Networking

Ping host

ping example.com

Check basic network reachability.

1 command
Networking

Check port

nc -vz host 443

Test a TCP port.

1 command
Networking

Show routes

ip route

Inspect the local routing table.

1 command
Networking

Show interfaces

ip addr

Inspect network interfaces and addresses.

1 command
PostgreSQL

Connect Postgres

psql "$DATABASE_URL"

Open a psql session.

1 command
PostgreSQL

List databases

\l

List PostgreSQL databases.

1 command
PostgreSQL

List tables

\dt

List tables in the current database.

1 command
PostgreSQL

Dump database

pg_dump "$DATABASE_URL" > backup.sql

Create a PostgreSQL backup.

1 command
PostgreSQL

Restore database

psql "$DATABASE_URL" < backup.sql

Restore a SQL dump.

1 command
Vercel

Vercel deploy preview

vercel

Deploy the current project.

1 command
Vercel

Vercel production

vercel --prod

Deploy to production.

1 command
Vercel

List Vercel deployments

vercel ls

Show recent deployments.

1 command
Vercel

Pull Vercel env

vercel env pull .env.local

Download environment variables for a target.

1 command