Skip to main content

commands directory

just start typing

CommandDescriptionOS
sudo systemctl stop postgresqlStop PostgreSQL serviceLinux
brew services stop postgresqlStop PostgreSQL on macOS using HomebrewmacOS
net stop postgresqlStop PostgreSQL on WindowsWindows
python -m venv venvCreate a virtual environment using venvAll
source myvenv/bin/activateActivate virtual environment on Linux/macOSLinux
venv\Scripts\activate.batActivate virtual environment in cmd.exe on WindowsWindows
venv\Scripts\Activate.ps1Activate virtual environment in PowerShell on WindowsWindows
pip install -r requirements.txtInstall dependencies from requirements.txtAll
alembic revision --autogenerate -m "Add users table"Generates a new migration file based on detected model changes. [2025-04]Linux/macOS/Windows
alembic upgrade headApplies all pending migrations to the database. [2025-04]Linux/macOS/Windows
export FLASK_APP=app.main && export FLASK_ENV=developmentSets Flask environment variables for development mode. Use `set` instead of `export` on Windows. [2025-04]Linux/macOS
flask runRuns Flasks built-in dev server. Assumes env variables are set. [2025-04]Linux/macOS/Windows
cd backend && uvicorn app.main:app --reloadRuns FastAPI app using Uvicorn with live reload. Ensure `cd` to backend directory. [2025-04]Linux/macOS/Windows
npm create vite@latest my-appScaffolds a new React project with Vite. Choose `react` or `react-ts` when prompted. [2025-04]Linux/macOS/Windows
cd my-app && npm installInstalls project dependencies for the newly created Vite app. [2025-04]Linux/macOS/Windows
npm run devStarts the development server for a Vite-based React app. [2025-04]Linux/macOS/Windows
npm startesp for Docusaurus, but also Starts the development server for a React app created with Create React App. (for docusaurus - do cd to docs first) [2025-04]Linux/macOS/Windows
ollamashows the list of avialable commands [2025-04]Linux/macOS/Windows
ollama run <model_name>runs the model [2025-04]Linux/macOS/Windows
uvicorn file_name:fastapi_app_name --reloadStarts a FastAPI server with hot reloading. [2025-04]Linux/macOS/Windows
export API_KEY=your_api_keySets an environment variable for API key on macOS/ Linux. Has to be in the same terminal session. [2025-04]Linux/macOS
npm installinstalls all the dependencies on your machine. esp use it when you have a new project or cloned project. [2025-07]Linux/macOS/Windows
npx @google/gemini-clistarts up gemini cliLinux
git pull origin mainget the latest content from the main branchall
lsof -i :5000get what program is using the given portlinux
kill -9 0000kill a program with their pid. you can get pid from the lsof commandlinux
npx drizzle-kit generate --name filenamegenerate sql migrations file based on schema. drizzle ORM, typescript. optional, you can add nameall
npx drizzle-kit migrateapply the generated changes from the sql fileall