Skip to content

feat(cli): add -p/--publish and -v/--volume to create and run#207

Merged
DorianZheng merged 2 commits intoboxlite-ai:mainfrom
shayne-snap:feat/cli_run_port_forward
Feb 6, 2026
Merged

feat(cli): add -p/--publish and -v/--volume to create and run#207
DorianZheng merged 2 commits intoboxlite-ai:mainfrom
shayne-snap:feat/cli_run_port_forward

Conversation

@shayne-snap
Copy link
Copy Markdown
Contributor

  • Port publish (-p, --publish): spec [hostPort:]boxPort[/tcp|udp], applied to create and run
  • Volume (-v, --volume): bind mount (hostPath:boxPath[:ro]) and anonymous (boxPath), with Windows path handling (e.g. C:\data:/app/data)
  • create: to_box_options now takes GlobalFlags, returns Result; apply publish and volume
  • run: add PublishFlags and VolumeFlags to RunArgs, apply in BoxRunner with home for anonymous volumes
  • Tests: publish/volume success and invalid format for create and run; run volume tests for bind, :ro, and anonymous

- Port publish (-p, --publish): spec [hostPort:]boxPort[/tcp|udp], applied to create and run
- Volume (-v, --volume): bind mount (hostPath:boxPath[:ro]) and anonymous (boxPath), with Windows path handling (e.g. C:\data:/app/data)
- create: to_box_options now takes GlobalFlags, returns Result; apply publish and volume
- run: add PublishFlags and VolumeFlags to RunArgs, apply in BoxRunner with home for anonymous volumes
- Tests: publish/volume success and invalid format for create and run; run volume tests for bind, :ro, and anonymous

Co-authored-by: Cursor <[email protected]>
@shayne-snap shayne-snap force-pushed the feat/cli_run_port_forward branch from a261f79 to 3f866f3 Compare February 5, 2026 08:39
@shayne-snap shayne-snap marked this pull request as ready for review February 5, 2026 09:18
@DorianZheng DorianZheng merged commit 0dd8f0d into boxlite-ai:main Feb 6, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants