CLI Downloader

Use the interactive TickTradingData CLI downloader when you want a terminal-based bulk download workflow without manually browsing SFTP folders.


Use CLI Downloader when you want a command-line workflow for bulk downloads but still want the tool to guide the selection process for you.

The current public tool for this workflow is ttd-downloader-go.

It connects to the same TickTradingData SFTP service described in SFTP Download, but wraps that access in an interactive terminal flow with directory selection, automatic decompression, and local conflict handling.

When To Use CLI Downloader

Choose this method when:

  • you prefer the terminal over a GUI SFTP client
  • you want bulk transfer without manually browsing every remote folder
  • you want the downloader to preserve the remote directory structure for you
  • you want downloaded .gz files to be decompressed automatically

If you only need one or two files manually, Web Download is faster.

If you want full manual control over the remote filesystem, SFTP Download is still the more direct method.

Build The Downloader

The safest public setup today is to clone the repository and build the binary locally.

Steps

  1. Clone the repository.
  2. Build the binary from the repository root.
  3. Change into the folder where you want both the local download tree and any saved credentials.json to live.
  4. Run the built binary from there.
bash
git clone https://github.com/ticktradingdata/ttd-downloader-go.git
cd ttd-downloader-go
go build -o ./dist/ttd-downloader

cd /path/to/your/download-folder
/path/to/ttd-downloader-go/dist/ttd-downloader

If you prefer go run, start it from the folder where you want the local files and saved credentials to land:

bash
cd /path/to/your/download-folder
go run /path/to/ttd-downloader-go/main.go

What The CLI Does

The downloader is interactive. Instead of writing remote paths manually, you choose them from prompts inside the terminal.

Typical flow

  1. Start the tool from your target download folder.
  2. Enter your TickTradingData SFTP credentials, or reuse saved credentials if they already exist.
  3. Choose a format under data, such as csv, parquet, or stats.
  4. Select one or more directories with the interactive picker.
  5. Confirm the selection and let the downloader transfer the files.
  6. Work with the decompressed local files after the download finishes.

What Happens Locally

The tool is designed to leave you with a ready-to-use local tree instead of raw SFTP artifacts.

BehaviorWhat to expect
Download locationrun the tool from the folder where you want the files saved
Local structurethe downloader preserves the useful remote folder structure under your current folder
.gz handlingdownloaded .gz files are decompressed automatically and the compressed copy is removed
Conflictsif a target file already exists, the tool asks whether to overwrite, skip, or skip all
Saved credentialsif you choose to save them, the tool writes credentials.json in the current working directory

Relationship To Other Methods

Each download method fits a different style of work.

MethodBest forBest next page
Weba few manual daily downloads from the appWeb Download
SFTPbrowsing folders directly with a file client or terminal SFTP clientSFTP Download
CLI Downloaderinteractive terminal-based bulk transfer with less manual navigationCLI Downloader

Practical Advice

  • Run the CLI from a folder you trust, because both the downloaded files and any saved credentials.json live under the current working directory.
  • Use it for repeatable terminal sessions, not for one-click downloads from the browser.
  • If you already know you want a GUI and direct remote browsing, go back to SFTP Download.

Related Pages