API Reference
CLI Reference
Complete command reference for the ZETIC Melange CLI tool.
The ZETIC Melange CLI (zetic) provides command-line access to model deployment and management.
Installation
pip install zeticVerify the installation:
zetic --helpCommands
zetic auth login
Authenticate with your ZETIC account. Opens a browser window for authentication. Credentials are stored locally.
zetic auth loginYou only need to log in once. Your session will persist until you log out.
zetic gen
Upload and deploy a model to an existing repository.
zetic gen -p <REPOSITORY> -i <INPUT_FILE> [... -i <INPUT_FILE>] <MODEL_PATH>Parameters
| Parameter | Required | Description |
|---|---|---|
-p, --project | Yes | Repository identifier in username/repository_name format. |
-i, --input | Yes | Path to input file (.npy format). Repeat for multiple inputs. |
MODEL_PATH | Yes | Path to the model file (.pt2, .onnx, or .pt). |
Supported Model Formats
| Extension | Format | Status |
|---|---|---|
.pt2 | PyTorch Exported Program | Recommended |
.onnx | ONNX | Supported |
.pt | TorchScript | Deprecated |
Examples
Single input:
zetic gen -p steve/mobileclip-image -i input_image.npy mobileclip.onnxMultiple inputs:
zetic gen \
-p steve/llama-chat \
-i input_ids.npy \
-i attention_mask.npy \
llama_model.pt2Output
On success, the CLI prints the model key and a dashboard link:
Upload completed successfully!
Your model key is MODEL_KEY_HASH
Check your dashboard at: https://melange.zetic.ai/p/USER_NAME/MODEL_NAME/models/MODEL_KEY_HASHEnsure your inputs are in the correct order. The order of -i flags must match the model's expected input order. See Supported Formats for details on verifying input order.
Prerequisites
- Python 3.8+
- A repository created on the Melange Dashboard
- Active authentication session (
zetic auth login)
See Also
- CLI Deployment Guide: Step-by-step deployment walkthrough
- CI/CD Integration: Automate deployments
- Web Dashboard: GUI-based deployment