跳到主要内容

Install

Standalone binaries are published to Tealstreet/cli. Pick a channel below; both install the same artifact.

macOS & Linux

# One-liner — detects platform/arch, drops into /usr/local/bin
curl -fsSL https://get.tealstreet.io/cli | bash

# Homebrew tap
brew install tealstreet/tap/tealstreet

Verify:

tealstreet --version

If you see command not found, /usr/local/bin isn't on your PATH — add it, or symlink the binary somewhere that is.

The Homebrew formula lives in Tealstreet/homebrew-tap.

Windows

Download the latest .exe from the releases page and drop it on your PATH. WSL users — install through the macOS/Linux one-liner inside WSL.

Available builds

AssetPlatform
tealstreet-darwin-arm64Apple Silicon Macs
tealstreet-darwin-x64Intel Macs
tealstreet-linux-x64Linux x86_64
tealstreet-linux-arm64Linux arm64

First run

tealstreet

No args = start the REPL. The prompt looks like:

:<account> [<symbol> $<last-price>] >

If you have no accounts yet, add one:

tealstreet account add -n mybybit -e bybit -k <KEY> -s <SECRET> --default

Then re-launch and it'll auto-focus that account. To see every supported exchange and the credential fields each one needs:

tealstreet account exchanges

Logging in

The CLI uses Auth0 for update checks and identity — separate from any exchange API keys, which live only on your machine.

Inside the REPL:

> login

Your browser opens, you sign in, the CLI prints Logged in as <email>, and writes the token to ~/.tealstreet/config.json. logout clears it. whoami (alias auth) shows the current user.

The OAuth callback listens on localhost:9876 during the flow.


Updating

tealstreet update # download and replace the running binary
tealstreet update -c # version-check only

update --check (or -c) checks the latest release on GitHub without downloading. The REPL also runs a background check at startup and prints a banner when a newer version is published.


Top-level flags

FlagEffect
-v / --versionPrint version and exit
--updateTrigger updater
--check-updateVersion-check only
--disable-allStart REPL with all exchanges disabled

--disable-all is useful when you want to launch the CLI without auto-connecting every account — for cold-starts on flaky networks, or for running purely-local commands like sim on / set.


File locations

The CLI keeps state under ~/.tealstreet/. All of it is text or SQLite — inspectable with cat, jq, or sqlite3. See Config files for the full layout.

OverrideEffect
TEALSTREET_CONFIG_DIRMove the entire state directory
TEALSTREET_CONFIG_FILEOverride just the main config file path

Where to next