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

Full Reference

For a full list of the Coder CLI commands available, see the reference pages.

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