create-service - Cloud Foundry CLI Reference Guide


NAME

create-service - Create a service instance

USAGE

cf create-service SERVICE_OFFERING PLAN SERVICE_INSTANCE [-b SERVICE_BROKER] [-c PARAMETERS_AS_JSON] [-t TAGS] Optionally provide service-specific configuration parameters in a valid JSON object in-line: cf create-service SERVICE_OFFERING PLAN SERVICE_INSTANCE -c '{"name":"value","name":"value"}' Optionally provide a file containing service-specific configuration parameters in a valid JSON object. The path to the parameters file can be an absolute or relative path to a file: cf create-service SERVICE_OFFERING PLAN SERVICE_INSTANCE -c PATH_TO_FILE Example of valid JSON object: { "cluster_nodes": { "count": 5, "memory_mb": 1024 } } TIP: Use 'cf create-user-provided-service' to make user-provided service instances available to CF apps EXAMPLES: Linux/Mac: cf create-service db-service silver mydb -c '{"ram_gb":4}' Windows Command Line: cf create-service db-service silver mydb -c "{\"ram_gb\":4}" Windows PowerShell: cf create-service db-service silver mydb -c '{\"ram_gb\":4}' cf create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json cf create-service db-service silver mydb -t "list, of, tags"

ALIAS

cs

OPTIONS

-b

Create a service instance from a particular broker. Required when service offering name is ambiguous

-c

Valid JSON object containing service-specific configuration parameters, provided either in-line or in a file. For a list of supported configuration parameters, see documentation for the particular service offering.

-t

User provided tags

--wait, -w

Wait for the operation to complete

SEE ALSO

bind-service, create-user-provided-service, marketplace, services