SlideShare a Scribd company logo
PCF
Rajan Prasad Upadhyay
Rajan p Upadhyay 1
PCF Keywords
• Api endpoint
• Org, spaces
• Target
• Push
• logs
• Scale
• Service, cups service
• Binding/unbinding
• routes
Rajan p Upadhyay 2
Basic Commands
• Cf api
• Cf login
• Cf logout
• Cf target
Rajan p Upadhyay 3
Other commands
• Cf apps
• Cf app APP_NAME
• Cf push APP_NAME
• Cf push –f <manifest_file> -p<package_file>
• Cf scale APP_NAME
• Cf scale APP_name –i <instances_num> -k <disk_limit> -m<memory>
-f
• Cf delete APP_NAME -r
Rajan p Upadhyay 4
More commands
• Cf rename APP_NAME NEW_NAME
• Cf start APP_NAME
• Cf stop APP_NAME
• Cf restart APP_NAME
• Cf restage APP_NAME
• Cf events APP_NAME
• Cf restart-app-instance APP_NAME Index
• Cf logs APP_NAME
Rajan p Upadhyay 5
Even more commands
• Cf env App_Name
• Cf set-env APP_NAME <Key> <Value>
• Cf unset-env APP_NAME <Key>
Rajan p Upadhyay 6
Services command
• Cf marketplace
• Cf services
• Cf service SERVICE_INSTANCE
• Cf create-service SERVICE PLAN SERVICE_INSTANCE
• Cf delete-service SERVICE_INSTANCE
• Cf rename-service SERVICE_INSTANCE NEW_SERVICE_INSTANCE
• Cf bind-service APP_NAME SERVICE_INSTANCE
• Cf unbind-service APP_NAME SERVICE_INSTANCE
• Cf create-user-provided-service SERVICE_INSTANCE
• Cf update-user-provided-service SERVICE_INSTANCE
• Eg. Create database user provided service in interactive mode
cf cups SERVICE_NAME -p "url, username, password, encrypted"
Rajan p Upadhyay 7
Org commands
• Cf orgs
• Cf org ORG_NAME
• Cf create-org ORG_NAME
• Cf delete-org ORG_NAME
• Cf rename-org ORG_NAME NEW_ORG_NAME
Rajan p Upadhyay 8
Spaces
• Cf spaces
• Cf space SPACE_NAME
• Cf create-space SPACE
• Cf delete-space SPACE
• Cf rename-space SPACE NEW_SPACE
Rajan p Upadhyay 9
Domain commands
• Cf domains
• Cf create-domain ORG DOMAIN
• Cf delete-domain DOMAIN
• -- shared domain can only be created by admins
• Cf create-shared-domain DOMAIN
• Cf delete-shared-domain DOMAIN
Rajan p Upadhyay 10
Routes command
• Cf routes
• Cf create-route SPACE DOMAIN [-n HOST]
• Cf check-route HOST DOMAIN
• Cf map-route APP_NAME DOMAIN [-n HOST]
• Cf unmap-route APP_NAME DOMAIN
• Cf delete-orphaned-routes
• -- routing is very important
Rajan p Upadhyay 11
extra commands
• Cf buildpacks
• Cf feature-flags
Rajan p Upadhyay 12
Blue Green JVM
• For zero down-time in production
• Route = host + shared_domain
• We can have many routes point to same application
• Blue Gree JVM
• deploy application in PR with a non production route. One prefixed green
and one prefixed blue
• Create the production route manually: without mapping to any jvm
• Which ever instance is tested, point the PR_ROUTE to that jvm instance
Rajan p Upadhyay 13
Blue green jvm example
• Say in PR, an application ABC needs to be deployed with a route abc.
rajanu.com.np
Where shared-domain=rajanu.com.np and host=abc
• Deploy the application with a host green-abc and app-name green-abc
ie route = green-abc.rajanu.com.np
• Create the abc route manually
cf creae-route <SPACE> rajanu.com.np –n abc
• When testing is finished with the application and it ok, map the route
cf map-route ABC rajanu.com.np –n abc
• Now route abc. rajanu.com.np will also point to the application ABC in
addition to green-abc.rajanu.com.np
• you can unmap the green-abc route from the application
Rajan p Upadhyay 14
Blue green jvm example continued
• Next time you have some change in code and want to deploy in PR
• Deploy it with host blue-abc with a new applicationName blue-abc.
• So the new instance will have a mapped route of blue-abc.rajanu.com.np
• Lets say the testing is complete and you want to make this the production
version. You can map the abc route to blue-abc application.
Cf map-route blue-abc rajanu.com.np –n abc
• Now the route abc. rajanu.com.np will be pointing to both the instances green-
abc and blue-abc
• Now unmap the route from the green-abc instance so that it will only point to
blue-abc instance
• Cf unmap-route green-abc rajanu.com.np –n abc
• If some problem is discovered and you want to backout the changes, simply map
the route to green-abc and unmap it from blue-abc.
Rajan p Upadhyay 15
Ad

