CLI tool to interact with Kelvin platform
Project description
Kelvin CLI
Command-line tool to interact with the Kelvin Platform.
Installation
pip install kelvin-sdk
Quick Start
Authentication
Log in to a Kelvin platform:
kelvin auth login demo.kelvin.ai
This opens your browser for SSO authentication. Alternative authentication methods:
# Client credentials (for automation)
kelvin auth login demo.kelvin.ai --client-id <id> --client-secret <secret>
# Username/password
kelvin auth login demo.kelvin.ai -u <username> -p <password>
# With 2FA
kelvin auth login demo.kelvin.ai -u <username> -p <password> --totp <code>
Explore Commands
Use --tree to see all available commands:
kelvin --tree
Get help for any command:
kelvin --help
kelvin auth --help
kelvin workload deploy --help
Global Flags
These flags are available on all commands:
| Flag | Description |
|---|---|
--json |
Output as JSON (for scripting) |
-y, --yes |
Skip confirmation prompts |
-v, --verbose |
Enable debug logging |
JSON Mode
Use --json for machine-readable output:
kelvin workload list --json
kelvin apps list --json | jq '.apps[] | .name'
Scripting
Combine --json and --yes for non-interactive scripts:
kelvin workload undeploy my-workload --json --yes
Command Groups
auth - Authentication
kelvin auth login <url> # Log in to platform
kelvin auth logout # Log out from platform
kelvin auth token # Get current access token
kelvin auth reset # Clear all auth state
apps - Application Registry
kelvin apps list # List applications
kelvin apps search <query> # Search applications
kelvin apps show <name> # Show application details
kelvin apps upload <path> # Upload application
kelvin apps download <name> # Download application
kelvin apps delete <name> # Delete application
app - Local Application Development
kelvin app create # Create new application
kelvin app build # Build application image
kelvin app upload # Build and upload to registry
kelvin app samples # Open code samples repo
App Images
kelvin app images list # List local images
kelvin app images remove # Remove local image
kelvin app images unpack # Extract image contents
App Testing
kelvin app test simulator # Generate random test data
kelvin app test csv # Publish data from CSV
kelvin app test generator # Use custom data generator
MLflow Integration
kelvin app mlflow create # Create app from MLflow model
kelvin app mlflow import # Import MLflow model into app
kelvin app mlflow list # List MLflow models
workload - Workload Management
kelvin workload list # List workloads
kelvin workload search <query> # Search workloads
kelvin workload show <id> # Show workload details
kelvin workload deploy <app> [options] # Deploy workload
kelvin workload update <id> [options] # Update workload
kelvin workload start <id> # Start workload
kelvin workload stop <id> # Stop workload
kelvin workload logs <id> # View workload logs
kelvin workload undeploy <id> # Delete workload
secret - Secret Management
kelvin secret list # List secrets
kelvin secret create # Create secret
kelvin secret update # Update secret
kelvin secret delete # Delete secret
configuration - CLI Configuration
kelvin configuration list # List configurations
kelvin configuration set # Set configuration
kelvin configuration unset # Unset configuration
info - System Information
kelvin info # Show system and platform info
reset - Factory Reset
kelvin reset # Reset all CLI state
Configuration
Configuration is stored in ~/.config/kelvin/ (Linux/macOS) or %APPDATA%\kelvin\ (Windows).
Set persistent defaults:
kelvin configuration set json_output true # Always output JSON
kelvin configuration set no_prompt true # Never prompt for confirmation
kelvin configuration set verbose true # Always verbose output
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Invalid usage / bad arguments |
| 130 | Interrupted (Ctrl+C) |
Output Conventions
- stdout: Command results (data for piping/scripting)
- stderr: Progress, status, warnings, errors, debug logs
This ensures CLI output can be safely piped:
kelvin apps list --json | jq -r '.apps[0].name' | xargs kelvin apps show
Requirements
- Python 3.9 - 3.13
- Docker (for
app buildcommands)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kelvin_sdk-9.7.4b1-py3-none-any.whl.
File metadata
- Download URL: kelvin_sdk-9.7.4b1-py3-none-any.whl
- Upload date:
- Size: 129.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
263887de1d3457be4556adb12cf7ae5c07ad62aacfbacb79ef986fabbcb29895
|
|
| MD5 |
4067c726e46236b3d168907674fcc629
|
|
| BLAKE2b-256 |
3ec498a55247e20a2a059e0f097f07452df8f46445d6204689811fb3805a1b9e
|