## 6.1.3.1.1 Get the btp CLI Client for Microsoft Windows (amd64)
## Procedure
1. To get the btp CLI client, you can either run the installation script or download the client manually.
- Option 1: Installation Script (Windows PowerShell) When you run the installation script in Windows PowerShell, you will be guided through the installation process:
Invoke-RestMethod 'https://cli.btp.cloud.sap/btpcli-install.ps1' | InvokeExpression
To uninstall the btp CLI:
```
Invoke-RestMethod 'https://cli.btp.cloud.sap/btpcli-uninstall.ps1' | Invoke-Expression
```
- Option 2: Manually install the latest Microsoft Windows (amd64) version
1. Download the latest Microsoft Windows client from SAP Development Tools.
2. Extract the client from tar.gz archive. Use PowerShell or an external program, such as WinRar, to extract the tar.gz file. Tip: Once you've unpacked the executable file, enter cmd or powershell in the address bar of the folder. This opens the command prompt or PowerShell in this folder. Or proceed with the next step to enable calling btp from any location on your system.
3. Copy the client executable from the unpacked folder to a directory of your choice. We recommend the following, because it ensures that you can call btp system-wide, i.e., that it is in your PATH: C:/Users/&lt;your-user&gt;
2. In the Windows search, enter Environment Variable and open the System Properties . On the Advanced tab, open Environment Variables . Under User Variables , open the Path entry and add the file location of the btp.exe ( C:\Users&lt;your-user&gt; ).
4. Optional: If you have a proxy server configured in your environment, you need to specify its address and port as environment variable HTTPS\_PROXY or https\_proxy to access SAP BTP. For example, HTTPS\_PROXY=https://my-https-proxy:1234 . The specified proxy server is then used for HTTPS requests, unless overridden by the NO\_PROXY or no\_proxy, environment variables, which define a comma-separated list of hosts to be excluded from proxying.
2. In your terminal, run btp . Note that you need read and write permissions in the target folder to run this executable.
3. Log into your global account with btp login and enter the required information. You must confirm the btp CLI server ( https://cli.btp.cloud.sap/ ) and, if you have more than one, select your global account. For details, see Log in.
4. Once you're logged in, familiarize yourself with the btp CLI, for example with How to Work with the btp CLI, Command Syntax of the btp CLI, or simply by trying out a few commands, such as the following:
btp list accounts/subaccount btp list security/user
btp get security/user "name@example.com"
btp get accounts/global-account"
##  Tip
Use the command autocompletion feature in the btp CLI to save keystrokes when entering command actions, group-object combinations, and their parameters in the command line. For more information, see Enable Command Autocompletion [page 2423].
5. If you're going to work in a subaccount of this global account, consider setting the target to this subaccount using btp target and select the subaccount. See Set a Target for Subsequent Commands with btp target.
6. To view the current context, target, and version, use btp .