2024-12-11 12:56:18 +00:00
2024-12-11 12:56:18 +00:00
2024-12-09 01:04:58 +00:00
2024-12-09 01:04:58 +00:00
2024-12-11 12:56:18 +00:00
2024-12-11 12:14:25 +00:00

MetalCheck CLI

MetalCheck CLI is a command-line tool for managing and visualizing Metal Check data, including physical nodes, virtual machines, and Kubernetes clusters.

Installation

Install the tool locally using pip:

pip install -e .

Uninstallation

To remove the tool:

pip uninstall metalcheck-cli

Configuration

You can configure the base URL for the Metal Check API by creating a configuration file at ~/.config/metalcheck.conf:

```plaintext
[DEFAULT]
base_url = http://localhost:8000
```

If no configuration is provided, the CLI defaults to http://localhost:8000.

Usage

General Command Structure

```plaintext
Usage: metalcheck [OPTIONS] COMMAND [ARGS]...

Options:
--base-url TEXT  Set the base URL for the Metal Check API (default: http://localhost:8000)
--help           Show this message and exit.

Commands:
export  Export Metal Check data in the specified format (yaml or json)
k8s     Commands for managing Kubernetes Nodes
metal   Commands for managing Metal Nodes
visual  Displays the visual dashboard with Metal Nodes, Virtual Machines, and Kubernetes Nodes
vm      Commands for managing Virtual Machines
```

Examples

  1. List Metal Nodes

    metalcheck metal list
    
  2. Add a new Metal Node

    metalcheck metal add
    
  3. Delete a Metal Node

    metalcheck metal delete
    
  4. List Kubernetes Nodes

    metalcheck k8s list
    
  5. Analyze Kubernetes Cluster

    metalcheck k8s think
    
  6. Export Data

    metalcheck export --format yaml exported-data.yaml
    
  7. Visual Dashboard

Run the interactive dashboard to visualize Metal Nodes, Virtual Machines, and Kubernetes Nodes:

```shell
metalcheck visual
```

Run visual with the AI summary for Kubernetes cluster:

```shell
metalcheck visual --summary
```
Description
Command-line interface for Metal Check
Readme AGPL-3.0 52 KiB
Languages
Python 100%