[id='creating-caches-cli_{context}']
= Creating remote caches with the {brandname} CLI
Use the {brandname} Command Line Interface (CLI) to add remote caches on {brandname} Server.

.Prerequisites

* Create a {brandname} user with `admin` permissions.
* Start at least one {brandname} Server instance.
* Have a {brandname} cache configuration.

.Procedure

. Start the CLI and enter your credentials when prompted.
+
[source,options="nowrap",subs=attributes+]
----
include::cmd_examples/cli_nix.adoc[]
----
+
. Use the [command]`create cache` command to create remote caches.
+
For example, create a cache named "mycache" from a file named `mycache.xml` as follows:
+
[source,options="nowrap",subs=attributes+]
----
[//containers/default]> create cache --file=mycache.xml mycache
----

.Verification

. List all remote caches with the [command]`ls` command.
+
[source,options="nowrap",subs=attributes+]
----
[//containers/default]> ls caches
mycache
----
+
. View cache configuration with the [command]`describe` command.
+
[source,options="nowrap",subs=attributes+]
----
[//containers/default]> describe caches/mycache
----
