Quickstart: CLI
Time to first result: about 10 minutes to a signed-in CLI with a device online, then 15 minutes for the run. Get started with the CLI explains the install and the login; this page is the short form of the whole loop.
- Install. In the web application, Settings, then Developer access, prints the install one-liner (its download token lasts 15 minutes). The binary is
clika-cli, installed to~/.local/binwithoutsudo; put that directory on yourPATH. - Sign in with an API key. On the same page, Create key (the worker template is enough), copy it once, then save it to a profile:
clika-cli --base-url https://<platform> login --api-key
Email and password sign-in is browser-only. The key acts in the project that was open in the browser when you created it.
- Register a device. Mint a token (the body needs a
name), then run the install script for the device's operating system on the device.install list --rawprints the whole script, so on the device itself pipe it tosh:
clika-cli enrollment-tokens create --body '{"name":"my-laptop","max_uses":1}'
clika-cli install list --os linux --token <token> --raw | sh
clika-cli devices list
- Register a model and run the quick benchmark.
benchmark_typeis required for an LLM; the speed test isllm_performance, andbenchmark-types listprints the others:
clika-cli models create --body '{"huggingface_url":"HuggingFaceTB/SmolLM2-135M-Instruct"}'
clika-cli benchmark-groups create --body '{"name":"first-run","model_ids":["<model>"],"device_ids":["<device>"],"benchmark_type":"llm_performance","dataset_mode":"quick"}'
clika-cli benchmarks watch first-run
watch prints one line per state change: about five minutes in pushing_artifacts, then running, then completed. jobs execution-log <job> shows the device's progress in between.
- Read it.
clika-cli benchmarks results first-run
clika-cli jobs benchmark-results-summary <job> -o yaml
- Deploy. Create (the body needs a
name), then start; create alone leaves the servingpending:
clika-cli servings create --body '{"name":"first-deployment","model_id":"<model>","device_ids":["<device>"]}'
clika-cli servings start <id>
clika-cli servings key <id>
running takes about two to three minutes here, because the benchmark already put the engine on the device; on a device that has never run the engine it takes five to nine minutes. Call the proxy address from servings get with curl and the key, as in the web quickstart; the CLI's proxy command sends no body.
- Licenses are read-only from the CLI (
projects licenses <project>); issue, rotate and revoke in the web application.