From 3ccfec2b8fca978eaa1f31e36bae53db08cda412 Mon Sep 17 00:00:00 2001 From: subhamkrai Date: Mon, 11 Dec 2023 16:05:28 +0530 Subject: [PATCH] test: add testing steps to README Signed-off-by: subhamkrai --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index 037c15e..68f789d 100644 --- a/README.md +++ b/README.md @@ -44,3 +44,32 @@ These are the arguments that apply to all commands: ```bash odf --context=$(oc config current-context) [commands] ``` + +## Installation + +### Build from source + +#### Requirements + +- Go >= 1.21 +- ODF storage cluster should be installed. + +### Build and Run + +1. Clone the repository + + ```bash + git clone https://github.com/red-hat-storage/odf-cli.git + ``` + +2. Change the directory and build the binary + + ```bash + cd odf-cli/ && make build + ``` + +3. Use the binary present in the`/bin/` directory to run the commands + + ```bash + ./bin/odf -h + ```