{"id":19040810,"url":"https://github.com/cloudfoundry/bosh-package-cf-cli-release","last_synced_at":"2025-04-23T21:23:12.820Z","repository":{"id":25789226,"uuid":"103974839","full_name":"cloudfoundry/bosh-package-cf-cli-release","owner":"cloudfoundry","description":"BOSH release of Cloud Foundry CLI","archived":false,"fork":false,"pushed_at":"2025-04-11T17:52:26.000Z","size":48150,"stargazers_count":8,"open_issues_count":2,"forks_count":7,"subscribers_count":24,"default_branch":"main","last_synced_at":"2025-04-11T18:47:27.753Z","etag":null,"topics":["bosh-release","cf-cli","cloud-foundry","cloud-foundry-cli"],"latest_commit_sha":null,"homepage":"https://github.com/cloudfoundry/cli","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudfoundry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-09-18T18:14:55.000Z","updated_at":"2025-04-11T17:52:30.000Z","dependencies_parsed_at":"2023-09-01T15:11:43.005Z","dependency_job_id":"3a1eeb4e-a4dc-474b-88bf-ade0f3bc329a","html_url":"https://github.com/cloudfoundry/bosh-package-cf-cli-release","commit_stats":null,"previous_names":["cloudfoundry/bosh-package-cf-cli-release"],"tags_count":77,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fbosh-package-cf-cli-release","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fbosh-package-cf-cli-release/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fbosh-package-cf-cli-release/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fbosh-package-cf-cli-release/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudfoundry","download_url":"https://codeload.github.com/cloudfoundry/bosh-package-cf-cli-release/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250515467,"owners_count":21443419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bosh-release","cf-cli","cloud-foundry","cloud-foundry-cli"],"created_at":"2024-11-08T22:25:28.238Z","updated_at":"2025-04-23T21:23:12.803Z","avatar_url":"https://github.com/cloudfoundry.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cf-cli-release\n\nThis release allows a BOSH release author to install a specific *official version of the CF CLI binary in their deployment. The release currently comprises only the v8 (via the `cf-cli-8-linux` package) major version of the CLI.\n\n*official: the CF CLI binary is signed with a Cloud Foundry Foundation certificate, certifying that the source code has not been tampered with.\n\n## Consuming the release\n\nTo co-locate the Linux CF CLI BOSH job on your target VM, follow these steps:\n\n1. Add the `cf-cli` BOSH release to your deployment manifest.\n2. Colocate the `cf-cli-8-linux` BOSH job on the instance group you want to use the CF CLI binary on.\n3. Modify your BOSH job script that uses the cli to add the `cf` binary of your choice to the PATH.\n\nBehind the scenes, the CF CLI binary is installed on the target machine at compile time via the `cf-cli-8-linux` BOSH package (dependency of the `cf-cli-8-linux` BOSH job). The binary will be located at `/var/vcap/packages/cf-cli-8-linux/bin/cf`.\n\n### Warning\n\nBefore consuming the release, ensure you've removed all previous `cf` CLI from either your blobs or packages.\n\n## Development\n\n1. Open with VisualStudion Code\n   - Check if [Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension is installed.\n1. By default [.vars](.github/.vars) and [.secrets](.github/.secrets) located in [.github](.github) folder. To use them please copy to the root of the project and update values. `cp .github/.vars .github/.secrets .`\n1. Update [.secrets](.secrets) file with real API token.\n   - `echo \"API_TOKEN: $(shepherd create service-account gha-shepherd --json | jq -r .secret)\" \u003e\u003e .secrets`\n   - Local workflow dev runner [act](https://github.com/nektos/act) injects content of [.vars](.vars) and [.secrets](.secrets) into workflow execution context.\n1. Open project inside the dev container.\n1. Run `make run` to start.\n\n## Deployment\n\n1. To upload variables and secrets to the default remote repo for the current branch. **PROCEED WITH CARE** use `make repo-context-setup`. This will overwrite remote vaules with local from [.vars](.vars) and [.secrets](.secrets)\n\nTo test installation of the CF CLI binary via BOSH job co-location, run:\n\n```sh\n./tests/run.sh\n```\n\nThis will create a deployment using your currently targeted BOSH Director.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry%2Fbosh-package-cf-cli-release","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudfoundry%2Fbosh-package-cf-cli-release","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry%2Fbosh-package-cf-cli-release/lists"}