@@ -6,7 +6,6 @@ A beautiful, interactive CLI for managing Runloop devboxes built with Ink and Ty
66
77- 🎨 Beautiful terminal UI with colors and gradients
88- ⚡ Fast and responsive with pagination
9- - 🔐 Secure API key management
109- 📦 Manage devboxes, snapshots, and blueprints
1110- 🚀 Execute commands in devboxes
1211- 📤 Upload files to devboxes
@@ -33,90 +32,31 @@ npm link
3332
3433## Setup
3534
36- Configure your API key using either method:
37-
38- ### Option 1: Environment Variable (Recommended for CI/CD)
35+ Configure your API key:
3936
4037``` bash
4138export RUNLOOP_API_KEY=your_api_key_here
4239```
4340
44- ### Option 2: Interactive Setup
45-
46- ``` bash
47- rli auth
48- ```
49-
5041Get your API key from [ https://runloop.ai/settings ] ( https://runloop.ai/settings )
5142
5243## Usage
5344
54- ### Authentication
55-
56- ``` bash
57- # Interactive setup (stores API key locally)
58- rli auth
59-
60- # Or use environment variable
61- export RUNLOOP_API_KEY=your_api_key_here
62- ```
63-
64- The CLI will automatically use ` RUNLOOP_API_KEY ` if set, otherwise it will use the stored configuration.
65-
6645### Theme Configuration
6746
68- The CLI supports both light and dark terminal themes with automatic detection :
47+ The CLI supports both light and dark terminal themes. Set the theme via environment variable :
6948
7049``` bash
71- # Interactive theme selector with live preview
72- rli config theme
73-
74- # Or set theme directly
75- rli config theme auto # Auto-detect terminal background (default)
76- rli config theme light # Force light mode (dark text on light background)
77- rli config theme dark # Force dark mode (light text on dark background)
78-
79- # Or use environment variable
80- export RUNLOOP_THEME=light
50+ export RUNLOOP_THEME=light # Force light mode (dark text on light background)
51+ export RUNLOOP_THEME=dark # Force dark mode (light text on dark background)
8152```
8253
83- ** Interactive Mode:**
84-
85- - When you run ` rli config theme ` without arguments, you get an interactive selector
86- - Use arrow keys to navigate between auto/light/dark options
87- - See live preview of colors as you navigate
88- - Press Enter to save, Esc to cancel
89-
9054** How it works:**
9155
92- - ** auto** (default): Uses dark mode by default (theme detection is disabled to prevent terminal flashing)
56+ - ** auto** (default): Detects correct theme by default
9357- ** light** : Optimized for light-themed terminals (uses dark text colors)
9458- ** dark** : Optimized for dark-themed terminals (uses light text colors)
9559
96- ** Terminal Compatibility:**
97-
98- - Works with all modern terminals (iTerm2, Terminal.app, VS Code integrated terminal, tmux)
99- - The CLI defaults to dark mode for the best experience
100- - You can manually set light or dark mode based on your terminal theme
101-
102- ** Note on Auto-Detection:**
103-
104- - Auto theme detection is ** disabled by default** to prevent screen flashing
105- - To enable it, set ` RUNLOOP_ENABLE_THEME_DETECTION=1 `
106- - If you use a light terminal, we recommend setting: ` rli config theme light `
107- - The result is cached, so subsequent runs are instant (no flashing!)
108- - If you change your terminal theme, you can re-detect by running:
109-
110- ``` bash
111- rli config theme auto
112- ```
113- - To manually set your theme without detection:
114- ``` bash
115- export RUNLOOP_THEME=dark # or light
116- # Or disable auto-detection entirely:
117- export RUNLOOP_DISABLE_THEME_DETECTION=1
118- ```
119-
12060### Devbox Commands
12161
12262``` bash
0 commit comments