Using PCF Dev
Page last updated:
Note: If you are using PCF Dev v0.30 or earlier, see Using PCF Dev (Legacy).
This topic describes how to use PCF Dev to target instances, push an application, and list available marketplace services.
After starting your PCF Dev instance, use the
cf login command with the
-a flag to target its API:
$ cf login -a https://api.dev.cfdev.sh --skip-ssl-validation
To log in as a regular user, enter the following credentials when prompted by the cf CLI:
To log in as an admin user, enter the following credentials when prompted by the cf CLI:
The terminal displays your API system domain when you run
cf dev start. In most cases, your API system domain is
api.dev.cfdev.sh, but it may differ slightly depending on your host system configuration.
Follow the procedure below to push an app to your PCF Dev instance.
Navigate to your app directory.
cf push APP-NAME. Replace
APP-NAMEwith a name of your choice.
For more information about pushing apps to your deployment, see the Deploying an Application topic.
For more information about using the cf CLI, see the Getting Started with the cf CLI topic.
PCF Dev supports marketplace services, giving developers access to Spring Cloud Services, Redis, RabbitMQ, and MySQL.
In order to view the list of available services, run
cf marketplace in a terminal window. Services that are not started will not appear in marketplace.
$ cf marketplace Getting services from marketplace in org pcfdev-org / space pcfdev-space as admin... OK service plans description p-mysql 512mb, 1gb MySQL databases on demand p-rabbitmq standard RabbitMQ is a robust and scalable high-performance multi-protocol messaging broker. p-redis shared-vm Redis service to provide a key-value store
To undeploy a service run
cf dev stop and redeploy the services of your choosing.
For more information about using marketplace services, see the Using Services in PCF Dev topic.
When you start PCF Dev, Apps Manager starts automatically. Follow the procedure below to access Apps Manager.
Note: If PCF Dev started on a domain other than
dev.cfdev.sh, then the Apps Manager URL is different. For example, if you log in to PCF Dev at
api.local.pcfdev.io, then navigate to https://apps.local.pcfdev.io/ to access Apps Manager.
The first time you open Apps Manager after starting the PCF Dev, your browser shows a dialog or page about the security certificate. Choose to connect to the Apps Manager URL. Alternatively, you can run
cf dev trustto add the PCF Dev certificate to your OS certificate store. See here for more details.
Log in using admin/admin or user/pass. The Pivotal PCF Dev page appears: