CLI Installation & Setup Quickstart
This quickstart guide walks developers and system administrators through installing the Niksphere CLI (nik) and authenticating with Niksphere Cloud.
Prerequisites
Before starting, ensure you have:
- A working terminal environment (PowerShell on Windows, or Bash/Zsh on Linux/macOS).
- Network access to
https://install.niksphere.de(for script installation) andhttps://my.niksphere.de(for Cloud authentication).
Step 1: Install Niksphere CLI
The Niksphere CLI (nik) can be installed using automated platform installation scripts.
For this quickstart, run the installation command for your operating system:
powershell
irm https://install.niksphere.de/install.ps1 | iexbash
curl -fsSL https://install.niksphere.de/install.sh | bashbash
curl -fsSL https://install.niksphere.de/install.sh | bashStep 2: Connect to Niksphere Cloud
The Niksphere CLI (nik) connects to Niksphere Cloud to manage cloud tenants, regions, and remote engine environments.
For this quickstart, log in to your Cloud account:
bash
nik cloud auth loginVerification
Verify that your Niksphere CLI installation and Cloud authentication are configured cleanly:
Verify CLI Version & System Info:
bashnik aboutVerify Active Cloud Auth Status:
bashnik cloud auth status
Expected Response:
text
Cloud Context: https://my.niksphere.de
Status: Authenticated
User: user@company.internal
Active Tenant: my-company-tenantNext Steps
- Engine Setup: Learn how to install and run a local Niksphere Engine in the Engine Installation & Setup Guide.
- CLI Reference: Explore the complete list of commands in the CLI Reference.