mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add one shot commands to the coder ssh command (#17779)
Closes #2154 > [!WARNING] > The tests in this PR were co-authored by AI
This commit is contained in:
Generated
+6
-2
@@ -1,18 +1,22 @@
|
||||
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
||||
# ssh
|
||||
|
||||
Start a shell into a workspace
|
||||
Start a shell into a workspace or run a command
|
||||
|
||||
## Usage
|
||||
|
||||
```console
|
||||
coder ssh [flags] <workspace>
|
||||
coder ssh [flags] <workspace> [command]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
```console
|
||||
This command does not have full parity with the standard SSH command. For users who need the full functionality of SSH, create an ssh configuration with `coder config-ssh`.
|
||||
|
||||
- Use `--` to separate and pass flags directly to the command executed via SSH.:
|
||||
|
||||
$ coder ssh <workspace> -- ls -la
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
Reference in New Issue
Block a user