cloudfoundry/stratos

View on GitHub
src/frontend/packages/cloud-foundry/src/shared/components/cli-info/cli-info.component.html

Summary

Maintainability
Test Coverage
<div class="cli-info" *ngIf="context">
  <div class="cli-info__content">
    <div>
      <p>Use the Cloud Foundry CLI to execute commands directly against a Cloud Foundry instance.</p>
      <h4>Getting Started</h4>
      <p>Before starting follow these steps:</p>

      <span>1. Download and install the CLI - </span>
      <a href="https://github.com/cloudfoundry/cli#downloads" rel="noopener noreferrer" target="_blank">see here</a>

      <p>2. Set the api endpoint</p>
      <app-code-block>cf api {{context.apiEndpoint || '[Cloud Foundry API endpoint]'}}</app-code-block>

      <p>3. Login</p>
      <app-code-block>cf login</app-code-block>
      <p>Output</p>
      <app-code-block codeBlockStyle="pre" hideCopy="true">
        <pre>API endpoint: <b>{{context.apiEndpoint || '[Cloud Foundry API endpoint]'}}</b>

Email> {{context.username || '[username]'}}

Password> [password]
Authenticating...
<b>OK</b></pre>
      </app-code-block>

      <p>4. Target an org and space</p>
      <app-code-block>cf target -o "{{context.orgName || '[organization name]'}}" -s "{{context.spaceName || '[space name]'}}"
      </app-code-block>
    </div>
    <ng-content></ng-content>
  </div>
</div>