Command Structure
Authentication Commands
login
Login to Rexec with interactive browser flow or API token.Login Options
Login Options
Interactive Login (Browser)Opens browser for OAuth login. Starts local callback server on port 9876.Token LoginLogin with API token from dashboard settings.Manual Login
If browser flow fails, follow manual instructions:
- Visit https://rexec.pipeops.io/settings
- Generate API token
- Use
rexec login --token YOUR_TOKEN
logout
Logout and clear stored credentials.whoami
Show current user information and authentication status.Terminal Management Commands
ls / list
List all your terminals with status and details.create
Create a new terminal container.Create Options
Create Options
| Flag | Alias | Description | Default |
|---|---|---|---|
--name | -n | Terminal name | terminal-{timestamp} |
--image | -i | Docker image | ubuntu |
--role | -r | User role | default |
--memory | -m | Memory limit (e.g., 512m, 2g) | 512m |
--cpu | -c | CPU limit (e.g., 0.5, 1, 750m) | 0.5 |
ubuntu- Ubuntu 22.04 LTSdebian- Debian Bookwormarch- Arch Linuxpython- Python 3.11node- Node.js 20 LTSgolang- Go 1.21- Custom image: specify full Docker reference (e.g.,
nginx:alpine)
default- Basic userdeveloper- Development toolsdevops- DevOps/infrastructure toolsadmin- Full admin access
connect / ssh
Connect to a terminal with interactive shell.Connect Details
Connect Details
Terminal ID
Use short ID prefix (shown in
rexec ls). The CLI automatically resolves:abc123→ full container IDagent:xyz→ agent terminal
- Press
Ctrl+]to disconnect - Press
Ctrl+Ctwice within 1 second to disconnect - Single
Ctrl+Cis forwarded to the remote terminal
- Full PTY with terminal resizing
- Color support and ANSI codes
- Auto-handles WebSocket connection
- Supports both cloud containers and agent machines
start
Start a stopped terminal.stop
Stop a running terminal.rm / delete
Delete a terminal permanently (requires confirmation).Snippets & Automation
snippets
List and manage code snippets and command macros.run
Run a snippet on a terminal.Run Options
Run Options
| Flag | Alias | Description |
|---|---|---|
--terminal | -t | Target terminal ID |
--terminal, the CLI prompts you to select from available terminals.Snippet Sources:- Personal snippets from your library
- Public snippets from marketplace
Agent Mode Commands
agent register
Register the current machine as a Rexec terminal.Agent Register Options
Agent Register Options
| Flag | Alias | Description | Default |
|---|---|---|---|
--name | -n | Agent name | System hostname |
--description | -d | Agent description | Empty |
~/.rexec/agent.jsonagent start
Start the agent to connect machine to Rexec.agent stop
Stop the running agent.agent status
Show agent registration and connection status.For production agent deployment, use the standalone
rexec-agent binary. See Agent Documentation.Utility Commands
dashboard / ui / -i / tui
Launch interactive TUI dashboard.config
View or modify CLI configuration.version
Show CLI version and platform information.help
Show help message with all commands.Global Options
These environment variables work with all commands:Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 1 | Not authenticated (run rexec login) |
| 1 | Invalid command or arguments |
Tips & Tricks
Use Short Terminal IDs
Use Short Terminal IDs
You don’t need the full terminal ID. Use the first 6-8 characters:
Quick Connect from Dashboard
Quick Connect from Dashboard
Use number keys 1-9 in the TUI to quickly connect to terminals:
Chain Commands with Shell
Chain Commands with Shell
Use shell operators for workflows: