CF Sample Plugin is a Cloud Foundry CLI plugin written in Go. It provides various commands, such as listing deployed applications and running example commands. This project uses GoReleaser to automate the release and multi-platform builds.
To install the plugin, either build the code yourself or use the latest precompiled release.
-
Download the latest release from Releases.
-
Install the plugin with the
cfcommand:
If you'd like to manually build the plugin, follow these steps:
-
Clone the repository:
-
Build the plugin for your platform:
-
Install the plugin:
Once installed, the following commands are available:
cf hello: Prints a welcome message.cf list-apps: Lists all deployed applications.cf sample-command: Example command without arguments.cf sample-command-with-args arg1 arg2: Example command that takes arguments.
Example usage:
This project uses GoReleaser to automate the build and release process. The .goreleaser.yml file is configured to generate binaries for multiple platforms (Linux, macOS, Windows) and automatically create GitHub releases.
To create a new release with GoReleaser, ensure you have the appropriate GitHub authentication set up (via GitHub CLI or environment variables), then run:
This will:
- Build the binaries for multiple platforms.
- Create a GitHub release with the binaries and checksums.
- Use the Git tag as the version number.
Contributions are welcome! Follow the steps in the CONTRIBUTING.md for details.
This project is licensed under the MIT License - see the LICENSE file for details.