diff --git a/install.sh b/install.sh index bddfec5ca5c0..a7523eb5097e 100755 --- a/install.sh +++ b/install.sh @@ -7,7 +7,7 @@ set -eu usage() { arg0="$0" if [ "$0" = sh ]; then - arg0="curl -fsSL https://code-server.dev/install.sh | sh -s -- [user@host]" + arg0="curl -fsSL https://code-server.dev/install.sh | sh -s --" else not_curl_usage="The latest script is available at https://code-server.dev/install.sh " @@ -17,27 +17,44 @@ usage() { Installs code-server for Linux, macOS and FreeBSD. It tries to use the system package manager if possible. After successful installation it explains how to start using code-server. + +Pass --start to startup code-server immediately, print the URL it can be +accessed at and the initial password. Then the script will tail code-server's logs. + +Pass in user@host to install code-server on user@host over ssh. +Pass --start to forward the code-server port so that you can immediately access it. + +If you rerun the script, code-server will be updated only as required. ${not_curl_usage-} Usage: - $arg0 [--dry-run] [--version X.X.X] [--method detect] [--prefix ~/.local] [user@host] + $arg0 [--dry-run] [--version X.X.X] [--method detect] [--prefix ~/.local] [--start] [user@host] --dry-run Echo the commands for the install process without running them. + --version X.X.X Install a specific version instead of the latest. + --method [detect | standalone] Choose the installation method. Defaults to detect. - detect detects the system package manager and tries to use it. Full reference on the process is further below. - standalone installs a standalone release archive into ~/.local Add ~/.local/bin to your \$PATH to use it. + --prefix