I was looking through an article of "clever terminal hacks" to use on Mac. I did not realize that some of these were irreversible and most of them didn't come with instructions on how to undo them. This particular command
defaults write com.apple.dock static-only -bool TRUE killall Dock
makes it so that I can't see apps on my dock that I am not using.
I also used:
defaults write com.apple.Dock showhidden -bool TRUE killall Dock
for further damage (it dulls the apps not visible on the screen?). Here is the link to the article for reference : https://www.macworld.co.uk/how-to/mac-software/mac-terminal-projects-tutorial-3613813/