常用命令

projector --help
projector run --help
projector config --help
projector config add --help

#查看ide和ide详细版本
projector ide find pycharm
#查看已安装的ide
projector ide list


#查看可以安装的IDE列表
projector install   #选择yes查看可用的ide

#手动安装
projector install PyCharm_Community  

#修改配置
projector config list #查看配置列表
#修改指定的配置
projector config edit Pycharm

自动安装
projector --accept-license ide autoinstall  --config-name Pycharm --ide-name "PyCharm Community Edition 2021.3" --port 9998 --hostname 0.0.0.0 --password 密码 --ro-password 只读密码 


#运行
projector run Pycharm  --run-browser/--no-browser

URL参数

http://xxxx:9997/?notSecureWarning=false&token=xxx
notSecureWarning=false #关闭安全警告

projector基础命令

  • projector [OPTIONS] COMMAND [ARGS]
Options:
  --version                Show the version and exit.
  --config-directory PATH  Path to configuration directory
  --cache-directory PATH   Path to download cache directory
  --accept-license         Accept GPL v2 license without prompt.
Commands:
  autoinstall          Install selected IDE
  config               Configuration management commands
  defaults             Configure projector defaults
  find                 Find Projector-compatible IDE
  ide                  JetBrains IDE management commands
  install              Interactive install and configure selected IDE
  install-certificate  Install user certificate to given config
  run                  Run selected configuration
  self-update          Update projector-installer

projector ide install [ide_name]

Options:
  --auto-run / --no-auto-run    Run installed IDE.
  --run-browser / --no-browser  Auto run browser in WSL environment.
  --expert                      Expert mode - set all config parameters 专家模式设置所有配置参数

projector ide autoinstall —config-name name —ide-name name [—port listen_port] [—hostname hostname or address]

Options:
  --config-name TEXT     Name of run configuration.  [required]
  --ide-name TEXT        Name of IDE to install.  [required]
  --port INTEGER         Projector port
  --hostname TEXT        Projector hostname
  --use-separate-config  Use separate configuration directory for this
                         installation. This option allows running multiple IDE
                         instances.
  --password TEXT        RW access password  密码
  --ro-password TEXT     RO access password 只读密码

projector run config_name

Options:
  --run-browser / --no-browser  Auto run browser in WSL environment.

projector config [OPTIONS] COMMAND [ARGS]

Commands:
  add      Add new configuration
  edit     Change existing configuration
  list     List configurations
  rebuild  Regenerate all files related to given config
  remove   Remove configuration
  rename   Rename existing configuration
  run      Run selected configuration
  show     Show selected configuration details
  update   Update IDE in selected configuration