Before proceeding with the usage, let's take a look at a quick installation guide. Windows and macOS already have installers available for Metasploit that are available here:
https://github.com/rapid7/metasploit-framework/wiki/Nightly-Installers
Installing on Linux is easy and can be done by using the following command:
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \ chmod 755 msfinstall && \ ./msfinstall