More Related Content

What's hot (12)

SQL.ppt
SQL.pptSQL.ppt
SQL.ppt
Ranjit273515
 
RACF - The Basics (v1.2)
RACF - The Basics (v1.2)RACF - The Basics (v1.2)
RACF - The Basics (v1.2)
Rui Miguel Feio
 
Android Pentesting - Oat2Dex
Android Pentesting - Oat2DexAndroid Pentesting - Oat2Dex
Android Pentesting - Oat2Dex
Sushil Bhojwani
 
10 Creating Triggers
10 Creating Triggers10 Creating Triggers
10 Creating Triggers
rehaniltifat
 
10 Problems with your RMAN backup script - whitepaper
10 Problems with your RMAN backup script - whitepaper10 Problems with your RMAN backup script - whitepaper
10 Problems with your RMAN backup script - whitepaper
Yury Velikanov
 
State Monad
State MonadState Monad
State Monad
Philip Schwarz
 
Introducción a sql server
Introducción a sql serverIntroducción a sql server
Introducción a sql server
Elizabeth Troconis
 
up libro aventura.pptx
up libro aventura.pptx up libro aventura.pptx
up libro aventura.pptx
MonseGalindo5
 
MySQL Basics
MySQL BasicsMySQL Basics
MySQL Basics
mysql content
 
Algebra relacional
Algebra relacionalAlgebra relacional
Algebra relacional
Luis Polanco-Balcazar
 
Db2.security.slides
Db2.security.slidesDb2.security.slides
Db2.security.slides
asderww
 
Cu codul în "nori"
Cu codul în "nori"Cu codul în "nori"
Cu codul în "nori"
Sabin Buraga
 
RACF - The Basics (v1.2)
RACF - The Basics (v1.2)RACF - The Basics (v1.2)
RACF - The Basics (v1.2)
Rui Miguel Feio
 
Android Pentesting - Oat2Dex
Android Pentesting - Oat2DexAndroid Pentesting - Oat2Dex
Android Pentesting - Oat2Dex
Sushil Bhojwani
 
10 Creating Triggers
10 Creating Triggers10 Creating Triggers
10 Creating Triggers
rehaniltifat
 
10 Problems with your RMAN backup script - whitepaper
10 Problems with your RMAN backup script - whitepaper10 Problems with your RMAN backup script - whitepaper
10 Problems with your RMAN backup script - whitepaper
Yury Velikanov
 
up libro aventura.pptx
up libro aventura.pptx up libro aventura.pptx
up libro aventura.pptx
MonseGalindo5
 
Db2.security.slides
Db2.security.slidesDb2.security.slides
Db2.security.slides
asderww
 
Cu codul în "nori"
Cu codul în "nori"Cu codul în "nori"
Cu codul în "nori"
Sabin Buraga
 

Viewers also liked (13)

