// Module included in the following assemblies:
//
// assembly-configure-address-spaces-addresses-cli-kube.adoc
// assembly-configure-address-spaces-addresses-cli-oc.adoc

[id='create-address-cli-{context}']
= Creating addresses using the command line

.Procedure

. Create an address definition:
+
[source,yaml,options="nowrap"]
.link:resources/standard-small-queue.yaml[standard-small-queue.yaml]
----
include::../common/standard-small-queue.yaml[]
----
+
NOTE: Prefixing the name with the address space name is required to ensure addresses from different address spaces do not collide.

. Create the address:
+
[source,yaml,options="nowrap",subs="attributes"]
----
{cmdcli} create -f standard-small-queue.yaml
----

. List the addresses:
+
[source,yaml,options="nowrap",subs="attributes"]
----
{cmdcli} get addresses -o yaml
----

