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 are three main environment variables used:
DEEPOMATIC_API_KEY are used to interact with trained models.
DEEPOMATIC_STUDIO_TOKEN is used to send images or JSON to Deepomatic Studio.
First you need to retrieve those values from the Deepomatic Studio interface or your account administrator, then you need to pass them along to the terminal. See the code sample below.
export DEEPOMATIC_APP_ID="xxxxxxxxxxxx"export DEEPOMATIC_API_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"export DEEPOMATIC_STUDIO_TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
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.