Blogs Infinispan Native CLI

Infinispan Native CLI

Native CLI Image

Starting with Infinispan 12, we provide a natively compiled version of the Infinispan CLI.

This can be consumed as a native binary or via a container image.

Usage

  1. Start a Infinispan server instance so that the CLI has an endpoint to connect to:

docker run -it -p 11222:11222 -e USER="user" -e PASS="pass" quay.io/infinispan/server:12.1

Container

  1. Launch the CLI image and connect to the server image:

docker run --net=host -it --rm quay.io/infinispan/cli:12.1 -c http://127.0.0.1:11222
  1. Enter the "user" and "pass" credentials, for the username and password respectively.

Tip
The container’s endpoint is the CLI binary, which lets you pass CLI arguments straight to the image, e.g. quay.io/infinispan/cli:12.1 --version

Binary

Native CLI binaries for Linux, Mac and Windows can be downloaded here.

  1. Download and extract the .zip for your desired platform:

  2. Start the CLI and connect to the server container:

    1. Linux & Mac: ./ispn-cli -c http://127.0.0.1:11222

    2. Windows (Powershell): & ".\ispn-cli.exe" -c http://127.0.0.1:11222

Get it, Use it, Ask us!

We’re hard at work on new features, improvements and fixes, so watch this space for more announcements!

Please, download and test the latest release.

The source code is hosted on GitHub. If you need to report a bug or request a new feature, look for a similar one on our GitHub issues tracker. If you don’t find any, create a new issue.

If you have questions, are experiencing a bug or want advice on using Infinispan, you can use GitHub discussions. We will do our best to answer you as soon as we can.

The Infinispan community uses Zulip for real-time communications. Join us using either a web-browser or a dedicated application on the Infinispan chat.