The tcmd CLI lets you trigger commands on remote computers from a terminal.
- Windows 64bit (most common)
- Windows 32bit
- Mac 64bit
- Linux 32bit
- Linux 64bit
- Linux arm (ie: Raspberry Pi or Orange Pi)
# Example for Linux ARM (Raspberry Pi) — substitute the correct download for your platform
wget https://triggercmdagents.s3.amazonaws.com/tcmd_cli/tcmd-linux-arm
sudo mv tcmd-linux-arm /usr/local/bin/tcmd
chmod +x /usr/local/bin/tcmd- Rename the downloaded file to tcmd.exe.
- Move it to C:\Windows or another folder in your PATH.
The first time you run tcmd, you need to authenticate. There are three options:
- Pair code — run
tcmd --pairand follow the prompts. - Token file — if you have the TRIGGERcmd agent installed, tcmd will automatically find your token at
~/.TRIGGERcmdData/token.tkn. - Environment variable — set
TRIGGERCMD_TOKENto your token value.
Run this command to get help text:
tcmd -h
NAME:
tcmd - Run commands on computers in your TRIGGERcmd account
USAGE:
tcmd [options]
OPTIONS:
--trigger value, -t value Trigger name of the command you want to run
--computer value, -c value Name of the computer (leave blank for your default computer)
--params value, -p value Any parameters you want to add to the remote command
--panel value, -P value Name of the panel you want to use
--button value, -b value Name of the panel button to "press"
--list, -l List your commands
--listpanels, -L List your panels
--pair Login using a pair code
--help, -h show help
--version, -v print the version
You can view the Go source code for the tcmd tool on Github here.
To see the tcmd tool in action, check out this Youtube video.