Install the OpenTofu Command Line Interface (CLI).
brew update
brew install opentofu
tofu version
How to enable tab completion
$ which tofu
/opt/homebrew/bin/tofu
$ echo "complete -C /opt/homebrew/bin/tofu tofu" >> ~/.bash_profile
$ source ~/.bash_profile