Installation¶
Requirements¶
- Python 3.10 or higher
- pip (Python package installer)
Installation Methods¶
Via pip (Recommended)¶
The easiest way to install hier-config-cli is using pip:
Via Poetry¶
If you're using Poetry for dependency management:
From Source¶
For development or to get the latest unreleased features:
# Clone the repository
git clone https://github.com/netdevops/hier-config-cli.git
cd hier-config-cli
# Install with Poetry
poetry install
# Activate the virtual environment
poetry shell
Verify Installation¶
After installation, verify that hier-config-cli is installed correctly:
You should see output similar to:
Updating¶
With pip¶
With Poetry¶
Uninstalling¶
With pip¶
With Poetry¶
Troubleshooting¶
Command Not Found¶
If you get a "command not found" error after installation:
-
Check if the package is installed:
-
Ensure pip's bin directory is in your PATH:
-
Try running with python -m:
Permission Errors¶
If you encounter permission errors during installation:
Virtual Environments¶
It's recommended to use virtual environments to avoid conflicts:
# Create virtual environment
python -m venv venv
# Activate it
# On Linux/macOS:
source venv/bin/activate
# On Windows:
venv\Scripts\activate
# Install hier-config-cli
pip install hier-config-cli
Next Steps¶
Now that you have hier-config-cli installed, check out the Quick Start guide to learn how to use it.