Skip to content

Commit 76b0350

Browse files
committed
Update README.md.
1 parent 9979b7d commit 76b0350

1 file changed

Lines changed: 25 additions & 10 deletions

File tree

README.md

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ brew install valar/tap/valar
1313
### Initial setup
1414

1515
```bash
16-
# Add the Valar API endpoint
17-
valar config endpoint add default --token=[your-api-token] --url=https://api.valar.dev/v2
18-
# Add a new project context
19-
valar config context add default --project=[your-project] --endpoint=default
20-
# Set the configured context as the default one
21-
valar config context use default
16+
valar config init
17+
```
18+
19+
The interactive wizard will prompt for your API endpoint, token, and project. For non-interactive usage (e.g. in CI), pass all values as flags:
20+
21+
```bash
22+
valar config init --token=[your-api-token] --project=[your-project]
2223
```
2324

2425
## Usage
@@ -27,6 +28,12 @@ By default, Valar uses the default valarconfig file in `$HOME/.valar/config`. If
2728

2829
### Configuration
2930

31+
#### Initialize configuration
32+
33+
```bash
34+
valar config init [--token token] [--project project] [--url url] [--name name] [--force]
35+
```
36+
3037
#### Dump the current configuration as YAML
3138

3239
```bash
@@ -118,16 +125,16 @@ valar service list
118125
valar service logs [--follow] [--tail] [--skip n] [service]
119126
```
120127
121-
#### Enable a service [not implemented]
128+
#### Enable a service
122129
123130
```bash
124-
valar service enable [service]
131+
valar service enable [--service service]
125132
```
126133
127-
#### Disable a service [not implemented]
134+
#### Disable a service
128135
129136
```bash
130-
valar service disable [service]
137+
valar service disable [--service service]
131138
```
132139
133140
#### Listing all deployments of a service
@@ -259,6 +266,14 @@ valar builds watch [optional buildid]
259266
valar builds status [--exit] [buildid]
260267
```
261268
269+
### Identity
270+
271+
#### Show the currently authenticated user
272+
273+
```bash
274+
valar whoami
275+
```
276+
262277
### Permissions
263278
264279
#### View permissions

0 commit comments

Comments
 (0)