# Dfx 0.20.0 is promoted

**URL:** <https://forum.dfinity.org/t/dfx-0-20-0-is-promoted/30471>\
**Category:** Developers\
**Created:** [May 7, 2024, 11:01pm UTC](https://forum.dfinity.org/t/dfx-0-20-0-is-promoted/30471 "2024-05-07T23:01:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfx-json](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/dfx-json/32/4784_2.png) [@dfx-json](https://forum.dfinity.org/u/dfx-json)\
**Post date:** [May 7, 2024, 11:01pm UTC](https://forum.dfinity.org/t/dfx-0-20-0-is-promoted/30471/1 "2024-05-07T23:01:42Z")

</div>

# dfx 0.20.0 is promoted! You can read the release notes [here](https://github.com/dfinity/sdk/releases/tag/0.20.0).

Install dfx 0.20.0 with dfxvm:

```auto
dfxvm install 0.20.0
dfxvm default 0.20.0

```

This release brings several fixes and enhancements. Most notably, dfx now ships with a `completion` command, which generates shell completion scripts for `bash` , `elvish` , `fish` , `zsh` , or PowerShell.

Essentially, you can get “autocompletion” of dfx commands with a few extra steps. Example steps (strictly for `zsh`) below:

1. Open `~/.zshrc` for editing, e.g.

```auto
vi ~/.zshrc

```

1. Paste the commands below to the bottom of `.zshrc`

```auto
autoload -Uz compinit
compinit

```

1. Restart your terminal

2. Run the following:

```auto
source <(dfx completion zsh)

```

1. type `dfx` then tab and you should see autocomplete options populate

Please try it out and let us know if you run into any issues.

---

<div class="post-metadata">

**Author:** ![asjn3e](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/asjn3e/32/22792_2.png) [@asjn3e](https://forum.dfinity.org/u/asjn3e)\
**Post date:** [May 8, 2024, 6:17am UTC](https://forum.dfinity.org/t/dfx-0-20-0-is-promoted/30471/2 "2024-05-08T06:17:06Z")

</div>

That’s the ultimate efficiency booster, auto completion was much needed

---

<div class="post-metadata">

**Author:** ![anon98822045](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@anon98822045](https://forum.dfinity.org/u/anon98822045)\
**Post date:** [May 8, 2024, 8:08am UTC](https://forum.dfinity.org/t/dfx-0-20-0-is-promoted/30471/3 "2024-05-08T08:08:25Z")

</div>

What base path is used for commands now? This is what we had before…

```auto
            "build": "bash -c './backend/scripts/app/build.sh test'",

```

and that doesn’t work any more.

Is there a way to specify the directory where dfx.json lives? I can’t really use ~ because everybody stores the repo in different places.

---

<div class="post-metadata">

**Author:** ![dfx-json](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/dfx-json/32/4784_2.png) [@dfx-json](https://forum.dfinity.org/u/dfx-json)\
**Post date:** [May 8, 2024, 8:27pm UTC](https://forum.dfinity.org/t/dfx-0-20-0-is-promoted/30471/4 "2024-05-08T20:27:14Z")

</div>

I’m not sure that dfx applies a base path to any commands. `dfx.json` is project-specific – dfx only reads that file in the context of a project directory. `dfx` itself lives somewhere like `/Users/xxx/Library/Application Support/org.dfinity.dfx/bin/dfx` (you can see by running `which dfx`)

where does that script run? in a github action?
