Keel CLI
中文
TKeel CLI is your main tool for various tasks related to TKeel.
You can use it to install the TKeel platform, manage plugins and users.
TKeel CLI temporarily works in Kubernetes mode.
Prerequisites
TKeel CLI can help you install the tKeel platform and help you manage the platform.
TKeel currently relies on Dapr (Kubernetes mode).
Install TKeel CLI
Using script to install the latest release
Linux
Install the latest linux TKeel CLI to /usr/local/bin
wget -q https://raw.githubusercontent.com/tkeel-io/cli/master/install/install.sh -O - | /bin/bash
MacOS
Install the latest darwin TKeel CLI to /usr/local/bin
curl -fsSL https://raw.githubusercontent.com/tkeel-io/cli/master/install/install.sh | /bin/bash
From the Binary Releases
Each release of TKeel CLI includes various OSes and architectures. These binary versions can be manually downloaded and installed.
- Download the TKeel CLI
- Unpack it (e.g. dapr_linux_amd64.tar.gz, dapr_windows_amd64.zip)
- Move it to your desired location.
- For Linux/MacOS -
/usr/local/bin
- For Windows, create a directory and add this to your System PATH. For example create a directory called
c:\dapr and add this directory to your path, by editing your system environment variable.
(Prerequisite: Dapr and Kubectl is available in the environment)
Use the init command to initialize TKeel.
tkeel init
For Linux users, if you run your docker cmds with sudo, you need to use "sudo dapr init"
Output should look like so:
⌛ Making the jump to hyperspace...
ℹ️ Checking the Dapr runtime status...
↑ Deploying the tKeel Platform to your cluster...
ℹ️ install plugins...
ℹ️ install plugins done.
✅ Deploying the tKeel Platform to your cluster...
↖ Registry the plugins ...
ℹ️ Plugin<plugins> is registered.
ℹ️ Plugin<keel> is registered.
ℹ️ Plugin<auth> is registered.
✅ Success! TKeel Platform has been installed to namespace keel-system. To verify, run `tkeel status -k' in your terminal. To get started, go here: https://tkeel.io/keel-getting-started
Exiting.
Uninstall TKeel on Kubernetes
To remove TKeel from your Kubernetes cluster, use the uninstall command.
$ dapr uninstall
Deploy plugin
(Prerequisite: Dapr and Kubectl is available in the environment)
You can deploy the plugin app with the Dapr sidecar
deploy-the-plugin-app
Manage plugins
Use the plugin command to manage plugins.
- List plugin
tkeel plugin list
Output should look like so:
plugin list
NAME NAMESPACE HEALTHY STATUS PLUGINSTATUS REPLICAS VERSION AGE CREATED
auth keel-system True Running ACTIVE 1 0.0.1 37m 2021-10-07 16:07.00
plugins keel-system True Running ACTIVE 1 0.0.1 37m 2021-10-07 16:07.00
keel keel-system True Running ACTIVE 1 0.0.1 37m 2021-10-07 16:07.00
echo-demo keel-system False Running UNKNOWN 1 0.0.1 1m 2021-10-05 11:25.19
- Registry plugin
tkeel plugin registry echo-demo
Check the status
tkeel plugin list
Output should look like so:
plugin list
NAME NAMESPACE HEALTHY STATUS PLUGINSTATUS REPLICAS VERSION AGE CREATED
auth keel-system True Running ACTIVE 1 0.0.1 37m 2021-10-07 16:07.00
plugins keel-system True Running ACTIVE 1 0.0.1 37m 2021-10-07 16:07.00
keel keel-system True Running ACTIVE 1 0.0.1 37m 2021-10-07 16:07.00
echo-demo keel-system False Running ACTIVE 1 0.0.1 2m 2021-10-05 11:25.19
- Delete plugin
tkeel plugin delete echo-demo
Output should look like so:
✅ Success! Plugin<echo-demo> has been deleted from TKeel Platform . To verify, run `tkeel plugin list -k' in your terminal.