Skip to main content

Getting Started

This is a command-line interface (CLI) for Harvest that contains all features available in Harvest's REST API V2. The majority of the CLI is generated from an export of Harvest's Postman Collection.

In addition to supporting features of the REST API, the Harvest CLI provides convenient ways to track time.

Install

Install the CLI using the npm package manager:

npm install -g hrvst-cli

Log in with your Harvest account

To authenticate with Harvest's REST API, client side OAuth2 is used. To initiate this, run:

hrvst login

You’ll be prompted to launch your browser and log in to Harvest to grant Harvest CLI access to your account.