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
+54
Original file line number
Diff line number
Diff line change
@@ -83,3 +83,57 @@ source ~/.zshrc
83
83
### 3. Login to the CLI
84
84
85
85
Run `bootdev login` to authenticate with your Boot.dev account. After authenticating, you're ready to go!
86
+
87
+
## Configuration
88
+
89
+
The Boot.dev CLI offers a couple of configuration options that are stored in a config file (default is `~/.bootdev.yaml`).
90
+
91
+
All commands have `-h`/`--help` flags if you want to see available options on the command line.
92
+
93
+
### Base URL for HTTP tests
94
+
95
+
For lessons with HTTP tests, you can configure the CLI with a base URL that overrides any lesson's default. A common use case for that is when you want to run your server on a port other than the one specified in the lesson.
96
+
97
+
- To set the base URL run:
98
+
99
+
```bash
100
+
bootdev configure base_url <url>
101
+
```
102
+
103
+
*Make sure you include the protocol scheme (`http://`) in the URL.*
104
+
105
+
- To get the current base URL (the default is an empty string), run:
106
+
107
+
```bash
108
+
bootdev configure base_url
109
+
```
110
+
111
+
- To reset the base URL and revert to using the lessons' defaults, run:
112
+
113
+
```bash
114
+
bootdev configure base_url --reset
115
+
```
116
+
117
+
### CLI colors
118
+
119
+
The CLI text output is rendered with extra colors: green (e.g., success messages), red (e.g., error messages), and gray (e.g., secondary text).
0 commit comments