If you want this done automatically you can determine on what schedule you want it done and include the commands in a [cron job][1] script. Then call the script /full/path/to/script via cron.
I would use:
sudo apt update
sudo apt upgrade
as the full-upgrade switch will remove packages if it's deemed necessary and this may not be something you want done automatically.
Here's an excerpt:
upgrade (apt-get(8))
upgrade is used to install available upgrades of all packages
currently installed on the system from the sources configured via
sources.list(5). New packages will be installed if required to
statisfy dependencies, but existing packages will never be removed.
If an upgrade for a package requires the remove of an installed
package the upgrade for this package isn't performed.
full-upgrade (apt-get(8))
full-upgrade performs the function of upgrade but will remove
currently installed packages if this is needed to upgrade the
system as a whole.
Sources:
man apt
How do I set up a Cron job?