Terminal-Commands
All basic terminal commands in one place
❤
by some repositories
Show some You can contribute to this readme If you to contribute with a loooot of commands make a new .txt file / if you see old commands don't tell me fork it and feel free to contribute in this OpenSource Project..
Git Commands
git --version
git add *
git commit -m "apna comment"
git push origin main
first time
git config --global user.name "apna nam”
git config --global user.email "apna email”
git status
React Commands
npx create-react-app myappname
(to create react project)
npm start
(to start app)
npm run build
(this build a final folder run this after project is finished)
npm i react-router-dom
Node Commands
node --version
node fileKaName
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
installing nvm
nvm install (version) like (12.16.3)
phir
nvm use 12.16.3
ExpressJS Commands
npm init
(to initinil node project is easy words to create package.json) -y for default settings
npm install express
(to initilize express project express ky liye)
FireBase Commands
npm install -g firebase-tools
(install CLI(also use this command to update CLI))
firebase login
(first time only)
firebase init
(initilize project(apne project ma run karna ye))
firebase deploy --only hosting
firebase deploy [(--only hosting),(--only database),(--only storage),(--only firestore),(--only functions)]
firebase --help
netlify logout
Netlify Commands
npm install netlify-cli -g
(first time only)
netlify login (first time only)
!(netlify init)
netlify deploy --prod
netlify status
netlify help
Formik i Commands
npm install formik --save
yup i Commands
npm i yup
npm install -S yup
MongoDB Commands
npm i mongoose
TypeScript Commands
npm install typescript --save-dev
npm i -g typescript
tsc (file ka nam)eg. tsc index.ts
tsc --init (to make ts.config)
npx create-react-app app_name --template typescript
( React + Redux + TypeScript ) Command
npx create-react-app app_name --template redux-typescript
Linux COMMANDS
- cd dir or ls (to view files in directories)
DotNet on Ubuntu for C#
sudo apt-get install wget apt-transport-https
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install dotnet-sdk-5.0
dotnet --version