/Terminal-Commands

All terminal commands in one place (you can Contribute to it by putting latest commands and adding Readme)

Primary LanguageJavaScript

Terminal-Commands

All basic terminal commands in one place

Show some ❤ by some repositories

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

React Commands

Node Commands

ExpressJS Commands

FireBase Commands

Netlify Commands

TypeScript Commands

Important NPM Packages

Linux COMMANDS


Git Commands

git --version
git add *

git commit -m "Pushing new Changes"

git push origin main 

git branch branch-name 

git checkout branch-name

first time

git config --global user.name "Shehzad”
git config --global user.email "shehzaddiqbal@gmail.com”
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
npm install react-icons --save

Node Commands

node --version
node fileKaName
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
npm i prompt-sync

installing nvm

nvm install (version) like (12.16.3)
phir
nvm use 12.16.3

ExpressJS Commands

npm init -Y

(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)

npm i cors

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 other options [(--only hosting),(--only database),(--only storage),(--only firestore),(--only functions)]

npm install firebase@9.12.1 --save

fireStore

firebase --help
firebase 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
netlify logout

Material UI

npm install @mui/material @emotion/react @emotion/styled
npm install @mui/material @mui/styled-engine-sc styled-components
npm install @fontsource/roboto
npm install @fontsource/roboto

TypeScript Commands

npm install typescript --save-dev
npm i -g typescript
tsc --init

(to make ts.config)

tsc (file ka nam)eg. tsc index.ts
npx create-react-app app_name --template typescript 

( React + Redux + TypeScript ) Command

npx create-react-app app_name --template redux-typescript 

Important NPM Packages

npm i mongoose
npm install formik --save
npm i yup

Linux COMMANDS

  1. 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