Skip to content

neterialio/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Neterial CLI

Command-line interface for Neterial services.

Installation

Linux, macOS(brew), and Windows WSL:

curl -sSL https://get.neterial.io/cli.sh | bash

Read INSTALL.md for details and alternative ways to install.

Quick start

Run for login/signup and discover clouds:

neterial init

Connect your cloud account

Check your connected clouds:

neterial provider list

Connect Hetzner Cloud

You need to have a Hetzner Cloud account. If you don't have one yet, you can register with our referral link and receive €20 in Hetzner Cloud credits.

Read how to create API token in Hetzner Cloud

Connect your cloud by adding a Hetzner Cloud API token:

neterial provider init hcloud

Connect AWS

Read how to add AWS credentials

Connect your cloud by adding AWS credentials:

neterial provider init aws

Creating Kubernetes cluster

Creating with the name default in hcloud cloud:

neterial kube create cluster

Get access to the cluster:

kubectl config use-context default-neterial-admin@default-neterial
kubectl get nodes

If you see the nodes, your cluster is ready for work.

Explicit set name and cloud provider

The --cloud parameter accepts either hcloud or aws.

neterial kube create cluster --name [CLUSTER_NAME] --cloud [CLOUD]

Explicit set worker VM type and number of workers

neterial kube create cluster --worker-vm-type [VM_TYPE] --worker-count [COUNT]

Explicit set location

neterial kube create cluster --cloud [CLOUD] --location [LOCATION]

AWS:

neterial kube create cluster --cloud aws --location us-east-1

Hetzner cloud:

neterial kube create cluster --cloud hcloud --location ash

Resources configuration (VM, CPU, RAM, DISK)

You can choose the VM used for the worker. This is how you can control the compute capacity of your cluster.

Adding a worker node with a specific configuration

neterial kube create node --cluster [CLUSTER_NAME] --vm-type [VM_TYPE]

Creating a cluster with specific worker nodes

neterial kube create cluster --name thename --worker-vm-type [VM_TYPE]

Adding nodes to the existing cluster

neterial kube create node --cluster [CLUSTER_NAME]

Removing nodes from the existing cluster

List all nodes:

neterial kube get nodes --cluster [CLUSTER_NAME]

Remove a specific node:

neterial kube delete node --cluster [CLUSTER_NAME] --node [NODE_NAME]

Removing your account

⚠️ Warning: This operation will permanently remove your Neterial account. You will still have access to your clusters, but you will no longer be able to manage them using the Neterial platform.

neterial account delete