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: BackgroundUsage.md
+23-23Lines changed: 23 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,58 +26,58 @@ This document details the REST API endpoints, Service Principal authentication,
26
26
27
27
---
28
28
29
-
## CLI Tool (`bmw`)
29
+
## CLI Tool (`metal`)
30
30
31
31
BareMetalWeb includes a cross-platform CLI tool for managing entities from the command line. It compiles to native AOT binaries for Windows and Linux on x64, x86, ARM64, and ARM32.
32
32
33
33
### Installation
34
34
35
-
Download the binary for your platform from the GitHub Actions build artifacts (`bmw-all-platforms`). No runtime required — it's a self-contained native binary.
35
+
Download the binary for your platform from the GitHub Actions build artifacts (`metal-all-platforms`). No runtime required — it's a self-contained native binary.
36
36
37
37
### Connection
38
38
39
39
```bash
40
40
# Connect with API key
41
-
bmw connect https://your-site.azurewebsites.net your-api-key
41
+
metal connect https://your-site.azurewebsites.net your-api-key
42
42
43
43
# Or connect then login via device code flow (opens browser)
44
-
bmw connect https://your-site.azurewebsites.net
45
-
bmw login
44
+
metal connect https://your-site.azurewebsites.net
45
+
metal login
46
46
47
47
# Or login via device code (headless/SSH — displays code to enter manually)
48
-
bmw login --outofband
48
+
metal login --outofband
49
49
50
50
# Or login directly with credentials
51
-
bmw login username password
51
+
metal login username password
52
52
53
53
# Show current config
54
-
bmw config
54
+
metal config
55
55
```
56
56
57
-
Configuration is stored in `~/.bmw/config.json`, session cookies in `~/.bmw/cookies`.
57
+
Configuration is stored in `~/.metal/config.json`, session cookies in `~/.metal/cookies`.
58
58
59
59
### Commands
60
60
61
61
| Command | Description |
62
62
|---------|-------------|
63
-
|`bmw connect <url> [api-key]`| Set server URL and optional API key |
64
-
|`bmw login`| Login via device code (opens browser) |
65
-
|`bmw login --outofband`| Login via device code (no browser, shows code) |
66
-
|`bmw login <user> <pass>`| Login with username/password |
67
-
|`bmw config`| Show current configuration |
68
-
|`bmw types`| List available entity types (via `/api/_meta`) |
69
-
|`bmw list <type>`| List all entities of a type |
70
-
|`bmw get <type> <id>`| Get a single entity |
71
-
|`bmw create <type> k=v [k=v..]`| Create a new entity |
0 commit comments