Install the Xenia CLI using PIP.
pip install git+https://github.com/DutchAnalytics/xenia-cli.git
To check the version of your installation, use:
Sign in to Xenia via the CLI. If you want to use a service user token (api token) to sign in, please add the
# to authenticate with email and password: xenia signin # to authenticate with a service user token: xenia signin --token
You will be asked for the API endpoint you want to use. The default API endpoint is the latest compatible version of the API. Press enter to use the default.
Then you will be prompted to fill in your credentials (email + password, or API token if you used the
--token option). If you use your email and password to authenticate, a temporary access token is generated in the background, which provides you access for 3 hours.
To check if you are authorized, use:
If you use your email and password to authenticate, your email will automatically be stored as default user. To check the current user, use:
To sign out, use:
curl -X GET https://storage.googleapis.com/da-xenia/example-model-package/mnist_model_package.zip -o mnist_model_package.zip curl -X GET https://storage.googleapis.com/da-xenia/example-model-package/1.jpg -o 1.jpg
Updated 19 days ago