2 Replies Latest reply on Mar 24, 2019 9:47 PM by gonomujasic

    Is there new way to use CLI command?

    gonomujasic

      Hi.
      I'm using infinispan well in Spring framework environment.
      I need to see the data in infinispan node in CLI environment.
      So I followed the guide(Infinispan 9.4 User Guide ), but infinispan-cli-server-$VERSION.jar  is no more offered since 2014.

      And I can't import CLInterfaceLoaderConfigurationBuilder.class below.

      ConfigurationBuilder b = new ConfigurationBuilder();
      b.persistence()
        .addStore(CLInterfaceLoaderConfigurationBuilder.class)
        .connectionString("jmx://1.2.3.4:4444/MyCacheManager/myCache");

       

      I'm using gradle and the depenencies config is followed like below.
      compile group: 'org.infinispan', name: 'infinispan-core', version: '9.4.0.Final' // Apache 2.0
      compile group: 'org.infinispan', name: 'infinispan-commons', version: '9.4.0.Final' // Apache 2.0

       

      Is there any new way to use CLI command to see data?

       

      thanks to read this.

        • 1. Re: Is there new way to use CLI command?
          nadirx

          Hi Mingyue,

           

          the infinispan-cli-server artifact was renamed to infinispan-cli-interpreter (because we did not want to confuse it with the server-mode CLI). I'll amend the docs.

           

          As for the CLI loader, you need to add a dependency to org.infinispan:infinispan-persistence-cli. Be warned however: that component has been removed in master (which will eventually become 10), so I'd avoid using it.

          • 2. Re: Is there new way to use CLI command?
            gonomujasic

            Thanks for your help, Tristan.

             

            I have subsequent questions about CLI loader. I understood that org.infinispan:infinispan-persistence-cli library will be deprecated after version 10.

            So then, what is the substitute library dependency? Or whole thing will be changed about cli after 10?

             

            Thanks again for reading this.