node -v / npm -v
Check Node & npm versions
node -v
npm -v
node
npx
Run a package without installing
npx create-vite@latest myapp
nodenpx
npm run
Run package.json script
npm run build
npm
pm2 start
Daemonize/manage processes
pm2 start npm --name myapp -- run start
pm2 save && pm2 startup
pm2system
vite
Fast dev server/bundler
vite
# scripts: { dev, build } in package.json
build
python -m venv
Create & activate virtualenv
python3 -m venv .venv
source .venv/bin/activate
python
pip install -U
Install/upgrade packages
pip install -U fastapi uvicorn
python
uvicorn
Run ASGI app
uvicorn app:app --reload --host 0.0.0.0 --port 8000
pythonasgi
nginx -t && systemctl reload nginx
Test config then reload
sudo nginx -t && sudo systemctl reload nginx
nginxsystemd
certbot --nginx
Let’s Encrypt (auto nginx)
sudo certbot --nginx -d example.com -d www.example.com
tls