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: README.md
+16-7Lines changed: 16 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,20 +3,29 @@
3
3
Backend services and tools for processing and managing RFDs
4
4
5
5
## RFD CLI
6
-
7
6
### Getting Started
8
-
9
7
1. Download the latest release of `rfd-cli` or run `cargo run -p rfd-cli`
10
8
2. Configure the API host with `rfd-cli config set host https://rfd-api.shared.oxide.computer`
9
+
3. Choose an authentication mode based on the kind of session you want, either a short-term session token (id) or a long-term api token (token).
11
10
12
-
Choose an authentication mode based on the kind of session you want, either a short-term session
13
-
token (id) or a long-term api token (token).
11
+
#### Authenticate with short lived session
12
+
To log in with a short lived session run:
13
+
```sh
14
+
rfd-cli auth login google
15
+
```
14
16
15
-
3. Authenticate against the API with `rfd-cli auth login google` via a session
17
+
#### Authenticate with long lived token
18
+
To generate and log in with a long lived token run:
19
+
```sh
20
+
rfd-cli auth login google -m token
21
+
```
16
22
17
-
**OR**
23
+
### Formatting
24
+
Results can be output either as machine (JSON) or human (tab) readable formats. A format can be specified per call via the `--format` argument. To persist this setting and apply it to call calls, it can be set in your config file via:
18
25
19
-
3. Authenticate against the API with `rfd-cli auth login google -m token` via a token
0 commit comments