<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[tcmd GO command line tool is available now]]></title><description><![CDATA[<p dir="auto">Thanks to <a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/60">@Xander</a>'s feature request, I created a command line tool you can use instead of curl to run commands on your remote computer.</p>
<p dir="auto">I wrote it in Go so I could easily compile a version for each OS, like Linux, Windows or Mac (Darwin), and each CPU architecture like 32bit (386) or 64bit (amd64).</p>
<p dir="auto">Just download the tool you need for your OS, and rename it to tcmd.  The rename is not required, but I recommend it for consistency.</p>
<p dir="auto">These are the versions:</p>
<p dir="auto"><a href="https://triggercmdagents.s3.amazonaws.com/tcmd_cli/tcmd-darwin-386" rel="nofollow ugc">Mac 32bit</a><br />
<a href="https://triggercmdagents.s3.amazonaws.com/tcmd_cli/tcmd-darwin-amd64" rel="nofollow ugc">Mac 64bit</a><br />
<a href="https://triggercmdagents.s3.amazonaws.com/tcmd_cli/tcmd-linux-386" rel="nofollow ugc">Linux 32bit</a><br />
<a href="https://triggercmdagents.s3.amazonaws.com/tcmd_cli/tcmd-linux-amd64" rel="nofollow ugc">Linux 64bit</a><br />
<a href="https://triggercmdagents.s3.amazonaws.com/tcmd_cli/tcmd-linux-arm" rel="nofollow ugc">Linux arm (Raspberry Pi)</a><br />
<a href="https://triggercmdagents.s3.amazonaws.com/tcmd_cli/tcmd-windows-386.exe" rel="nofollow ugc">Windows 32bit</a><br />
<a href="https://triggercmdagents.s3.amazonaws.com/tcmd_cli/tcmd-windows-amd64.exe" rel="nofollow ugc">Windows 64bit (most common)</a></p>
<p dir="auto">Here's an example from my Raspberry Pi:</p>
<pre><code>wget https://triggercmdagents.s3.amazonaws.com/tcmd_cli/tcmd-linux-arm
sudo mv tcmd-linux-arm /usr/local/tcmd
chmod +x /usr/local/tcmd
tcmd
No trigger specified.  Use --help or -h for help.

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 ds -t calculator
</code></pre>
<pre><code>tcmd -c ds -t calculator
{"data":    {"user":"68bh2a75f2f63133334755d1","computer":"5a2f8be70f383803178e0dee","name":"Calculator","voice":"calculator","voiceReply":null,"allowParams":false,"runCount":24,"createdAt":"2018-03-30T22:59:35.862Z","updatedAt":"2018-06-23T15:48:04.031Z","id":"5abec157a745e8110063aa18"},"message":"Trigger sent."}
</code></pre>
<p dir="auto">If you want to see the source code, check out <a href="https://github.com/rvmey/triggercmdGOclient" rel="nofollow ugc">https://github.com/rvmey/triggercmdGOclient</a></p>
<p dir="auto">If you want to run the Linux version in Windows WSL, you'll want to copy your token.tkn file to your home folder like this:</p>
<pre><code>mkdir ~/.TRIGGERcmdData
cp /mnt/c/Users/Russ/.TRIGGERcmdData/token.tkn ~/.TRIGGERcmdData/
tcmd -computer DS -trigger notepad -params russ.txt
</code></pre>
<p dir="auto">EDIT 1/13/20:  Now you can <a href="https://www.triggercmd.com/forum/topic/591/tcmd-go-client-added-support-for-a-quoted-string-with-spaces-for-the-params-parameter">pass multiple parameters</a>.<br />
EDIT 2/4/20:  Added a --list parameter to list possible tcmd commands.<br />
EDIT 7/24/21:  Added --pair parameter to use a pair code to get a token.  FYI if you've installed the agent you already have a token.<br />
EDIT 3/22/26:  Added --tui parameter to open a Text User Interface.  Also now you can authenticate using a TRIGGERCMD_TOKEN environment variable.</p>
]]></description><link>https://www.triggercmd.com/forum/topic/196/tcmd-go-command-line-tool-is-available-now</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 22:31:49 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/196.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 23 Jun 2018 16:25:07 GMT</pubDate><ttl>60</ttl></channel></rss>