Skip to main content

alias

The proto alias <tool> <label> <version> (or proto a) command will define a custom alias that maps to a specific version for the provided tool. Aliases can be used anywhere a version is accepted.

$ proto alias node work 16.16

By default this will update the local .prototools file. Pass --global to update the global ~/.proto/.prototools file instead.

$ proto alias yarn berry 4 --global

Arguments

  • <tool> - Type of tool.
  • <label> - Name of the alias. Supports alphanumeric chars.
  • <version> - Version to map to the alias.

Options

  • --global - Pin the version globally, rather than in the current directory.