Organizational Strengthening for VCPPG
Organizational Strengthening for VCPPGOrganizational Strengthening for VCPPG
Organizational Strengthening for VCPPG
Mercedes Diane Griffin Forbes
 
TUGASAN 3
TUGASAN 3TUGASAN 3
TUGASAN 3
NUR HANIM
 
Psicoeducación 1 eva
Psicoeducación 1 evaPsicoeducación 1 eva
Psicoeducación 1 eva
Eva Chávez Guadarrama
 
Giao trinh unix
Giao trinh unixGiao trinh unix
Giao trinh unix
tranbaanh
 
Fdi india ppt
Fdi india pptFdi india ppt
Fdi india ppt
Rency Raj
 
Syllabus finanzas publicas
Syllabus finanzas publicasSyllabus finanzas publicas
Syllabus finanzas publicas
Paola Casal
 
Contabilidad consolidacion de estados financieros (2)
Contabilidad consolidacion de estados financieros (2)Contabilidad consolidacion de estados financieros (2)
Contabilidad consolidacion de estados financieros (2)
Paola Casal
 
Avaliação diagnóstica de matematica1
Avaliação diagnóstica de matematica1Avaliação diagnóstica de matematica1
Avaliação diagnóstica de matematica1
Flavio Jose da Silva
 
Arnaldo jimenez
Arnaldo jimenezArnaldo jimenez
Arnaldo jimenez
arnaldo jimenez lopez
 
Anestésicos locales
Anestésicos localesAnestésicos locales
Anestésicos locales
danielmendoozagarcia
 
Curso de teclado (COMPLETO) - Aprenda a Tocar Teclado
Curso de teclado (COMPLETO) - Aprenda a Tocar TecladoCurso de teclado (COMPLETO) - Aprenda a Tocar Teclado
Curso de teclado (COMPLETO) - Aprenda a Tocar Teclado
Cleber Lucas
 
Role of customer executive in an it company
Role of customer executive in an it companyRole of customer executive in an it company
Role of customer executive in an it company
Emipro Technologies Pvt. Ltd.
 
GERENCIA Y ADMINISTRACION DE SALUD, SISTEMA DE SALUD DE LOS ESTADOS UNIDOS.
GERENCIA Y ADMINISTRACION DE SALUD, SISTEMA DE SALUD DE LOS ESTADOS UNIDOS.GERENCIA Y ADMINISTRACION DE SALUD, SISTEMA DE SALUD DE LOS ESTADOS UNIDOS.
GERENCIA Y ADMINISTRACION DE SALUD, SISTEMA DE SALUD DE LOS ESTADOS UNIDOS.
Jorge Amarante
 
Giao trinh unix
Giao trinh unixGiao trinh unix
Giao trinh unix
tranbaanh
 
Fdi india ppt
Fdi india pptFdi india ppt
Fdi india ppt
Rency Raj
 
Syllabus finanzas publicas
Syllabus finanzas publicasSyllabus finanzas publicas
Syllabus finanzas publicas
Paola Casal
 
Contabilidad consolidacion de estados financieros (2)
Contabilidad consolidacion de estados financieros (2)Contabilidad consolidacion de estados financieros (2)
Contabilidad consolidacion de estados financieros (2)
Paola Casal
 
Avaliação diagnóstica de matematica1
Avaliação diagnóstica de matematica1Avaliação diagnóstica de matematica1
Avaliação diagnóstica de matematica1
Flavio Jose da Silva
 
Curso de teclado (COMPLETO) - Aprenda a Tocar Teclado
Curso de teclado (COMPLETO) - Aprenda a Tocar TecladoCurso de teclado (COMPLETO) - Aprenda a Tocar Teclado
Curso de teclado (COMPLETO) - Aprenda a Tocar Teclado
Cleber Lucas
 
