Installation

Set up the CLI

πŸ“˜

Download the latest version here.

What you will get is a zip folder, containing the files you need to get started with Mac OS, Windows, and Linux.
After unzipping the file you see the different implementations of the CLI.

What's in the download

Choose the one suitable for your operating system.

  • cio-windows-amd64.exe for 64-bit Windows
  • cio-macOS-amd64 for 64-bit Mac OS
  • cio-macOS-arm64 for 64-bit Mac OS with M-Chips
  • cio-linux-amd64 for 64-bit Linux
  • cio-linux-arm7 for ARM 7 (e.g. raspberry pi)

There are two main ways to use the tool:

  • placing the file where it is used or calling it via its path, for example: ./cio-windows-amd
  • adding the tool to your $PATH variable to make it available across your system

No matter which way you choose, you have to execute the suitable file (Windows/Mac/Linux) first.

🚧

"This software comes from a non-verified source"

Click to expand

If you encounter that error message while trying to install a program on your macOS, don't worry; you can still proceed with the installation by following these steps:

  • Control-Click (or Right-Click): Start by control-clicking (or right-clicking) on the file. This action will open a contextual menu.
  • Open: In the contextual menu, look for and select the "Open" option. This choice will override the default security settings temporarily.
  • Confirmation Dialog: A confirmation dialog will appear. Click "Open" to confirm that you want to proceed with the installation despite the non-verified source warning.
  • Installation: The program or installer will now begin the installation process without further security warnings.

Option 1: Call cio directly

After running the file for the first time, you are ready to use it by calling it with the path and the command. If you are in the same folder you can try ./cio-macOS-arm64 --version. This command should return the version that is running, for example: cio version 0.38.0

πŸ“˜

Optional

If you opt for the first method; create a working folder; put the file inside and rename the the executable to cio for ease of use.

Option 2: Add cio to your Path Variable

If you would like to add the program to your path variable, here is some info on how to work with the $PATH variable on Windows, Mac and Linux.

To verify your installation open a terminal and enter cio --version to check your current version of cio. If everything works fine, cio responds with its version number, for example: cio version 0.38.0

Connect cio to the API of an Operations1 instance

To work with the CLI tool on data you need to connect cio to the API of an operations1 instance. This is done with an access token. This token is attached to a special user that needs to be set up first.

Create a technical API User

Follow these steps to create a technical user:

πŸ“˜

Your own account needs the permission to create new users.

Make sure that you either have that permission or ask a suitable user to execute the following steps for you.

  1. Log in to your Operations1 instance.
  2. Navigate to the System Settings and open the Users Menu.
  3. Click "New API user account" in the menu on top.
  4. Name the "user" and configure it.
  5. Click "Save".
  6. This is now your technical user account. In the user list, it is shown with this key icon.
key icon

Create the access token

  1. Find your API User and click the key icon to access the dialogue to create an access token.
  2. Choose an expiry date for the token.
  3. Click the reload icon to generate the token.

🚧

The token will be only displayed once when it is created!

Make sure to handle it accordingly.

Having created a valid access token, you can now proceed to log in with cio.

Login with your Access Token

  • Use cio login to log in to the server. You will be asked for the server URL and the access token.
  • Check with cio ping whether you are connected to the server. The expected response looks something like this:
{
  "server": "https://yourcompany.ops1.app",
  "version": "8.75.1-rc.1"
} 

πŸ‘

Congrats!

If you have made it this far you have sucessfully installed cio and logged in to your instance.


What’s Next

Try out the CLI tool with an example use-case