Skip to main content

dfxvm-init

Reference

When invoked as dfxvm-init, dfxvm performs one-time installation tasks.

By default, installs the latest version of dfx, and gives you an opportunity to customize the installation.

Usage

dfxvm-init [--dfx-version <version>] [--yes]

Options

OptionDescription
--dfx-version <version>The version of dfx to install. Defaults to the latest dfx version
--yesSkip confirmation prompt
--no-modify-pathDo not alter profile scripts to modify the PATH environment variable

Examples

Install dfxvm and the latest version of dfx, with an opportunity to customize the installation

dfxvm-init

Install dfxvm and dfx 0.14.4, with an opportunity to customize the installation

dfxvm-init --dfx-version 0.14.4

Install dfxvm and the latest version of dfx without prompting for confirmation

dfxvm-init --yes