coder
is a command line utility for Coder Enterprise.
go get cdr.dev/coder-cli/cmd/coder
$ coder login https://my-coder-enterprise.com
coder sync
is useful in cases where you want to use an unsupported IDE with your Coder
Environment.
Ensure that rsync
is installed locally and in your environment.
$ coder sync ~/Projects/cdr/enterprise/. my-env:~/enterprise
You can access your environment's terminal with coder sh <env>
. You can also
execute a command in your environment with coder sh <env> [command] [args]
.
List all active environments for the user.
$ coder envs
You can retrieve the devurl of an environment.
$ coder url my-env 8080
- The
coder login
flow will not work when the CLI is ran from a different network than the browser. Issue
We decided to use rsync
because other solutions are extremely slow for the initial
sync.
Later, we may use mutagen
for a two-way sync alternative when
it supports custom transports.