We use cookies to make your experience better.
Learn how to use the Coder CLI to access your workspace.
You can access the shell of your Coder workspace from your local computer using
the coder ssh
command.
coder ssh <workspace name> [<command [args...]>]
This executes a remote command on the workspace; if no command is specified, the CLI opens up the workspace's default shell.
For example, you can print "Hello World" in your Coder workspace shell as follows:
$ coder ssh my-workspace echo "hello world"
hello world
Our docs are open source. See something wrong or unclear? Make an edit.