No project description provided
Project description
OKS-CLI
๐ Links
- ๐ OKS-CLI Documentation
- ๐ OKS API Reference
- ๐ GitHub Issues
๐ Table of Contents
๐งญ Overview
OKS-CLI is a command-line interface that allows you to deploy and manage Kubernetes clusters on top of OUTSCALE infrastructure.
โ Requirements
- Python 3.11 or later
pip(Python package manager)kubectl(required for commands that interact with the Kubernetes API)
๐ฆ Installation
Standard Installation
# Create and activate a virtual environment
python -m venv venv
source venv/bin/activate
# Install the CLI
pip install oks-cli
# Check version of oks-cli
oks-cli version
๐ Usage
Display all available commands:
oks-cli fullhelp
Commands
| Command | Description |
|---|---|
| profile list | List existing profiles |
| profile add | Add AK/SK or username/password new profile |
| profile delete | Delete a profile by name |
| profile update | Update an existing profile |
| project list | List all projects |
| project create | Create a new project |
| project get | Get default project or the project by name |
| project update | Update a project by name |
| project delete | Delete a project by name |
| project login | Set a default project by name |
| project logout | Unset default project |
| project quotas | Get project quotas |
| project snapshots | Get project snapshots |
| project publicips | Get project public ips |
| cluster list | List all clusters |
| cluster create | Create a new cluster |
| cluster get | Get a cluster by name |
| cluster update | Update a cluster by name |
| cluster upgrade | Upgrade a cluster by name |
| cluster delete | Delete a cluster by name |
| cluster login | Set a default cluster |
| cluster logout | Unset default cluster |
| cluster kubeconfig | Fetch the kubeconfig for a cluster |
| cluster kubectl | Fetch kubeconfig and run kubectl against it |
| cluster nodepool list | List nodepools in the specified cluster |
| cluster nodepool create | Create a new nodepool in the cluster |
| cluster nodepool delete | Delete a nodepool by name from the cluster |
| cache clear | Clear cache |
| cache kubeconfigs | List cached kubeconfigs |
| quotas | Get quotas |
| fullhelp | Display detailed help information for all commands |
| version | Show the current CLI version |
| install-completion | Install shell completion scripts |
Examples
# List all projects
oks-cli project list
# Dry run project creation
oks-cli project create --project-name my-project --description "Test project" --dry-run
# Dry run cluster creation
oks-cli cluster create \
--cluster-name my-cluster \
--project-name my-project \
--description "My test cluster" \
--version "1.32" \
--dry-run
# Set a default project profile
oks-cli project login --project-name my-project
๐ Development
Editable Mode
Install the CLI in editable mode with development dependencies
# Clone the repository
git clone https://github.com/outscale/oks-cli.git
cd oks-cli
# Create and activate a virtual environment
python -m venv venv
source venv/bin/activate
# CLI in editable mode
pip install -e ".[dev]"
Changes in the oks_cli/ directory will be immediately reflected without reinstalling.
Tests
Run the test suite using pytest to ensure code correctness and stability:
pytest
Project Structure
oks-cli/
โโโ oks_cli/ # Source code
โ โโโ cache.py
โ โโโ cluster.py
โ โโโ main.py
โ โโโ profile.py
โ โโโ project.py
โ โโโ quotas.py
โ โโโ utils.py
โโโ setup.py # Packaging configuration
โโโ requirements.txt # Dependencies
โโโ README.md # Project documentation
Dependencies
Dependencies are managed via setup.py and requirements.txt.
To reinstall or update:
pip install -e .
๐ค Contributing
OKS-CLI is open source software licensed under BSD-3-Clause.
We welcome contributions! Please see CONTRIBUTING.md for guidelines and instructions.
๐ License
BSD-3-Clause ยฉ Outscale SAS
๐ Support
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oks_cli-1.16.tar.gz.
File metadata
- Download URL: oks_cli-1.16.tar.gz
- Upload date:
- Size: 33.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb6b229f6ecb93dd4803801f0899585c99d597bcd7174a786d3bfe49c3484835
|
|
| MD5 |
b013566759d31215b2757b8d5b723560
|
|
| BLAKE2b-256 |
89d1baa91f07a874fb91c8b365adb78938aec228751a71f23dc89fdee846094b
|
File details
Details for the file oks_cli-1.16-py3-none-any.whl.
File metadata
- Download URL: oks_cli-1.16-py3-none-any.whl
- Upload date:
- Size: 29.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da184562982154872f1f743df566bde365511cb1cd69f535793ead50f9adac40
|
|
| MD5 |
b8e172faf5e2fa3fce5671d1ee758a20
|
|
| BLAKE2b-256 |
1544fad099d92882d69d9e8d3c0c831761f2de5e121ffb6d8a9b73321a0b56f3
|