⚡ Terminal Cheat Sheet

Quick reference for PowerShell, npm, Wrangler & Git

📦 npm
npm --versionCheck npm is installed
npm init -yCreate a new project (package.json)
npm install packageInstall a package locally
npm install -g packageInstall a package globally
npm run devStart local dev server
npm run buildBuild project for production
npx packageRun a package without installing
npm list -gList globally installed packages
☁️ Cloudflare / Wrangler
wrangler loginLog in to Cloudflare run first
wrangler whoamiCheck which account you're logged into
wrangler logoutLog out of Cloudflare
wrangler pages deploy . Deploy current folder to Pages
wrangler pages deploy . --project-name=my-site Deploy to a named Pages project
wrangler pages project listList all your Pages projects
wrangler pages deployment listView past deployments
🔀 Git
git initInitialize a new git repo
git statusSee what files have changed
git add .Stage all changes
git commit -m "msg"Save a commit with a message
git pushPush commits to remote
git pullPull latest changes from remote
git log --onelineView commit history (compact)
git clone URLClone a repo from URL
🛠️ Useful Utilities
node --versionCheck Node.js version
node script.jsRun a JavaScript file
code .Open current folder in VS Code
start .Open current folder in Explorer
cat file.txtPrint file contents to terminal
echo $env:PATHShow your PATH variable
CTRL + CStop a running process
↑ / ↓Cycle through command history
💡
Pro tip: To navigate to your project quickly, open PowerShell and type cd D:\Gamegabyte\game-ui-course — then run .\deploy.bat to deploy your site to Cloudflare Pages in one click.