Modzy Core CLI

The CLI for interacting with Modzy Edge on an edge device

Modzy Core is a limited implementation of a subset of Modzy API endpoints that are meant to interact with a single model container. Written in Go and distributed as a single binary, it is meant to be run on smaller devices, such as laptops or other edge devices.

Installation

Modzy Core is installed as part of a Modzy Edge deployment. Full installation instructions for installing Modzy Core, which includes the Modzy Core CLI, can be found in the guide How to Deploy a Model to the Edge

Available Commands

CommandDescription
$ ./modzy-core completionGenerate the autocompletion script for the specified shell
$ ./modzy-core directStarts a HTTP and gRPC server that implements Modzy's inference API.
$ ./modzy-core helpHelp about any command
$ ./modzy-core serverStarts a HTTP and gRPC server that implements Modzy's inference API.

Global Flags

These flags can be used with most modzy cli commands for things like in-line authentication, access to command-specific manuals, etc.

FlagTypeDescription
-h, --helphelp for modzy-core
--log.formatstringLog format. Valid values are 'console' and 'json'. Default = 'console' (default "console")
--model.runtimestringthe model container runtime (ex: nvidia)
--model.timeoutfloatlength of time (in SECONDS) to wait while attempting to connect to model container. defaults to 10 (default 10)
--model.memoryintmodel container Memory usage limit (in MB). Applies to all models running on Core
--modzy.tokenstringregistration token
--modzy.urlstringurl of Modzy Platform
--resumeresume running after registering
--runtimestringcontainer runtime to use. valid choices are.... (default "docker")
--storage.filesystem.pathstringdirectory to store data in. default = ~/.modzy/core/data or /opt/modzy/core/data
--testmodetest mode
--tracing.endpointstringJaeger endpoint to enable tracing