If you want to view all the installed packages of a project (including the dependencies) as well as view information about a specific package. All of this information can be found in the Composer lock file, but using show provides an easier and more convenient way of extracting the information.
composer show -s