HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

bosh — Deploy and manage the BOSH director. More information: <https://bosh.io/docs/cli-v2/>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandandclimanagedeploybosh

Problem

How to use the bosh command: Deploy and manage the BOSH director. More information: <https://bosh.io/docs/cli-v2/>.

Solution

bosh — Deploy and manage the BOSH director. More information: <https://bosh.io/docs/cli-v2/>.

Create local alias for director in a specific environment:
bosh alias-env {{environment_name}} {{[-e|--environment]}} {{ip_address|URL}} --ca-cert {{ca_certificate}}


List environments:
bosh environments


Log in to the director:
bosh login {{[-e|--environment]}} {{environment}}


List deployments:
bosh {{[-e|--environment]}} {{environment}} deployments


List environment virtual machines in a deployment:
bosh {{[-e|--environment]}} {{environment}} vms {{[-d|--deployment]}} {{deployment}}


SSH into virtual machine:
bosh {{[-e|--environment]}} {{environment}} ssh {{virtual_machine}} {{[-d|--deployment]}} {{deployment}}


Upload stemcell:
bosh {{[-e|--environment]}} {{environment}} upload-stemcell {{stemcell_file|url}}


Show current cloud config:
bosh {{[-e|--environment]}} {{environment}} cloud-config

Code Snippets

Create local alias for director in a specific environment

bosh alias-env {{environment_name}} {{[-e|--environment]}} {{ip_address|URL}} --ca-cert {{ca_certificate}}

List environments

bosh environments

Log in to the director

bosh login {{[-e|--environment]}} {{environment}}

List deployments

bosh {{[-e|--environment]}} {{environment}} deployments

List environment virtual machines in a deployment

bosh {{[-e|--environment]}} {{environment}} vms {{[-d|--deployment]}} {{deployment}}

Context

tldr-pages: common/bosh

Revisions (0)

No revisions yet.