GERENCIA Y ADMINISTRACION DE SALUD, SISTEMA DE SALUD DE LOS ESTADOS UNIDOS.
GERENCIA Y ADMINISTRACION DE SALUD, SISTEMA DE SALUD DE LOS ESTADOS UNIDOS.GERENCIA Y ADMINISTRACION DE SALUD, SISTEMA DE SALUD DE LOS ESTADOS UNIDOS.
GERENCIA Y ADMINISTRACION DE SALUD, SISTEMA DE SALUD DE LOS ESTADOS UNIDOS.
Jorge Amarante
 
Ad

Similar to Pcf commands (20)

Route service-pcf-techmeetup
Route service-pcf-techmeetupRoute service-pcf-techmeetup
Route service-pcf-techmeetup
Gwenn Etourneau
 
Hadoop MapReduce Streaming and Pipes
Hadoop MapReduce  Streaming and PipesHadoop MapReduce  Streaming and Pipes
Hadoop MapReduce Streaming and Pipes
Hanborq Inc.
 
CPAN Training
CPAN TrainingCPAN Training
CPAN Training
Pedro Figueiredo
 
Introduction to SLURM
Introduction to SLURMIntroduction to SLURM
Introduction to SLURM
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Introduction to Slurm
Introduction to SlurmIntroduction to Slurm
Introduction to Slurm
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Unpacking .NET Core | EastBanc Technologies
Unpacking .NET Core | EastBanc TechnologiesUnpacking .NET Core | EastBanc Technologies
Unpacking .NET Core | EastBanc Technologies
EastBanc Tachnologies
 
Express JS
Express JSExpress JS
Express JS
Designveloper
 
Introduction to SLURM
 Introduction to SLURM Introduction to SLURM
Introduction to SLURM
CSUC - Consorci de Serveis Universitaris de Catalunya
 
History Of Redis Replication And Future Prospects: Zhao Zhao
History Of Redis Replication And Future Prospects: Zhao ZhaoHistory Of Redis Replication And Future Prospects: Zhao Zhao
History Of Redis Replication And Future Prospects: Zhao Zhao
Redis Labs
 
OpenPOWER Application Optimization
OpenPOWER Application Optimization OpenPOWER Application Optimization
OpenPOWER Application Optimization
Ganesan Narayanasamy
 
Understanding extensions SPFX Microsoft O365
Understanding extensions SPFX Microsoft O365Understanding extensions SPFX Microsoft O365
Understanding extensions SPFX Microsoft O365
pehap
 
Cisco Wireless LAN Controller Command Reference, Release 7.4.pdf
Cisco Wireless LAN Controller Command Reference, Release 7.4.pdfCisco Wireless LAN Controller Command Reference, Release 7.4.pdf
Cisco Wireless LAN Controller Command Reference, Release 7.4.pdf
ssusercbaa33
 
Chef training Day4
Chef training Day4Chef training Day4
Chef training Day4
Andriy Samilyak
 
[k8s] Kubernetes terminology (1).pdf
[k8s] Kubernetes terminology (1).pdf[k8s] Kubernetes terminology (1).pdf
[k8s] Kubernetes terminology (1).pdf
Frederik Wouters
 
Cloud Foundry 百日行 振り返り
Cloud Foundry 百日行 振り返りCloud Foundry 百日行 振り返り
Cloud Foundry 百日行 振り返り
nota-ja
 
Bada familiar foundations
Bada  familiar foundationsBada  familiar foundations
Bada familiar foundations
jlansdell
 
Simplifying EBS 12.2 ADOP - Collaborate 2019
Simplifying EBS 12.2 ADOP - Collaborate 2019   Simplifying EBS 12.2 ADOP - Collaborate 2019
Simplifying EBS 12.2 ADOP - Collaborate 2019
Alfredo Krieg
 
Everything ruby
Everything rubyEverything ruby
Everything ruby
ajeygore
 
Laravel - Website Development in Php Framework.
Laravel - Website Development in Php Framework.Laravel - Website Development in Php Framework.
Laravel - Website Development in Php Framework.
SWAAM Tech
 
Serverless Preview Environments @ Boston DevOps
Serverless Preview Environments @ Boston DevOpsServerless Preview Environments @ Boston DevOps
Serverless Preview Environments @ Boston DevOps
Joseph Lust
 
