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
+1
-1
@@ -53,7 +53,7 @@ Coder — A tool for provisioning self-hosted development environments with Terr
|
||||
| [<code>schedule</code>](./schedule.md) | Schedule automated start and stop times for workspaces |
|
||||
| [<code>show</code>](./show.md) | Display details of a workspace's resources and agents |
|
||||
| [<code>speedtest</code>](./speedtest.md) | Run upload and download tests from your machine to a workspace |
|
||||
| [<code>ssh</code>](./ssh.md) | Start a shell into a workspace |
|
||||
| [<code>ssh</code>](./ssh.md) | Start a shell into a workspace or run a command |
|
||||
| [<code>start</code>](./start.md) | Start a workspace |
|
||||
| [<code>stat</code>](./stat.md) | Show resource usage for the current workspace. |
|
||||
| [<code>stop</code>](./stop.md) | Stop a workspace |
|
||||
|
||||
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