How to execute veracrypt on the command line?

How can execute veracrypt on the command line in OS X?

According to the Veracrypt documentation there should be a command veracrypt but it was not found.

Any advice ?


The command is /Applications/VeraCrypt.app/Contents/MacOS/VeraCrypt


you should append --text parameter to VeraCrypt

like /Applications/VeraCrypt.app/Contents/MacOS/VeraCrypt --text


You need to setup a symbolic link named 'veracrypt' to the executable. The following will work in a terminal:

mkdir -p ~/bin ; # <<-- if it doesn't exist already
ln -s /Applications/VeraCrypt.app/Contents/MacOS/VeraCrypt ~/bin/veracrypt

You can then invoke it to get help with (the -t is for text-only mode):

PATH="$HOME/bin:$PATH" ; # <<-- if not already on your search path
veracrypt -t -h

To simplify usage, I add this to my .bash_profile:

VC="/Applications/VeraCrypt.app/Contents/MacOS/VeraCrypt"

Then I can execute the app on the command line:

$VC --mount /path/to/container

Can also define an alias to mount the container:

alias mc="$VC --mount /path/to/container"