Windows
To install the latest STK CLI version, download the installer and run it in your terminal.
Use Git Bash for a better experience (such as the auto-complete feature).
Homologated Versions
STK CLI works on the following Windows versions:
- Windows 11
- Windows 10
There are no installation requirements for other versions, but STK CLI compatibility may not be complete.
Requirements
- Install Git - starting with version 2.32.
- Create an account on StackSpot website.
Set up your Git user
After installing Git, configure the user and email address of your repository account. In the terminal, run the following commands:
Step 1. Set up your username and email address
Name:
git config --global user.name "{username}"
E-mail:
git config --global user.email "{email}"
Step 2. Check the configuration
Run the following commands:
git config --get user.name
Next:
git config --get user.email
If your Git repository account username and email address were displayed in the terminal, go to the Quickstart section. If there was an error, repeat [Step 1] to correct it.
Follow the steps below to install STK CLI:
Step 1. Download STK CLI
Step 2. Follow the wizard instructions on your computer
Go to the folder where you placed the stk-legacy.msi
file.
Double-click on the file to start the installation. Follow the wizard instructions on your computer and finish the installation.
Step 3. Restart the terminal after installation
If the terminal is open, close it and open it again after installing it. It will help the stk-legacy
command get recognized.
In the terminal, run the command:
stk-legacy --version
If STK CLI activation didn't work, whenever you run a command in the terminal, you will receive an alert to activate the code. For more details about the activation code, check Step 1 again.
If everything is configured, the terminal will return the current STK CLI version number.
Step 4. Authenticate the STK CLI
To authenticate the STK CLI, run the command below:
stk-legacy login
The command will ask for your account email, enter the email registered on the StackSpot Website. It is also possible to inform the email as a parameter:
stk-legacy login <email-account@email.com>
A screen will open in your default browser for you to enter the username and password associated with the account. After validating the information and confirming the login, return to the STK CLI where your session will start.
Next steps
Now you can start using STK CLI, check Quickstart section.
Was this page helpful?