Using the CLIs#
EDA exposes two north-bound APIs to its users: Kubernetes API and EDA API. You used the Kubernetes API when you managed EDA resources using the kubectl
CLI in the Getting Started guide.
To interact with EDA API from the command line we provide you with 2 CLI tools: edactl
and e9s
. Both are essential to the management of EDA, but they differ significantly in their approach and user experience.
edactl
provides a comprehensive suite of commands that allow users to create, query, update and delete resources within an EDA cluster, making it ideal for scripting and automation.
On the other hand, e9s
offers a dynamic, real-time terminal-based UI that simplifies the interaction with clusters by providing a high-level overview and quick navigation options for common tasks.
While edactl
demands precise command inputs, e9s
excels in offering visual feedback and streamlined workflows, significantly reducing the complexity and time needed for cluster management tasks.
Accessing the CLIs#
Both edactl
and e9s
are made available as part of the eda-toolbox
pod. You can either connect to the toolbox pod and execute the utilities directly from there, or you can setup handy aliases to make them more accessible.
You can log in to the eda-toolbox
pod using the following command executed from the playground repository:
edactl#
edactl
is your go-to tool for scripting and automating pipelines with EDA. It offers a comprehensive suite of commands that enable users to interact seamlessly with an EDA cluster.
Available Commands:
cluster Show the cluster status
completion Generate the autocompletion script for the specified shell
config Interactions with EDACONFIG
edge-if-ping Ping from an edge interface
get Displays one or many resources
git Git related commands
help Help about any command
intent Show the CR children, parents, dependencies or deviations for a resource
labels Display the label key/values in use
namespace Display active namespaces
node Node related commands
platform Platform related commands
query Run an EQL query
sub Subscribe to state updates
testman testman related commands
transaction List transaction results
workflow Workflow related commands
For example, to query all interfaces with operational state up
execute the following command while in the eda-toolbox
pod:
e9s#
e9s
is the Terminal UI (TUI) for EDA and can help you interact with the platform similar to how you'd use the famous k9s
for Kubernetes.
To launch e9s
app use the alias we set up earlier or, if you're in the playground repo, simply run:
And behold the power of e9s
!
Here is a quick demonstration on how to use the powerful EDA Query Language (EQL) to run queries in e9s
: