Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.
realkarmakun edited this page Mar 14, 2023 · 2 revisions

Before running any command you need to set up credential file for pteroctl to work

This can be done with pteroctl setup command like so:

pteroctl setup --url https://panel.example.com --api-key ptlc_0123456789ABCDEFGHIJKlmnopqr

This would create pteroctl.json file with specified credentials. This design allows reuse of config file. For example, it can be added to CI/CD pipeline.

File should be placed next to the pteroctl binary.

Alternatively you can pass -u and -k options for each command explicitly.

Clone this wiki locally