VaclavIII - 2024-04-22

Hello, everyone,
I apologize for the (possibly) naive question - I'm a beginner. I have VeraCrypt installed on a RaspberryPi, RpiOS 64 bit, I have experience with VeraCrypt from a Windows environment. I save data from RpiOS to a remote external HD, which is connected to linux access point using samba, with the command:

sudo mount -t cifs "//<ip_address>/volume(sda1)/<remote_directory>/" /mnt/remote_share -o credentials=/etc/<credential_file>,vers=1.0</credential_file></remote_directory></ip_address>

I would like to encrypt an entire partition of an external drive using VeraCrypt. Can you please advise me a line command for VeraCrypt that would be equivalent to the above command to mount an encrypted HD? It should also be possible to execute the command automatically, for example before an automatic backup - i.e. a secure password transfer should be provided (equivalent to "credential_file", see above).
Thanks for your tips!