<commit_before>---
title: Create a Managed Service Instance
---

This page has information about creating a managed service with cf.

_This page assumes that you are using cf v5_

## <a id='cf-create-service'></a>Create a Managed Service ##

1. Use this command to create a service instance.
<pre class="terminal">
cf create-service
</pre>
The service types available to applications in your Cloud Foundry instance are listed, and you are prompted to select a service type.
1. After selecting a service type, you are prompted to enter a new for the new service instance.
1. Enter a name for the service instance.
1. Depending on your environment, you may be prompted to select additional service options, for example, a service plan.



## <a id='gcf-create-service'></a>Create a Managed Service with cf v6 ##

The cf v6 command to create a service instance is:

<pre class="terminal">
cf create-service SERVICE PLAN SERVICE_INSTANCE`
</pre>

where:

* `SERVICE` --- is the type of service.
* `PLAN` --- is the service plan.
* `SERVICE_INSTANCE` --- is the name you assign to the service instance.

For example:
<pre class="terminal">
gcf create-service cleardb spark cleardb1
</pre><commit_msg>change service reference to rabbitmq<commit_after>---
title: Create a Managed Service Instance
---

This page has information about creating a managed service with cf.

## <a id='cf-create-service'></a>Create a Managed Service with cf v5 ##

1. Use this cf v5 command to create a service instance:
<pre class="terminal">
cf create-service
</pre>
The service types available to applications in your Cloud Foundry instance are listed, and you are prompted to select a service type.
1. After selecting a service type, enter a name for the new service instance at the prompt.
1. Depending on your environment, you may be prompted to select additional service options, for example, a service plan.

## <a id='gcf-create-service'></a>Create a Managed Service with cf v6 ##

The cf v6 command to create a service instance is:

<pre class="terminal">
cf create-service SERVICE PLAN SERVICE_INSTANCE
</pre>

where:

* `SERVICE` --- is the type of service.
* `PLAN` --- is the service plan.
* `SERVICE_INSTANCE` --- is the name you assign to the service instance.

For example:
<pre class="terminal">
cf create-service rabbitmq cloudamqp rabbitmq1
</pre>
{'fraction_non_alphanumeric': 0.08849935870029928, 'fraction_numerical': 0.006840530141085934, 'mean_word_length': 4.176991150442478, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7575333', 'n_tokens_mistral': 656, 'n_tokens_neox': 647, 'n_words': 332}