Docs/CLI/CLI overview

TrackFox CLI

The CLI lets you, or your AI agent, view your analytics right from the terminal and wraps around the Trackfox API. You can use this CLI to access almost any analytics you would see on the dashboard.

Requirements

  • Node.js 18 or newer. You can get it here.
  • A TrackFox account and website. Get started for free here

Quick start

Open your website from the dashboard, choose Site Settings → API, create an API key, and copy it immediately.

Your website ID appears after /dashboard/ or /settings/ in the website URL when you visit your website's dashboard or settings.

1. Install the trackfox npm package

npm i -g trackfox

2. Authenticate your website info (ID and API key)

trackfox config add

3. Take a quick look at your website's analytics

trackfox analytics

If you have multiple websites you want to manage, you can utilize our Profiles feature.

Explore the CLI

Need help? Contact us for assistance.

Suggest features? We'd love your feedback