Dfx 0.28.0 release

Hello everyone, dfx 0.28.0-beta.1 is available for testing. You can read the release notes here.

To switch to the beta release, use dfxvm default 0.28.0-beta.1.

If no bugs show up we plan to cut the full release next week.

Some important highlights for this release:

  • A new version of motoko.
  • We’re now building dfx for darwin/arm64.

IMPORTANT: dfxvm will still install the darwin/x86 version of dfx.

If you want to use the arm version you’ll need to download it from the release page and replace the dfx in this path echo "$(dfx cache show)".

We’re planing a release of dfxvm that will know to install the native dfx next.

6 Likes

Hello everyone,

dfxvm 1.0.1 has been released - Release 1.0.1 - 2025-07-02 · dfinity/dfxvm · GitHub
This is the version that supports installing the darwin/arm64 version of dfx.

You can update it by running:
dfxvm self update

Also - dfx 0.28.0-beta.2 is available for manual installation and testing.
dfxvm install 0.28.0-beta.2
see also release notes: Release 0.28.0-beta.2 · dfinity/sdk · GitHub

Assuming you’ve upgraded dfxvm before installing the beta release of dfx, you can check if you’re using the native apple silicon version of dfx by running:

###
###
### *After* running `dfx start` at least once ###
###
###

file "$(dfx cache show)/dfx"

You should see output like this:

❯ file "$(dfx cache show)/dfx"
/Users/raymond/.cache/dfinity/versions/0.28.0-beta.1/dfx: Mach-O 64-bit executable arm64

The last part will say arm64 for apple silicon or x86_64 for intel.

It seems that the cache directory was changed, but dfx cache show returns old directory

$ dfx -V
dfx 0.28.0-beta.2

$ file "$(dfx cache show)/dfx"
cannot open `/Users/zen/.cache/dfinity/versions/0.28.0-beta.2/dfx' (No such file or directory)

$ dfx cache show
/Users/zen/.cache/dfinity/versions/0.28.0-beta.2

$ where dfx
/Users/zen/Library/Application Support/org.dfinity.dfx/bin/dfx

$ file "/Users/zen/Library/Application Support/org.dfinity.dfx/bin/dfx"
/Users/zen/Library/Application Support/org.dfinity.dfx/bin/dfx: Mach-O 64-bit executable arm64

@ZenVoich you might need to run a command like dfx start for the cache to get populated.

(which dfx is actually a hard link to dfxvm so it’s misleading - when you call dfx you’re actually calling dfxvm which unpacks all the necessary stuff in your cache then calls “the real dfx”)

Yes, it helped, thank you

THIS IS ALL FIXED NOW - an updated release was made

Sorry - I had to temporarily set 1.0.1 of dfxvm to pre-release because the linux binaries for this release were built against a too recent version of ubuntu.

We’ll make an updated release shortly.

The release has been promoted: Dfx 0.28.0 promoted