Route service-pcf-techmeetup
Route service-pcf-techmeetupRoute service-pcf-techmeetup
Route service-pcf-techmeetup
Gwenn Etourneau
 
Hadoop MapReduce Streaming and Pipes
Hadoop MapReduce  Streaming and PipesHadoop MapReduce  Streaming and Pipes
Hadoop MapReduce Streaming and Pipes
Hanborq Inc.
 
Unpacking .NET Core | EastBanc Technologies
Unpacking .NET Core | EastBanc TechnologiesUnpacking .NET Core | EastBanc Technologies
Unpacking .NET Core | EastBanc Technologies
EastBanc Tachnologies
 
History Of Redis Replication And Future Prospects: Zhao Zhao
History Of Redis Replication And Future Prospects: Zhao ZhaoHistory Of Redis Replication And Future Prospects: Zhao Zhao
History Of Redis Replication And Future Prospects: Zhao Zhao
Redis Labs
 
OpenPOWER Application Optimization
OpenPOWER Application Optimization OpenPOWER Application Optimization
OpenPOWER Application Optimization
Ganesan Narayanasamy
 
Understanding extensions SPFX Microsoft O365
Understanding extensions SPFX Microsoft O365Understanding extensions SPFX Microsoft O365
Understanding extensions SPFX Microsoft O365
pehap
 
Cisco Wireless LAN Controller Command Reference, Release 7.4.pdf
Cisco Wireless LAN Controller Command Reference, Release 7.4.pdfCisco Wireless LAN Controller Command Reference, Release 7.4.pdf
Cisco Wireless LAN Controller Command Reference, Release 7.4.pdf
ssusercbaa33
 
[k8s] Kubernetes terminology (1).pdf
[k8s] Kubernetes terminology (1).pdf[k8s] Kubernetes terminology (1).pdf
[k8s] Kubernetes terminology (1).pdf
Frederik Wouters
 
Cloud Foundry 百日行 振り返り
Cloud Foundry 百日行 振り返りCloud Foundry 百日行 振り返り
Cloud Foundry 百日行 振り返り
nota-ja
 
Bada familiar foundations
Bada  familiar foundationsBada  familiar foundations
Bada familiar foundations
jlansdell
 
Simplifying EBS 12.2 ADOP - Collaborate 2019
Simplifying EBS 12.2 ADOP - Collaborate 2019   Simplifying EBS 12.2 ADOP - Collaborate 2019
Simplifying EBS 12.2 ADOP - Collaborate 2019
Alfredo Krieg
 
Everything ruby
Everything rubyEverything ruby
Everything ruby
ajeygore
 
Laravel - Website Development in Php Framework.
Laravel - Website Development in Php Framework.Laravel - Website Development in Php Framework.
Laravel - Website Development in Php Framework.
SWAAM Tech
 
Serverless Preview Environments @ Boston DevOps
Serverless Preview Environments @ Boston DevOpsServerless Preview Environments @ Boston DevOps
Serverless Preview Environments @ Boston DevOps
Joseph Lust
 
Ad

Recently uploaded (20)

Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 

