An environment variable is a variable that is defined in the terminal and used by the executable afterwards. In the context of Deepomatic CLI there is one environment variables used:
DEEPOMATIC_API_KEY is used to interact with trained models and to send images or JSON to Deepomatic Studio.
First you need to retrieve those values from the Deepomatic Studio interface. Click on your name on the top right of the page and go to My account where the API Key will be displayed in the section Credentials.
Copy this value and set it as your environment variable by running this line in your terminal.
You get this error because Deepomatic CLI cannot reach the Deepomatic endpoints. Most of the times this is the consequence of a Proxy that has not been setup.
The easiest way to do it is to simply pass the proxy parameters as an environment variable. You will need:
proxyserver: the proxy server address.
proxyport: the proxy server port.
user: your proxy user login identifier.
password: your proxy authentication password.
The Deepomatic CLI uses only secured https connection. As such, you just need to setup the
https_proxy environment variable.