@ykmg/tesla-invoice-api-cli

1.0.2 • Public • Published

Tesla Invoice CLI

I got annoyed by downloading the invoices manually. Especially since the feature was added to the mobile app and removed from the website.

Installation

Run:

npm i @ykmg/tesla-invoice-api-cli -g

Usage

You need your VIN and an API-Token in order to run the script. You can export both variables as environment variables "TESLA_API_VIN" and "TESLA_API_TOKEN". Otherwise you will be asked upon script execution.

The script will create a Folder called "invoices" at the location from where it is called.

To tun the script just call

tesla-invoice-cli download

Obtaining a Token

There are multiple apps available to securely generate access tokens yourself, for example:

Tested on MacOS. Should also run seemlessly on Linux. Windows is untested.

ko-fi

Have fun :)

Readme

Keywords

none

Package Sidebar

Install

npm i @ykmg/tesla-invoice-api-cli

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

8.77 kB

Total Files

6

Last publish

Collaborators

  • ykmg