Pcf commands

  • 2. PCF Keywords • Api endpoint • Org, spaces • Target • Push • logs • Scale • Service, cups service • Binding/unbinding • routes Rajan p Upadhyay 2
  • 3. Basic Commands • Cf api • Cf login • Cf logout • Cf target Rajan p Upadhyay 3
  • 4. Other commands • Cf apps • Cf app APP_NAME • Cf push APP_NAME • Cf push –f <manifest_file> -p<package_file> • Cf scale APP_NAME • Cf scale APP_name –i <instances_num> -k <disk_limit> -m<memory> -f • Cf delete APP_NAME -r Rajan p Upadhyay 4
  • 5. More commands • Cf rename APP_NAME NEW_NAME • Cf start APP_NAME • Cf stop APP_NAME • Cf restart APP_NAME • Cf restage APP_NAME • Cf events APP_NAME • Cf restart-app-instance APP_NAME Index • Cf logs APP_NAME Rajan p Upadhyay 5
  • 6. Even more commands • Cf env App_Name • Cf set-env APP_NAME <Key> <Value> • Cf unset-env APP_NAME <Key> Rajan p Upadhyay 6
  • 7. Services command • Cf marketplace • Cf services • Cf service SERVICE_INSTANCE • Cf create-service SERVICE PLAN SERVICE_INSTANCE • Cf delete-service SERVICE_INSTANCE • Cf rename-service SERVICE_INSTANCE NEW_SERVICE_INSTANCE • Cf bind-service APP_NAME SERVICE_INSTANCE • Cf unbind-service APP_NAME SERVICE_INSTANCE • Cf create-user-provided-service SERVICE_INSTANCE • Cf update-user-provided-service SERVICE_INSTANCE • Eg. Create database user provided service in interactive mode cf cups SERVICE_NAME -p "url, username, password, encrypted" Rajan p Upadhyay 7
  • 8. Org commands • Cf orgs • Cf org ORG_NAME • Cf create-org ORG_NAME • Cf delete-org ORG_NAME • Cf rename-org ORG_NAME NEW_ORG_NAME Rajan p Upadhyay 8
  • 9. Spaces • Cf spaces • Cf space SPACE_NAME • Cf create-space SPACE • Cf delete-space SPACE • Cf rename-space SPACE NEW_SPACE Rajan p Upadhyay 9
  • 10. Domain commands • Cf domains • Cf create-domain ORG DOMAIN • Cf delete-domain DOMAIN • -- shared domain can only be created by admins • Cf create-shared-domain DOMAIN • Cf delete-shared-domain DOMAIN Rajan p Upadhyay 10
  • 11. Routes command • Cf routes • Cf create-route SPACE DOMAIN [-n HOST] • Cf check-route HOST DOMAIN • Cf map-route APP_NAME DOMAIN [-n HOST] • Cf unmap-route APP_NAME DOMAIN • Cf delete-orphaned-routes • -- routing is very important Rajan p Upadhyay 11
  • 12. extra commands • Cf buildpacks • Cf feature-flags Rajan p Upadhyay 12
  • 13. Blue Green JVM • For zero down-time in production • Route = host + shared_domain • We can have many routes point to same application • Blue Gree JVM • deploy application in PR with a non production route. One prefixed green and one prefixed blue • Create the production route manually: without mapping to any jvm • Which ever instance is tested, point the PR_ROUTE to that jvm instance Rajan p Upadhyay 13
  • 14. Blue green jvm example • Say in PR, an application ABC needs to be deployed with a route abc. rajanu.com.np Where shared-domain=rajanu.com.np and host=abc • Deploy the application with a host green-abc and app-name green-abc ie route = green-abc.rajanu.com.np • Create the abc route manually cf creae-route <SPACE> rajanu.com.np –n abc • When testing is finished with the application and it ok, map the route cf map-route ABC rajanu.com.np –n abc • Now route abc. rajanu.com.np will also point to the application ABC in addition to green-abc.rajanu.com.np • you can unmap the green-abc route from the application Rajan p Upadhyay 14
  • 15. Blue green jvm example continued • Next time you have some change in code and want to deploy in PR • Deploy it with host blue-abc with a new applicationName blue-abc. • So the new instance will have a mapped route of blue-abc.rajanu.com.np • Lets say the testing is complete and you want to make this the production version. You can map the abc route to blue-abc application. Cf map-route blue-abc rajanu.com.np –n abc • Now the route abc. rajanu.com.np will be pointing to both the instances green- abc and blue-abc • Now unmap the route from the green-abc instance so that it will only point to blue-abc instance • Cf unmap-route green-abc rajanu.com.np –n abc • If some problem is discovered and you want to backout the changes, simply map the route to green-abc and unmap it from blue-abc. Rajan p Upadhyay 15