Skip to main content

CLI for automatic DevOps environment configuration

Project description

Leme DevOps CLI

PyPI version Python 3.8+ License: MIT

Automatic DevOps environment setup in 2 commands!

This CLI automatically installs and configures all necessary tools for DevOps development, including Docker, Git, Terraform, Azure CLI, AWS CLI, kubectl, Ansible and much more.

Quick Installation

# Install via pip
pip install leme

# Setup complete environment
leme setup

Done! All DevOps tools are configured and ready to use.

Supported Tools

Essential

  • Docker - Containerization platform
  • Git - Version control system

Cloud & DevOps (optional)

  • Terraform - Infrastructure as code
  • AWS CLI v2 - Amazon Web Services interface
  • Azure CLI - Microsoft Azure interface
  • kubectl - Kubernetes cluster management
  • Ansible - Configuration automation
  • watch - Command monitoring

Main Commands

Initial Setup

# Setup complete environment (interactive mode)
leme setup

# Install everything automatically without asking
leme setup --force

# View status of all tools
leme status

Individual Installation

# Install specific tools
leme install docker
leme install terraform
leme install azure
leme install aws

System Information

# View operating system information
leme info

# Check CLI version
leme --version

# Complete help
leme --help

Interactive Mode (Default)

By default, leme setup asks which optional tools you want to install:

$ leme setup

Leme DevOps CLI - DevOps Environment Setup

Checking current environment...
Found tools:
   Docker: Not installed
   Git: Installed (v2.39.0)
   Terraform: Not installed

Choose tools to install:

• Terraform (optional)
  Infrastructure as code tool
  Install Terraform? [y/N]: y

• Azure CLI (optional)
  Azure command line interface
  Install Azure CLI? [y/N]: n

...

Advanced Options

# Only check what's installed
leme setup --check-only

# Install only essential tools
leme setup --required-only

# Skip Docker installation
leme setup --skip-docker

# Install specific tools
leme setup --tools docker,terraform,azure

# Force reinstallation
leme setup --force

Supported Systems

Operating System Status Installation Methods
Ubuntu 20.04+ Fully Tested apt + official repositories
Debian 11+ Fully Tested apt + official repositories
macOS 12+ Functional Homebrew + official installers
WSL Ubuntu Tested apt + official repositories
CentOS/RHEL 8+ Functional yum/dnf + official repositories
Fedora 35+ Functional dnf + official repositories

Architectures: x86_64 (Intel/AMD) and ARM64 (Apple Silicon/ARM)

Usage Examples

For Students - Complete Setup

# Install the CLI
pip install leme

# Setup environment for DevOps course
leme setup

# Verify everything worked
leme status
docker run hello-world

For Developers - Selective Installation

# Install only Docker and Terraform
leme setup --tools docker,terraform

# Add AWS CLI later
leme install aws

# Check final configuration
leme status

For CI/CD - Automated Installation

# Install everything without interaction
leme setup --force

# Check installation in scripts
leme status --check-only

Troubleshooting

Docker doesn't work after installation (Linux)

# Add user to docker group
sudo usermod -aG docker $USER
newgrp docker

# Test
docker run hello-world

Python/pip not found

# Ubuntu/Debian
sudo apt update && sudo apt install python3 python3-pip

# macOS
brew install python3

# Windows - Download from python.org

Tools not detected

# Force complete verification
leme setup --force

# View debug information
leme info

Local Development

# Clone repository
git clone https://github.com/iesodias/projeto_cli.git
cd projeto_cli

# Install in development mode
pip install -e .

# Test command
leme --help

Documentation

Contributing

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/new-feature)
  3. Commit your changes (git commit -m 'Add new feature')
  4. Push to the branch (git push origin feature/new-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Quick Start Summary

# INSTALLATION AND USAGE
pip install leme                    # Install CLI
leme setup                         # Setup environment (interactive)
leme status                        # Check installation

# USEFUL COMMANDS
leme setup --force                 # Install everything automatically
leme install docker               # Install specific tool
leme info                         # System information
leme --help                       # Complete help

The CLI automatically detects your system and installs everything correctly!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leme-1.0.4.tar.gz (34.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

leme-1.0.4-py3-none-any.whl (43.7 kB view details)

Uploaded Python 3

File details

Details for the file leme-1.0.4.tar.gz.

File metadata

  • Download URL: leme-1.0.4.tar.gz
  • Upload date:
  • Size: 34.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for leme-1.0.4.tar.gz
Algorithm Hash digest
SHA256 0b012d75e30064932691cc654c57d254a513ebea0e75da955ebf8ede024e9cdf
MD5 94696bb4d19d0d1341f290ff5287711a
BLAKE2b-256 e02426942fdb9b55dccab3f09d1c691b38f016c66d27334b440b6e4ba1e0e60b

See more details on using hashes here.

File details

Details for the file leme-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: leme-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 43.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for leme-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b766dccb0cab07952a0c298713f5a413f58074c0ae47d63acc0111858f3afa37
MD5 4c73323cc8506b39fe9170295683c2ed
BLAKE2b-256 40ed9564b3f8377981ed6782a237f593bf9e1b110066f59c52464fd466043674

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page