← Tools

cpl self

update, switch or roll back the installed toolchain (`cpl self --help`); `cpl +<toolchain> <command>` runs one command with another, e.g. `cpl +edge run a.cp`

usage: cpl self <command>

commands:
  update [channel]     install the newest build of the default channel (or
                       the one named), keeping the current one for rollback
  channel [toolchain]  show or set the default: stable, edge, a version like
                       0.3.0, or a dated edge build like edge-2026-11-22
  rollback             go back to the toolchain used before the last update
                       or channel change; works offline
  install <toolchain>  download a toolchain now, for use offline later
  list                 list installed toolchains

`cpl +<toolchain> <command>` runs one command with another toolchain. The
toolchain a command uses is the first of: `+<toolchain>`, $CPL_VERSION,
`version = "..."` or `channel = "..."` in a cpl.toml in the current folder
or above, the default.

Generated from cpl 0.2.2 (dev, a0d0078e).