CLI persistent configuration
----------------------------
Key: ISPN-12232
URL:
https://issues.redhat.com/browse/ISPN-12232
Project: Infinispan
Issue Type: Enhancement
Components: CLI
Affects Versions: 12.0.0.Dev02
Reporter: Tristan Tarrant
Assignee: Tristan Tarrant
Priority: Major
Fix For: 12.0.0.Dev03
The CLI should store persistent configuration in an OS-specific location:
Linux/Unix:
{noformat}
~/.config/infinispan
{noformat}
OS X:
{noformat}
~/Library/Java/infinispan
{noformat}
Windows:
{noformat}
$APPDATA/Sun/Java/infinispan
{noformat}
This location should contain:
{noformat}
cli.properties
aliases
history
{noformat}
The configuration properties should be exposed through a {{config}} command.
Supported properties:
*autoconnect-url*::
Specifies the URL to which the CLI will automatically connect to on startup. Example:
*config set autoconnect-url
http://user:password:11222*
*autoexec*::
Specifies the path of a CLI batch file to execute on startup. Example:
*config set autoexec /home/user/my-cli-batch-file*
*trustall*::
Specifies whether to trust all server certificates without supplying a trust store.
Example:
*config set trustall true*
*truststore*::
Specifies the path of a truststore to use to validate server certificates. Example:
*config set truststore /home/user/my-trust-store.jks*
*truststore-password*::
Specifies the password of the truststore to use to validate server certificates.
Example:
*config set truststore secret*