Solc Version Manager (SVM)#
Wake implements Solc Version Manager (SVM) to manage multiple installations of the solc compiler. Compiler executables for different versions are located in
$XDG_DATA_HOME/wake/compilers
. The default value of $XDG_DATA_HOME
is:
$HOME/.local/share
on Linux/MacOS,%LOCALAPPDATA%
on Windows.
The chosen version of solc is available under the wake-solc
executable which acts as a wrapper for the solc executable.
Example
Info
solc binaries are downloaded from the Solidity repository which limits the minimum version of solc that can be installed.
Commands#
All the listed commands are available under the wake svm
subcommand (e.g. wake svm list
).
Command | Description | Options |
---|---|---|
install |
Install the target version of solc. A version range may be provided which results into installation of the latest version matching the range (i.e. wake svm install 0.7 installs the version 0.7.6 ). |
--force reinstall the version even if already installed.--all install all versions matching the target range. |
list |
List installed versions of solc. | --all list all available versions instead. |
remove |
Remove the target installed version of solc. | --ignore-missing do not raise an exception if the target version is not installed. |
switch |
Change the selected version of solc to the target version. | |
use |
Change the selected version of solc to the target version and install it if not already installed. A version range may be provided resulting into installation of the latest version matching the range. | --force reinstall the version even if already installed. |