Wednesday, December 27, 2017

Cloud Foundry commands

cf version 6.33.1+c77e55743.2017-12-15, Cloud Foundry command line tool
Usage: cf [global options] command [arguments...] [command options]

Before getting started:
  config    login,l      target,t
  help,h    logout,lo   

Application lifecycle:
  apps,a        run-task,rt    events
  push,p        logs           set-env,se
  start,st      ssh            create-app-manifest
  stop,sp       app           
  restart,rs    env,e         
  restage,rg    scale         

Services integration:
  marketplace,m        create-user-provided-service,cups
  services,s           update-user-provided-service,uups
  create-service,cs    create-service-key,csk
  update-service       delete-service-key,dsk
  delete-service,ds    service-keys,sk
  service              service-key
  bind-service,bs      bind-route-service,brs
  unbind-service,us    unbind-route-service,urs

Route and domain management:
  routes,r        delete-route    create-domain
  domains         map-route     
  create-route    unmap-route   

Space management:
  spaces         create-space    set-space-role
  space-users    delete-space    unset-space-role

Org management:
  orgs,o       set-org-role
  org-users    unset-org-role

CLI plugin management:
  plugins           add-plugin-repo      repo-plugins
  install-plugin    list-plugin-repos   

Commands offered by installed plugins:

Global options:
  --help, -h                         Show help
  -v                                 Print API request diagnostics to stdout

Use 'cf help -a' to see all commands.



cd /d e:
cf target
cls
cd E:\balaji\Java Videos\Pivotal Studies\
dir
ren jenkins.zip jenkins.war
java
java -jar jenkins.war
cls
cd c:/
cd c:\
cd /d c:/
cls
cf push -f C:\Users\balaji\git\pcf-articulate-code\manifest.yml
cf set-env articulate JBP_CONFIG_OPEN_JDK_JRE "{jre: { version: 1.8.0_45 }}"
cf restage articulate
cf push articulate -p C:\Users\balaji\git\pcf-articulate-code\target\articulate-1.0.jar -b-b https://github.com/cloudfoundry/java
cf push articulate -p C:\Users\balaji\git\pcf-articulate-code\target\articulate-1.0.jar -b https://github.com/cloudfoundry/java-buildpack.git
cf set-env articulate JBP_CONFIG_OPEN_JDK_JRE "{jre: { version: 1.8.0_45 }}"
cf set-env articulate JBP_CONFIG_OPEN_JDK_JRE "{jre: { version: 1.8.0 }}"
cf restage articulate
cf set-env articulate JBP_CONFIG_OPEN_JDK_JRE "{jre: { version: 1.8.0_45 }}"
cf restage articulate
cf scale  articulate  -i 1
cf scale  articulate  -i 2
cf marketplace
get-history
doskey /HISTORY > history.txt
dir | clip
doskey /HISTORY
cls
cd /d e:
doskey /HISTORY >logs.txt
cls
javac
java
cls
cd E:\balaji\Java Videos\Pivotal Studies\jenkins
cd e:
cd e:\
cd e:/
cls
cd
cd E:\balaji\Java Videos\Pivotal Studies\jenkins
cd e:
dir
cd E:\balaji\Java Videos\Pivotal Studies\
cd e:/
cd e:
cd \d e:


