The first command installs the firebase-tools npm package. This package contains commands to help you manage your Firebase projects and projects hosted on Firebase.
The second command logs in to your Firebase account.
The third command starts your Firebase hosting project.
The fourth command deploys your project to Firebase.
npm install -g firebase-tools firebase login firebase serve --only hosting firebase deploy --only hosting