Skip to content

Conversation

@jinendrajj
Copy link

@jinendrajj jinendrajj commented Nov 26, 2025

Add brev exec Command for Remote Workspace Execution
This PR introduces a new brev exec command that enables users to execute scripts or commands on remote workspaces without manually setting up SSH connections.

Features

  • Script Execution: Upload and run local shell scripts on workspaces
  • Direct Commands: Execute single commands remotely
  • Async Mode: Fire-and-forget execution with --async flag
  • Custom Working Directory: Specify execution directory with --dir
  • Robust Connection Handling: Automatic retries for SSH and SCP operations
  • Progress Indicators: Visual feedback with spinners during connection setup

Usage

brev exec <workspace> --script ./setup.sh
brev exec <workspace> --command "ls -la"
brev exec <workspace> --script ./deploy.sh --async
brev exec <workspace> --command "npm start" --dir /app

Implementation

  • Automatic SSH connection management with retry logic
  • Secure file transfer via SCP with auto-cleanup
  • Real-time output streaming for synchronous execution

@jinendrajj jinendrajj changed the title Validate single node setup Add brev exec command for remote script and command execution Nov 26, 2025
@harshsharmanv harshsharmanv marked this pull request as ready for review December 2, 2025 15:10
@harshsharmanv harshsharmanv requested a review from a team as a code owner December 2, 2025 15:10
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.

3 participants