CLIx

Your offline collection of developer commands

120 commands found

List files with details

Bash
ls -la

Shows all files including hidden ones with detailed information

#bash#list#files#permissions

Find files by name

Bash
find . -name '*.js' -type f

Recursively finds all JavaScript files in current directory

#bash#find#search#files

Check disk usage

Bash
du -sh * | sort -hr

Shows disk usage of directories sorted by size

#bash#disk#usage#sort

Monitor system processes

Bash
htop

Interactive process viewer (install with package manager if not available)

#bash#processes#monitor#system

Create directory structure

Bash
mkdir -p project/{src,tests,docs}/{js,css,images}

Creates nested directory structure in one command

#bash#mkdir#structure#directories

Archive and compress

Bash
tar -czf archive.tar.gz folder/

Creates a compressed tar archive of a folder

#bash#tar#compress#archive

Extract tar archive

Bash
tar -xzf archive.tar.gz

Extracts a compressed tar archive

#bash#tar#extract#decompress

Search text in files

Bash
grep -r 'pattern' . --include='*.js'

Recursively searches for text pattern in JavaScript files

#bash#grep#search#text

Count lines of code

Bash
find . -name '*.js' | xargs wc -l

Counts total lines in all JavaScript files

#bash#count#lines#code

Kill process by name

Bash
pkill -f 'process_name'

Kills all processes matching the given name

#bash#kill#process#terminate

Watch file changes

Bash
tail -f /var/log/system.log

Continuously displays new lines added to a file

#bash#tail#watch#logs

Check network connections

Bash
netstat -tuln

Shows all listening ports and network connections

#bash#network#connections#ports

Batch rename files

Bash
for f in *.txt; do mv "$f" "${f%.txt}.bak"; done

Renames all .txt files to .bak files

#bash#rename#batch#files

Check command history

Bash
history | grep 'command'

Searches through command history for specific commands

#bash#history#search#commands

Create symbolic link

Bash
ln -s /path/to/original /path/to/link

Creates a symbolic link to a file or directory

#bash#symlink#link#shortcut

Initialize new repository

Git
git init

Creates a new Git repository in current directory

#git#init#repository#new

Clone repository

Git
git clone https://github.com/user/repo.git

Downloads a copy of a remote repository

#git#clone#repository#download

Check repository status

Git
git status

Shows the current state of the working directory and staging area

#git#status#changes#staging

Add files to staging

Git
git add .

Stages all changes in the current directory

#git#add#staging#all

Commit changes

Git
git commit -m 'Your commit message'

Commits staged changes with a descriptive message

#git#commit#message#save

Push to remote

Git
git push origin main

Uploads local commits to the remote repository

#git#push#remote#upload

Pull latest changes

Git
git pull origin main

Downloads and merges latest changes from remote repository

#git#pull#fetch#merge

List all branches

Git
git branch -a

Shows all local and remote branches

#git#branch#list#all

Create new branch

Git
git checkout -b feature/new-feature

Creates and switches to a new branch

#git#branch#create#checkout

Switch branches

Git
git checkout main

Switches to the specified branch

#git#checkout#switch#branch

Merge branches

Git
git merge feature/branch-name

Merges the specified branch into current branch

#git#merge#combine#branches

View commit history

Git
git log --oneline --graph

Shows commit history in a compact graphical format

#git#log#history#commits

Undo last commit

Git
git reset --soft HEAD~1

Undoes the last commit but keeps changes staged

#git#reset#undo#commit

Stash changes

Git
git stash push -m 'Work in progress'

Temporarily saves changes without committing

#git#stash#save#temporary

Apply stashed changes

Git
git stash pop

Applies the most recent stash and removes it from stash list

#git#stash#apply#restore

Initialize new project

npm
npm init -y

Creates a new package.json with default values

#npm#init#package#project

Install dependencies

npm
npm install

Installs all dependencies listed in package.json

#npm#install#dependencies#packages

Install package

npm
npm install package-name

Installs a specific package and adds it to dependencies

#npm#install#package#add

Install dev dependency

npm
npm install --save-dev package-name

Installs package as a development dependency

#npm#install#dev#development

Install global package

npm
npm install -g package-name

Installs package globally on the system

#npm#install#global#system

Uninstall package

npm
npm uninstall package-name

Removes package from dependencies and node_modules

#npm#uninstall#remove#package

Update packages

npm
npm update

Updates all packages to their latest compatible versions

#npm#update#upgrade#packages

Check outdated packages

npm
npm outdated

Shows packages that have newer versions available

#npm#outdated#check#versions

Run script

npm
npm run script-name

Executes a script defined in package.json

#npm#run#script#execute

List installed packages

npm
npm list --depth=0

Shows all installed packages at the top level

#npm#list#packages#installed

Check package info

npm
npm info package-name

Shows detailed information about a package

#npm#info#package#details

Audit security

npm
npm audit

