EPOS Open Source CLI
The EPOS Open-Source CLI (epos-opensource
) is a command-line tool that simplifies the process of deploying, populating, and managing your platform, whether you're running a small local instance or a large-scale production deployment.
Why a CLI?
The epos-opensource
CLI is designed to be the primary way to interact with your EPOS Platform instances. It provides a simple and consistent interface for managing the entire lifecycle of your deployments, from initial setup to ongoing maintenance.
Here are some of the benefits of using the CLI:
- Simplicity: A single command can deploy the entire platform, including all its microservices and dependencies.
- Consistency: The same commands are used to manage both Docker and Kubernetes deployments, making it easy to switch between them.
- Automation: The CLI can be easily integrated into scripts and automated workflows.
- Reproducibility: The CLI ensures that your deployments are reproducible and consistent across different environments.
Core Concepts
Environments
An "environment" is a named, isolated instance of the EPOS Platform, with its own configuration and data. You can have multiple environments for testing, development, or different production use cases. The CLI manages these environments for you, keeping track of their configuration and status.
Getting Help
The CLI has a built-in help system that provides detailed information about each command and its options. To get help, you can use the --help
flag.
epos-opensource --help
epos-opensource docker --help
epos-opensource kubernetes deploy --help
Installation
Using the Installation Script (Linux/macOS)
The easiest way to install or update the CLI on Linux, macOS, or Windows Subsystem for Linux (WSL) is with the following script. This script should be used for both the initial installation and for updating an existing version to the latest one.
curl -fsSL https://raw.githubusercontent.com/EPOS-ERIC/epos-opensource/main/install.sh | bash
For security, we recommend you inspect the installation script before running it. You can view the script's source code here.
Pre-built Binaries (Windows, Linux, macOS)
You can also install the CLI by downloading a pre-built binary for your operating system.
-
Download the appropriate archive from the releases page.
-
Make the binary executable and move it to a directory in your system's
$PATH
.# For Linux/macOS
chmod +x epos-opensource-{your-version}
mv epos-opensource-{your-version} /usr/local/bin/epos-opensourceFor Windows, you can place the
.exe
file in a folder and add that folder to thePath
environment variable.
Build from Source
If you have Go installed (version 1.24.4 or later), you can build the CLI from source.
go install github.com/epos-eu/epos-opensource@latest
Make sure $GOPATH/bin
or $HOME/go/bin
is in your system's $PATH
.
Verify Installation
To make sure the CLI is installed correctly, run:
epos-opensource --version
Getting Help & Reporting Issues
If you encounter any issues while using the epos-opensource
CLI, or if you have any suggestions for improvement, we encourage you to open an issue on our GitHub repository.
Troubleshooting
For solutions to common issues, please refer to the Troubleshooting page.