Skip to content

Commit ae6914d

Browse files
committed
docs: update readme
Signed-off-by: laminar <fangtian@kubesphere.io> Signed-off-by: laminar <fangtian@kubesphere.io>
1 parent 6c4b685 commit ae6914d

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

README.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,7 @@ The main commands supported by the CLI are:
1818

1919
## Getting started
2020

21-
#### Build OpenFunction CLI
22-
23-
You can use `make build` to build the OpenFunction CLI —— `ofn`.
24-
When the command is executed, you can find the artifact in the `. /dist` directory.
25-
Move it to the appropriate path in the `PATH` so that you can use it in your environment.
26-
27-
```shell
28-
~# make build
29-
go fmt ./...
30-
/opt/openfunction/fn-cli/bin/goimports -w cmd/ pkg/ testdata/
31-
go vet ./...
32-
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X 'main.goversion=go version go1.16.7 linux/amd64'" \
33-
-o ./dist/fn_linux_amd64 cmd/main.go;
34-
```
21+
Visit [ofn release](https://github.com/OpenFunction/cli/releases/) to select the `ofn` cli to deploy to your cluster.
3522

3623
### Use ofn to deploy OpenFunction
3724

@@ -135,3 +122,19 @@ Enter 'y' to continue and 'n' to abort:
135122
🚀 Completed in 1m21.683329262s.
136123
```
137124
125+
### Build OpenFunction CLI
126+
127+
You can also use `make build` to build the OpenFunction CLI —— `ofn`.
128+
When the command is executed, you can find the artifact in the `. /dist` directory.
129+
Move it to the appropriate path in the `PATH` so that you can use it in your environment.
130+
131+
```shell
132+
~# make build
133+
go fmt ./...
134+
/opt/openfunction/fn-cli/bin/goimports -w cmd/ pkg/ testdata/
135+
go vet ./...
136+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X 'main.goversion=go version go1.16.7 linux/amd64'" \
137+
-o ./dist/fn_linux_amd64 cmd/main.go;
138+
```
139+
140+
###

0 commit comments

Comments
 (0)