All Commands
Add Package
yarn add <package-name>
Installs a specific package and adds it to dependencies
Add Remote
git remote add <remote> <url_to_remote>
Adds a new remote to the repository
Build Android App
npx expo build:android
Builds an Android binary (.apk or .aab) using Expo Classic build service
Build Android Release APK
cd android && ./gradlew assembleRelease
Generates a release APK build
Build iOS App
npx expo build:ios
Builds an iOS binary using Expo Classic build service
Bundle Assets
npx react-native-asset
Bundles assets such as fonts or images
Change Directory
cd
Navigates to another directory
Change File Permissions
chmod [option(s)] permissions file_name
Modifies file or directory permissions
Check for Outdated Packages
npm outdated
Displays a list of outdated packages with current, wanted, and latest versions
Check Git Version
git --version
Displays the currently installed Git version
Check npm Version
npm --version
Displays the currently installed npm version
Check Status
git status
Displays current changes and staged files
Check Yarn Version
yarn --version
Displays the currently installed version of Yarn
Clean Android Build
cd android && ./gradlew clean
Cleans build files in Android project
Clear All Cached Pods
pod cache clean --all
Removes all cached CocoaPods to free up space or fix caching issues
Clear Terminal Screen
clear
Clears all content on the terminal screen
Clone Repository
git clone <remote_repo_url>
Clones a remote repository to local
Clone Specific Branch
git clone -branch <branch_name> <repo_url>
Clones a specific branch from a repository
Commit Changes
git commit -m “[Commit message]”
Commits staged changes with a message
Create a Directory
mkdir <foldername>
Creates a new directory with the specified name
Create a File
touch <filename>
Creates an empty file with the specified name
Create a New Next.js App
npx create-next-app@latest
Creates a new Next.js project with the latest starter template
Create App with Bare Template
npx create-expo-app my-app --template bare-minimum
Creates a new Expo app with a minimal bare workflow
Create New Branch
git branch <new_branch>
Creates a new local branch
Create New Expo App
npx create-expo-app@latest my-app
Creates a new Expo app using the latest template
Deintegrate Pods
pod deintegrate
Removes all traces of CocoaPods from the Xcode project to start clean
Deprecate Package
npm deprecate
Marks a package as deprecated with a warning message
Diagnose Issues
npm doctor
Runs a set of checks to identify potential issues in your environment
Fetch Changes
git fetch <remote>
Downloads new data from the remote repository
Generate Keystore Info
keytool -list -v -keystore <keystore-path> -alias <keystore-alias> -storepass <keystore-storepass> -keypass <keystore-keypass>
Displays information about your keystore
Initialize App
npx @react-native-community/cli init MyApp
Creates a new React Native app named MyApp
Initialize Project
npm init
Creates a new package.json file with project metadata
Initialize Repository
git init
Initializes a new Git repository
Init with Package Name and Title
npx @react-native-community/cli init MyApp --package-name com.packagename --title “MyApp”
Customizes package name and app title on init
Install Dependencies
yarn
Installs all dependencies listed in package.json using Yarn
Install Dependencies
npm install
Installs all dependencies listed in package.json
Install Expo-Compatible Package
npx expo install <package-name>
Installs a compatible version of a package for the Expo SDK
Install Pods
pod install
Installs the dependencies specified in the Podfile
Install Specific Package
npm install <package-name>
Installs a specific package and adds it to package.json
Launch Emulator
emulator -avd <emulator_name>
Launches Android emulator by name
Link Native Dependencies
npx react-native link
Links native dependencies manually
List Branches
git branch --list
Lists all local branches
List Directory Contents
ls
Lists files and directories in the current working directory
List Remotes
git remote
Lists all remotes connected to the repository
Log Android
npx react-native log-android
Shows Android logs in terminal
Log iOS
npx react-native log-ios
Shows iOS logs in terminal
Open Dev Menu
Shake device or Cmd+D (iOS) / Cmd+M (Android)
Opens the React Native developer menu
Prebuild App
npx expo prebuild
Generates native iOS and Android project files based on config
Pull Changes
git pull <remote>
Pulls and merges changes from the remote repository
Push Changes
git push
Pushes committed changes to the remote repository
Remove Directory
rmdir <directory path>
Removes an empty directory at the specified path
Remove Package
yarn remove <package-name>
Removes a specified package and updates dependencies
Run Development Server
npm run dev
Starts the Next.js development server on localhost
Run on Android
npx react-native run-android
Builds and launches app on Android device/emulator
Run on iOS
npx react-native run-ios
Builds and launches app on iOS simulator
Set Git Email
git config user.email [your.email@domain.com]
Sets the user email for commits
Set Git Username
git config user.name [your-name]
Sets the username for commits
Stage All Changes
git add .
Stages all changes in the current directory
Stage File or Directory
git add <filename_or_dir>
Stages specific files or directories for commit
Start Development Server
npx expo start
Starts the local Expo dev server
Start Metro
npx react-native start
Starts the Metro bundler
Start Project
yarn start
Runs the start script defined in package.json
Start Project
npm start
Runs the "start" script defined in package.json
Start Project with Cache Reset
npm start -- --reset-cache
Starts the project and resets Metro bundler cache (often used in React Native)
Start Project with Cache Reset
yarn start --reset-cache
Starts the project and resets the bundler cache, useful in React Native
Stash Changes
git stash
Temporarily saves changes not yet committed
Switch Branch
git checkout <branch>
Switches to a different branch
Uninstall Package
npm uninstall <package_name>
Removes a specific package from node_modules and package.json
Update Global Packages
npm update -g
Updates all globally installed npm packages
Update Packages
npm update
Updates all dependencies to the latest allowed versions
Upgrade Expo SDK
npx expo upgrade
Upgrades the app to the latest Expo SDK version