Checks for security vulnerabilities in dependencies

#npm#audit#security#vulnerabilities

Fix security issues

npm
npm audit fix

Automatically fixes security vulnerabilities when possible

#npm#audit#fix#security

Clear cache

npm
npm cache clean --force

Clears the npm cache to resolve installation issues

#npm#cache#clean#clear

Publish package

npm
npm publish

Publishes the package to the npm registry

#npm#publish#package#registry

Install dependencies

pnpm
pnpm install

Installs all dependencies using pnpm's efficient storage

#pnpm#install#dependencies#packages

Add package

pnpm
pnpm add package-name

Adds a package to dependencies

#pnpm#add#package#install

Add dev dependency

pnpm
pnpm add -D package-name

Adds package as a development dependency

#pnpm#add#dev#development

Remove package

pnpm
pnpm remove package-name

Removes package from dependencies

#pnpm#remove#uninstall#package

Update packages

pnpm
pnpm update

Updates all packages to their latest versions

#pnpm#update#upgrade#packages

Run script

pnpm
pnpm run script-name

Executes a script defined in package.json

#pnpm#run#script#execute

List packages

pnpm
pnpm list

Shows all installed packages in a tree format

#pnpm#list#packages#installed

Check outdated

pnpm
pnpm outdated

Shows packages that have newer versions available

#pnpm#outdated#check#versions

Prune dependencies

pnpm
pnpm prune

Removes packages not listed in package.json

#pnpm#prune#clean#unused

Store status

pnpm
pnpm store status

Shows information about the pnpm store

#pnpm#store#status#cache

Store prune

pnpm
pnpm store prune

Removes unreferenced packages from the store

#pnpm#store#prune#cleanup

Audit packages

pnpm
pnpm audit

Checks for security vulnerabilities in dependencies

#pnpm#audit#security#vulnerabilities

Create workspace

pnpm
pnpm init

Initializes a new pnpm workspace

#pnpm#init#workspace#project

Execute command

pnpm
pnpm exec command

Executes a command in the context of the project

#pnpm#exec#execute#command

Publish package

pnpm
pnpm publish

Publishes the package to the npm registry

#pnpm#publish#package#registry

List running containers

Docker
docker ps

Shows all currently running Docker containers

#docker#containers#list#running

List all containers

Docker
docker ps -a

Shows all containers including stopped ones

#docker#containers#list#all

Build image

Docker
docker build -t image-name .

Builds a Docker image from Dockerfile in current directory

#docker#build#image#dockerfile

Run container

Docker
docker run -d -p 8080:80 --name container-name image-name

Runs a container in detached mode with port mapping

#docker#run#container#port

Stop container

Docker
docker stop container-name

Stops a running container gracefully

#docker#stop#container#halt

Remove container

Docker
docker rm container-name

Removes a stopped container

#docker#remove#container#delete

List images

Docker
docker images

Shows all Docker images on the system

#docker#images#list#repository

Remove image

Docker
docker rmi image-name

Removes a Docker image from the system

#docker#remove#image#delete

Execute in container

Docker
docker exec -it container-name /bin/bash

Opens an interactive bash shell in a running container

#docker#exec#interactive#bash

View container logs

Docker
docker logs -f container-name

Shows and follows the logs of a container

#docker#logs#container#follow

Docker Compose up

Docker
docker-compose up -d

Starts all services defined in docker-compose.yml

#docker#compose#up#services

Docker Compose down

Docker
docker-compose down

Stops and removes all containers defined in docker-compose.yml

#docker#compose#down#stop

Clean up system

Docker
docker system prune -a

Removes all unused containers, images, and networks

#docker#system#prune#cleanup

Copy files to container

Docker
docker cp file.txt container-name:/path/to/destination

Copies files from host to container

#docker#copy#files#container

Inspect container

Docker
docker inspect container-name

Shows detailed information about a container

#docker#inspect#container#details

Connect to server

SSH
ssh user@hostname

Connects to a remote server via SSH

#ssh#connect#server#remote

Connect with specific port

SSH
ssh -p 2222 user@hostname

Connects to SSH server on a custom port

#ssh#connect#port#custom

Generate SSH key

SSH
ssh-keygen -t rsa -b 4096 -C 'your_email@example.com'

Generates a new RSA SSH key pair

#ssh#keygen#generate#rsa

Copy SSH key to server

SSH
ssh-copy-id user@hostname

Copies your public key to the remote server for passwordless login

#ssh#copy#key#authorize

SSH with key file

SSH
ssh -i ~/.ssh/private_key user@hostname

Connects using a specific private key file

#ssh#key#identity#file

SSH tunnel (local port forwarding)

SSH
ssh -L 8080:localhost:80 user@hostname

Creates a tunnel from local port 8080 to remote port 80

#ssh#tunnel#port#forwarding

SSH tunnel (remote port forwarding)

SSH
ssh -R 8080:localhost:80 user@hostname

