A CLI tool that enables complex actions within Lynkwell EV Charging APIs.
npm install -g @lynkwell/lynkwell-cli
In order to use the CLI, you must first set up an API client in the Lynkwell EV Charging Portal. Once you have an API client, you can authenticate with the CLI using one of the following ways:
If you performing multiple commands or are using the CLI on a regular basis, the fastest way to authenticate is to store your ID and secret key in a credentials file. The CLI will automatically look for a credentials file in your home directory at ~/.lynkwell/credentials
. This file should take the following format:
[credentials]
clientId = "{YOUR CLIENT ID}"
clientSecret = "{YOUR CLIENT ID}"
You can easily create this file by using the configure
command:
lw configure
If you are only performing a single command, you can pass your credentials as arguments to the command. This is not recommended for regular use, as it will expose your credentials in your shell history.
lw change-configuration --clientId {Your Client ID} --clientSecret {Your Client Secret}
lw get-manufacturing-info --help
lw get-configuration --help
lw change-configuration --help