Skip to content

VitexSoftware/multiflexi-cli

Repository files navigation

MultiFlexi CLI

CodeRabbit Pull Request Reviews

MultiFlexi CLI (multiflexi-cli) is a command-line tool for managing MultiFlexi applications, jobs, users, companies, and more. It is designed to provide flexible automation and integration for MultiFlexi server environments.

Features

  • List, create, get, and delete entities such as applications, jobs, users, companies, and credentials.
  • Query application and job status.
  • Manage templates, tokens, and queues.
  • JSON Import/Export: Import applications and credential types from JSON files, export configurations to JSON.
  • Encryption management: Check status and initialize encryption keys for secure credential storage.
  • Prune obsolete data.
  • Internationalization support (i18n).
  • Flexible output formats: Human-readable text output by default, with optional JSON output for integration (--format json).

Usage

multiflexi-cli <command> [options]

Common Commands

  • list: List entities (apps, jobs, users, etc.)
  • get: Get details of a specific entity
  • create: Create a new entity
  • delete: Delete an entity
  • describe: Show available commands and features
  • status: Show MultiFlexi status (includes encryption, Zabbix, OpenTelemetry)
  • application import-json: Import application from JSON file
  • credtype import-json: Import credential type from JSON file
  • telemetry:test: Test OpenTelemetry metrics export
  • encryption: Manage encryption keys (status, init)
  • prune: Remove obsolete data
  • queue: Manage job queue
  • token: Manage authentication tokens

Output Formats

By default, all commands output human-readable text format suitable for terminal viewing. For programmatic integration or automation, you can request JSON format using the --format json option.

Options

  • --format json: Output results in JSON format (default is human-readable text)
  • --help: Show help for a command

Examples

multiflexi-cli list apps --format json
multiflexi-cli get job 123
multiflexi-cli create user --login "jsmith" --email "john@example.com"
multiflexi-cli delete app 456
multiflexi-cli describe

# JSON Import/Export
multiflexi-cli application import-json --file app-definition.json
multiflexi-cli credtype import-json --file credential-type.json
multiflexi-cli credtype validate-json --file credential-type.json

# System status (includes encryption, Zabbix, OpenTelemetry)
multiflexi-cli status
multiflexi-cli status --format json

# Credential type management
multiflexi-cli credtype list
multiflexi-cli credtype get --uuid "d3d3ae58-d64a-4ab4-afb5-ba439ffc8587"

# Encryption management
multiflexi-cli encryption status

# OpenTelemetry testing
multiflexi-cli telemetry:test
EASE_LOGGER=console multiflexi-cli remove app 15
02/20/2024 23:48:51 🌼 ❲MultiFlexi cli⦒(15)AbraFlexi send@MultiFlexi\Application❳ Unassigned from 3 companys
02/20/2024 23:48:53 🌼 ❲MultiFlexi cli⦒(15)AbraFlexi send@MultiFlexi\Application❳ 2 RunTemplate removal
02/20/2024 23:48:56 🌼 ❲MultiFlexi cli⦒(15)AbraFlexi send@MultiFlexi\Application❳ 2 Config fields removed
02/20/2024 23:48:57 🌼 ❲MultiFlexi cli⦒(15)AbraFlexi send@MultiFlexi\Application❳ 881 Jobs removed
Done.

Documentation

For detailed documentation, see doc/multiflexi-cli.rst and the man page multiflexi-cli.1.

MultiFlexi

MultiFlexi CLI is part of a MultiFlexi suite.

MultiFlexi Logo

License

MultiFlexi CLI is licensed under the MIT License.

About

Commandline interface for MultiFlexi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •