Here are the steps:

  1. First install the PNP Module
  2. Then run the Connect-PNPOnline to your source site
  3. Then run Get-PNPProvisioningTemplate to export the template
  4. Then create your destination site by using New-PNPSite if your site is not created already.
  5. Then run Connect-PNPOnline command again on your destination site
  6. Now, run the command Apply-PNPProvisioningTemplate over the xml file exported earlier from the source site

The full process is shown here along with a relevant example: