@@ -85,7 +85,7 @@ figdeck build slides.md | jq '.[] | .title'
8585
8686#### ` serve ` - WebSocket Server
8787
88- Starts a WebSocket server and waits for Plugin connections.
88+ Starts a WebSocket server and waits for Plugin connections. Watch mode is enabled by default.
8989
9090``` bash
9191figdeck serve < file> [options]
@@ -97,25 +97,31 @@ figdeck serve <file> [options]
9797
9898| Option | Description | Default |
9999| --------| -------------| ---------|
100- | ` --host <host> ` | WebSocket host | ` localhost ` |
100+ | ` --host <host> ` | WebSocket host | ` 127.0.0.1 ` |
101101| ` -p, --port <port> ` | WebSocket port | ` 4141 ` |
102- | ` -w, --watch ` | Watch file changes and auto-update | ` false ` |
102+ | ` --no-watch ` | Disable watching for file changes | - |
103+ | ` --allow-remote ` | Allow binding to non-loopback hosts | - |
104+ | ` --secret <secret> ` | Require authentication with this secret | - |
105+ | ` --no-auth ` | Disable authentication (not recommended for remote) | - |
103106| ` -h, --help ` | Show help | - |
104107
105108** Examples:**
106109
107110``` bash
108- # Basic usage
111+ # Basic usage (watch mode enabled by default)
109112figdeck serve slides.md
110113
111114# Specify port
112115figdeck serve slides.md --port 8080
113116
114- # Specify host (allow external connections)
115- figdeck serve slides.md --host 0.0.0.0
117+ # Disable watch mode
118+ figdeck serve slides.md --no-watch
116119
117- # File watch mode (auto-resend on changes)
118- figdeck serve slides.md -w
120+ # Allow external connections (requires --allow-remote)
121+ figdeck serve slides.md --host 0.0.0.0 --allow-remote
122+
123+ # Remote access with authentication
124+ figdeck serve slides.md --host 0.0.0.0 --allow-remote --secret my-secret
119125```
120126
121127## YAML Frontmatter
0 commit comments