cls
cf create-user-provided-service newrelic -p dd368d47fac01bc4e69c234747e88ccbf30600b2
cf create-service newrelic standard newrelic
cf bind-service articulate newrelic
cf restage articulate
cf logs articulate
cf unbind-service articulate newrelic
cf delete-service newrelic
cf restage articulate
cf push -f C:\Users\balaji\git\pcf-articulate-code\manifest.yml
doskey /HISTORY >logs1.txt
cd /d c:/
cls
cf push -f C:\Users\balaji\git\pcf-articulate-code\manifest.yml
cf set-env articulate JBP_CONFIG_OPEN_JDK_JRE "{jre: { version: 1.8.0_45 }}"
cf restage articulate
cf push articulate -p C:\Users\balaji\git\pcf-articulate-code\target\articulate-1.0.jar -b-b https://github.com/cloudfoundry/java
cf push articulate -p C:\Users\balaji\git\pcf-articulate-code\target\articulate-1.0.jar -b https://github.com/cloudfoundry/java-buildpack.git
cf set-env articulate JBP_CONFIG_OPEN_JDK_JRE "{jre: { version: 1.8.0_45 }}"
cf set-env articulate JBP_CONFIG_OPEN_JDK_JRE "{jre: { version: 1.8.0 }}"
cf restage articulate
cf set-env articulate JBP_CONFIG_OPEN_JDK_JRE "{jre: { version: 1.8.0_45 }}"
cf restage articulate
cf scale  articulate  -i 1
cf scale  articulate  -i 2
cf marketplace
get-history
doskey /HISTORY > history.txt
dir | clip
doskey /HISTORY
cls
cd /d e:
doskey /HISTORY >logs.txt
logs.txt
cf scale articulate -i 1
cf marketplace
cf create-service app-autoscaler standard autoscaler
cf cs app-autoscaler standard autoscaler
cf bind-service articualate autoscaler
cf bind-service articulate autoscaler
cf restart articulate
cf logs articulate
cls
cf unbind-service articulate autoscalar
cf unbind-service articulate autoscaler
cf delete autoscaler
cf delete-service autoscaler
cf scale articulate -i 1
cf restart articulate
cf scale articulate -m 1G -i 1


cls
cf create-user-provided-service newrelic -p dd368d47fac01bc4e69c234747e88ccbf30600b2
cf create-service newrelic standard newrelic
cf bind-service articulate newrelic
cf restage articulate
cf logs articulate
cf unbind-service articulate newrelic
cf delete-service newrelic
cf restage articulate
cf push -f C:\Users\balaji\git\pcf-articulate-code\manifest.yml
doskey /HISTORY >logs1.txt
logs1.txt
cf map-route articulate-v2 cfapps.io -n articulate-clupeoid-stylization
cf apps
$ cf unmap-route articulate cfapps.io -n articulate-clupeoid-stylization
cf unmap-route articulate cfapps.io -n articulate-clupeoid-stylization
cf apps
cf delete articulate
cf delete articulate-v2 articulate
cf rename articulate-v2 articulate
cf restart articulate
doskey /HISTORY >logs2.txt
cf restage articulate
cf scale  articulate  -i 1
cf scale  articulate  -i 2
cf marketplace
get-history
doskey /HISTORY > history.txt
dir | clip
doskey /HISTORY
cls
cd /d e:
doskey /HISTORY >logs.txt
logs.txt
cf scale articulate -i 1
cf marketplace
cf create-service app-autoscaler standard autoscaler
cf cs app-autoscaler standard autoscaler
cf bind-service articualate autoscaler
cf bind-service articulate autoscaler
cf restart articulate
cf logs articulate
cls
cf unbind-service articulate autoscalar
cf unbind-service articulate autoscaler
cf delete autoscaler
cf delete-service autoscaler
cf scale articulate -i 1
cf restart articulate
cf scale articulate -m 1G -i 1
cf target
cf security-groups
cf security-group public_networks
cf create-security-group
cls
cf running-security-groups
cf bind-running-security-group all_open
cf staging-security-groups
cf create-user-provided-service articulate-log-drain -l syslog://logs6.papertrailapp.com:26996
cf bind-service articulate articulate-log-drain
cf restart articulate
cf market-place
y
cf marketplace
cf create-service cleardb spark attendee-mysql
cf app articulate
cf create-app-manifest articulate -p C:\Users\balaji\git\pcf-articulate-code\manifest.yml
cf push -f C:\Users\balaji\git\pcf-articulate-code\manifest.yml
cf events articulate
doskey /HISTORY >logs4.txt



cf routes

cf routes org-name

cf check-route hostname domain-name

cf api


cf login

cf create-user-provided-service  instance-name -r route name


No comments:

Post a Comment

உப்பு மாங்காய்

சுருக்குப்பை கிழவி. சுருக்கங்கள் சூழ் கிழவி. பார்க்கும் போதெல்லாம் கூடையுடனே குடியிருப்பாள். கூடை நிறைய குட்டி குட்டி மாங்காய்கள். வெட்டிக்க...