Remote terminal

1 min read

Learn how to use the Coder CLI to access your workspace.

You can access the the shell of your Coder workspace from your local computer using the CLI's coder sh command.

Usage

coder sh <env 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 sh my-env echo "hello world"
hello world

Our docs are open source. See something wrong or unclear? Make an edit.