Command Line Interface
Deploy your models using the ZETIC CLI from your terminal
This guide explains how to deploy your models through your terminal using the CLI (Command Line Interface) method.
Prerequisites
You must create a repository first using the Web Dashboard before using the CLI.
Install ZETIC CLI
Install the ZETIC CLI tool using pip:
pip install zeticVerify the installation:
zetic --helpAuthenticate
Log in to your ZETIC account from the terminal:
zetic auth loginThis will open a browser window for authentication. Once completed, your credentials will be stored locally.
You only need to log in once. Your session will persist until you log out.
Upload Your Model
Deploy your model to an existing repository:
zetic gen -p $REPOSITORY -i $INPUT_0 -i $INPUT_1 ... $MODEL_PATHParameters
| Parameter | Description | Example |
|---|---|---|
-p, --project | Repository identifier in username/repository_name format | steve/mobileclip-image |
-i, --input | Input file path(s). Supports .npy format only. Repeat for multiple inputs | -i input0.npy -i input1.npy |
MODEL_PATH | Path to your model file. Supports TorchScript (.pt) and ONNX (.onnx) | model.onnx |
Input sequence matters
Ensure your inputs are in the correct order. Learn more in Prepare Model and Input(s).
Example
zetic gen \
-p steve/mobileclip-image \
-i input_image.npy \
mobileclip.onnxzetic gen \
-p steve/llama-chat \
-i input_ids.npy \
-i attention_mask.npy \
llama_model.ptExpected Output
Uploading model from MODEL_NAME.onnx to project USER_NAME/MODEL_NAME
Starting upload process...
Project: USER_NAME/MODEL_NAME
Model Path: MODEL_NAME.onnx
Upload completed successfully!
Model is requested to convert
Your model key is MODEL_KEY_HASH
Check your dashboard at: https://mlange.zetic.ai/p/USER_NAME/MODEL_NAME/models/MODEL_KEY_HASH
The upload process will begin, and after it completes, a model key will be generated.
The model key, shown as MODEL_KEY_HASH, is unique to your model and can be used to reference it in your zetic dashboard.
To view more details about your model, including settings and statistics, visit the link provided in the output: https://mlange.zetic.ai/p/USER_NAME/MODEL_NAME/models/MODEL_KEY_HASH.For CI/CD pipelines, consider using Personal Keys as environment variables instead of interactive login.