Read the stepwise tutorial for Magento 2 Static Content Deploy to boost the speed of Magento 2 store!
Use the command to write static content files while setting the store into production mode and boost the speed of your Magento 2 store.
Get the manual method and the automated method at https://meetanshi.com/blog/magento-2-static-content-deploy/