Creates a reverse tunnel from remote port 8080 to local port 80

#ssh#tunnel#remote#forwarding

SSH with X11 forwarding

SSH
ssh -X user@hostname

Enables X11 forwarding for running GUI applications remotely

#ssh#x11#forwarding#gui

SSH config file

SSH
nano ~/.ssh/config

Opens SSH configuration file for editing connection settings

#ssh#config#configuration#file

Check SSH agent

SSH
ssh-add -l

Lists all SSH keys currently loaded in the SSH agent

#ssh#agent#keys#list

Add key to SSH agent

SSH
ssh-add ~/.ssh/private_key

Adds a private key to the SSH agent

#ssh#agent#add#key

SCP copy file to remote

SSH
scp file.txt user@hostname:/remote/path/

Copies a file to a remote server using SCP

#scp#copy#file#remote

SCP copy directory

SSH
scp -r directory/ user@hostname:/remote/path/

Recursively copies a directory to a remote server

#scp#copy#directory#recursive

SFTP connect

SSH
sftp user@hostname

Opens an interactive SFTP session for file transfers

#sftp#connect#file#transfer

SSH keep alive

SSH
ssh -o ServerAliveInterval=60 user@hostname

Maintains SSH connection with periodic keep-alive messages

#ssh#keepalive#connection#timeout

Open current directory

VS Code CLI
code .

Opens the current directory in VS Code

#vscode#open#directory#current

Open specific file

VS Code CLI
code filename.js

Opens a specific file in VS Code

#vscode#open#file#specific

Open file at line

VS Code CLI
code -g filename.js:25

Opens a file and jumps to a specific line number

#vscode#open#line#goto

Install extension

VS Code CLI
code --install-extension ms-python.python

Installs an extension from the marketplace

#vscode#extension#install#marketplace

List installed extensions

VS Code CLI
code --list-extensions

Shows all installed VS Code extensions

#vscode#extensions#list#installed

Uninstall extension

VS Code CLI
code --uninstall-extension extension-id

Uninstalls a VS Code extension

#vscode#extension#uninstall#remove

Open in new window

VS Code CLI
code -n

Opens VS Code in a new window

#vscode#new#window#instance

Wait for file to close

VS Code CLI
code --wait filename.js

Opens file and waits for it to be closed before returning

#vscode#wait#file#editor

Diff two files

VS Code CLI
code --diff file1.js file2.js

Opens VS Code diff view to compare two files

#vscode#diff#compare#files

Open with specific locale

VS Code CLI
code --locale=en

Opens VS Code with a specific locale/language

#vscode#locale#language#international

Disable extensions

VS Code CLI
code --disable-extensions

Opens VS Code with all extensions disabled

#vscode#disable#extensions#clean

Open user settings

VS Code CLI
code --user-data-dir ~/.vscode-custom

Opens VS Code with a custom user data directory

#vscode#settings#user#data

Export extensions list

VS Code CLI
code --list-extensions > extensions.txt

Exports list of installed extensions to a file

#vscode#export#extensions#backup

Open workspace

VS Code CLI
code workspace.code-workspace

Opens a VS Code workspace file

#vscode#workspace#open#project

Tunnel for remote access

VS Code CLI
code tunnel

Creates a secure tunnel for remote VS Code access

#vscode#tunnel#remote#access

Check system information

System
uname -a

Shows detailed system information including kernel version

#system#info#kernel#version

Check memory usage

System
free -h

Shows memory usage in human-readable format

#system#memory#ram#usage

Check CPU information

System
lscpu

Displays detailed CPU information

#system#cpu#processor#info

Monitor system resources

System
top

Shows real-time system resource usage and processes

#system#monitor#processes#resources

Check disk space

System
df -h

Shows disk space usage for all mounted filesystems

#system#disk#space#usage

List USB devices

System
lsusb

Lists all connected USB devices

#system#usb#devices#hardware

Check network interfaces

System
ip addr show

Shows all network interfaces and their IP addresses

#system#network#interfaces#ip

Check running services

System
systemctl list-units --type=service --state=running

Lists all currently running system services

#system#services#systemctl#running

Check system uptime

System
uptime

Shows how long the system has been running and load averages

#system#uptime#load#average

Check environment variables

System
env

Lists all environment variables

#system#environment#variables#config

Check file permissions

System
ls -la /path/to/file

Shows detailed file permissions and ownership

#system#permissions#file#security

Change file permissions

System
chmod 755 filename

Changes file permissions (755 = rwxr-xr-x)

#system#chmod#permissions#modify

Change file ownership

System
chown user:group filename

Changes file owner and group

#system#chown#ownership#user

Find large files

System
find / -type f -size +100M 2>/dev/null

Finds files larger than 100MB on the system

#system#find#large#files

Check system logs

System
journalctl -f

Shows and follows system logs in real-time

#system#logs#journalctl#monitor
Bolt.new logo