You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: devel/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ Once logged in, please refer to our [Getting Started guide](https://docs.chainlo
73
73
## Building CLI
74
74
### Updating default values
75
75
76
-
By default chainloop command line tool uses the following values for the Control Plane and Artifacts CAS API endpoints:
76
+
By default the Chainloop command line tool uses the following values for the Control Plane and Artifacts CAS API endpoints:
77
77
78
78
- Artifacts CAS: api.cas.chainloop.dev:443
79
79
- Control Plane API: api.cp.chainloop.dev:443
@@ -96,14 +96,14 @@ cd chainloop
96
96
go build app/cli/main.go
97
97
```
98
98
99
-
**Example 2** Set the default value for the Artifacts CAS endpoint. We will use `ldflags` and the `defaultCasApi` variable. We assume in this example that we have our instance of CAS running at the following location: `api.cas.acme.com:443`.
99
+
**Example 2** Set the default value for the Artifacts CAS endpoint. We will use `ldflags` and the `defaultCasAPI` variable. We assume in this example that we have our instance of CAS running at the following location: `api.cas.acme.com:443`.
100
100
101
101
```
102
-
go build -ldflags "-X 'github.com/chainloop-dev/chainloop/app/cli/cmd.defaultCasApi=api.cas.acme.com:443'" app/cli/main.go
102
+
go build -ldflags "-X 'github.com/chainloop-dev/chainloop/app/cli/cmd.defaultCasAPI=api.cas.acme.com:443'" app/cli/main.go
103
103
```
104
104
105
-
**Example 3** Set both the Artifacts CAS and Control Plane endpoints:
105
+
**Example 3** Set both the Artifacts CAS and Control Plane endpoints. We use two variables here: `defaultCasAPI` and `defaultCpAPI`.
106
106
107
107
```
108
-
go build -ldflags "-X 'github.com/chainloop-dev/chainloop/app/cli/cmd.defaultCasApi=api.cas.acme.com:443' -X 'github.com/chainloop-dev/chainloop/app/cli/cmd.defaultCpApi=api.cp.acme.com:443'" app/cli/main.go
108
+
go build -ldflags "-X 'github.com/chainloop-dev/chainloop/app/cli/cmd.defaultCasAPI=api.cas.acme.com:443' -X 'github.com/chainloop-dev/chainloop/app/cli/cmd.defaultCpAPI=api.cp.acme.com:443'" app/cli/main.go
0 commit comments