Remote terminal

1 min read

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

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


coder sh <env name> [<command [args...]>]

This executes a remote command on the environment; if no command is specified, the CLI opens up the environment's default shell.

For example, you can print "Hello World" in your Coder environment shell as follows:

coder sh my-env echo "hello world"
hello world

See an opportunity to improve our docs? Make an edit.