Skip to content

Commit 0264a2a

Browse files
bobbybobby
authored andcommitted
docs: Remove --force flag from documentation
- Remove --force parameter from quick-start guide - Update CLAUDE.md to remove port cleanup references - Add multi-worker usage examples - Update command examples with worker configuration Made-with: Cursor
1 parent 52ef359 commit 0264a2a

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

CLAUDE.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ uv run simunet --workers 4
8383

8484
# Force single worker mode (enables auto-reload for development)
8585
NUM_WORKERS=1 uv run simunet
86-
87-
# Auto-cleanup occupied ports before starting
88-
uv run simunet --force
8986
```
9087

9188
### Testing

docs/quick-start-simunet.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,23 +121,25 @@ python -c "import netdriver.simunet; print('NetDriver Agent installed successful
121121
**Basic Usage**:
122122

123123
```bash
124-
# Start SimuNet service
124+
# Start SimuNet service (auto-detects CPU cores and sets workers)
125125
simunet
126126
127127
# Start without auto-reload (production)
128128
simunet --no-reload
129129
130-
# Force cleanup occupied ports before starting
131-
simunet --force
130+
# Start with specific number of workers
131+
simunet --workers 4 --no-reload
132132
```
133133

134134
**Custom Configuration**:
135135

136136
```bash
137+
# Use custom config file
137138
simunet --config /path/to/simunet.yml --port 8001
138-
```
139139
140-
**Note**: When ports are already occupied, use the `--force` flag to automatically clean up and restart, avoiding manual intervention.
140+
# Set workers via environment variable
141+
NUM_WORKERS=4 simunet --no-reload
142+
```
141143

142144
### Option 2: Install via Docker
143145

0 commit comments

Comments
 (0)