-
If you don't have it, download and install NodeJS. During set up, ensure that you leave Add to PATH chosen.
-
Open a Command Prompt and enter
npm i -g tfx-cli.
If you already have the TFX CLI installed, you can update to the latest release by running npm up -g tfx-cli.