CLI Installation
Quick Install
bash
curl -fsSL https://tradectl.com/install.sh | shThis detects your platform and installs the tradectl binary to ~/.tradectl/bin/.
Manual Download
Download the binary for your platform from GitHub Releases:
| Platform | Architecture | Binary |
|---|---|---|
| Linux | x86_64 | tradectl-linux-x86_64 |
| Linux | aarch64 | tradectl-linux-aarch64 |
| macOS | Intel (x86_64) | tradectl-darwin-x86_64 |
| macOS | Apple Silicon | tradectl-darwin-aarch64 |
After downloading, make it executable and move it to your PATH:
bash
chmod +x tradectl-*
mv tradectl-* ~/.tradectl/bin/tradectlPATH Setup
Add ~/.tradectl/bin to your PATH:
bash
echo 'export PATH="$HOME/.tradectl/bin:$PATH"' >> ~/.bashrc
source ~/.bashrcbash
echo 'export PATH="$HOME/.tradectl/bin:$PATH"' >> ~/.zshrc
source ~/.zshrcVerify
bash
tradectl --versionUpdate
bash
tradectl updateOr re-run the install script:
bash
curl -fsSL https://tradectl.com/install.sh | shEnvironment Variables
| Variable | Default | Description |
|---|---|---|
TRADECTL_API_URL | https://tradectl.com | API server URL |
TRADECTL_DOWNLOAD_URL | GitHub Releases URL | Override binary download location |
Override for local development:
bash
export TRADECTL_API_URL=http://localhost:3001