Skip to content

Guide to mvaictl (Command Line Interface)

GPU Cluster Manager offers and supports a command line interface package as part of it's product offering. This guide provides information on how to install, use, and troubleshoot the mvaictl command and it's subcommands. It also provides information on each subcommand, it's use, and related subcommands.

Installing mvaictl

To install mvai, download the package using:

wget https://github.com/MemVerge/mvai-public/releases/download/v0.4.0/mvai_0.4.0_linux_amd64.tar.gz

Extract the mvaictl binary from the tar file using:

tar -xzvf mvai_0.4.0_linux_amd64.tar.gz mvaictl

(Optional) Place the binary in a known location, such as /usr/local/bin:

sudo cp mvaictl /usr/local/bin

Using mvaictl

To use mvaictl, from the directory where the binary exists, run ./mvaictl to list the options of the command:

 ./mvaictl 
MemVerge.ai CLI, managing Kubernetes clusters with GPUs and AI workloads.

 Find more information at: https://docs.memverge.com/AI

Usage:
  mvaictl [command]

Resource Management
  cluster     Operations on clusters
  department  Operations on departments
  node        Operations on nodes
  nodegroup   Operations on nodegroups
  project     Operations on projects

Workload Management
  compute     Operations on compute assets
  environment Operations on environment assets
  volume      Operations on volumes
  workload    Operations on workloads
  workspace   Operations on workspaces

Additional Commands:
  completion  Generate the autocompletion script for the specified shell
  context     Operations for context
  help        Help about any command
  kubectl     Run kubectl commands
  server      Operations for MemVerge.ai servers

Flags:
  -c, --config string   Path to mvaictl config directory (default "/home/ubuntu/.mvaictl")
  -h, --help            help for mvaictl
  -v, --version         version for mvaictl

Use "mvaictl [command] --help" for more information about a command.

Troubleshooting mvaictl

You may encounter the following when using mvaictl. The message is displayed because the cluster admin must first login to the cluster to perform actions. See mvaictl server login for details.

$ ./mvaictl cluster get
Error: Failed to get focused server config: no configuration found, run `login`