If you want to use the apt command for deb files, use it like this:
sudo apt install deb_file_name
If you want to use the dpkg command for installing deb packages :
sudo dpkg -i deb_file_name
In both commands, you should replace deb_file_name with the path and name of the deb file you’ve downloaded.