dfx cache
Use the dfx cache command with flags and subcommands to manage the dfx version cache.
The basic syntax for running dfx cache commands is:
dfx cache [subcommand] [flag]
Depending on the dfx cache subcommand you specify, additional arguments, options, and flags might apply.
For reference information and examples that illustrate using dfx cache commands, select an appropriate command.
| Command | Description |
|---|---|
Deletes the specified version of |
|
|
Displays usage information message for a specified subcommand. |
Installs the specified version of |
|
Lists the versions of |
|
Show the path of the cache used by this version of the |
To view usage information for a specific subcommand, specify the subcommand and the --help flag.
For example, to see usage information for dfx cache delete, you can run the following command:
dfx cache delete --help
dfx cache delete
Use the dfx cache delete command to delete a specified version of dfx from the version cache on the local computer.
Flags
You can use the following optional flags with the dfx cache delete command.
| Flag | Description |
|---|---|
|
Displays usage information. |
|
Displays version information. |
dfx cache install
dfx cache list
Use the dfx cache list command to list the dfx versions you have currently installed and used in projects.
If you have multiple versions of dfx installed, the cache list displays an asterisk (*) to indicate the currently active version.
Flags
You can use the following optional flags with the dfx cache list command.
| Flag | Description |
|---|---|
|
Displays usage information. |
|
Displays version information. |
Examples
You can use the dfx cache list command to list the dfx versions you have currently installed and used in projects.
For example, you can run the following command to list versions of dfx found in the cache:
dfx cache list
This command displays the list of dfx versions found similar to the following:
0.6.4 *
0.6.3
0.6.0