diff --git a/docs/upgrading.rst b/docs/upgrading.rst
index ed455aa84813f19f37fcb034aed7e287afee32c6..85a2b50577efbc5fc49659c0bb31ad870aecd656 100644
--- a/docs/upgrading.rst
+++ b/docs/upgrading.rst
@@ -77,12 +77,12 @@ match what is described in :doc:`debian`:
 .. parsed-literal::
 
     # this assumes you want to upgrade to version "|version|"
-    export FUNKWALE_VERSION="|version|"
+    export FUNKWHALE_VERSION="|version|"
     cd /srv/funkwhale
 
     # download more recent API files
-    sudo -u funkwhale curl -L -o "api-|version|.zip" "https://code.eliotberriot.com/funkwhale/funkwhale/-/jobs/artifacts/$FUNKWALE_VERSION/download?job=build_api"
-    sudo -u funkwhale unzip "api-$FUNKWALE_VERSION.zip" -d extracted
+    sudo -u funkwhale curl -L -o "api-$FUNKWHALE_VERSION.zip" "https://code.eliotberriot.com/funkwhale/funkwhale/-/jobs/artifacts/$FUNKWHALE_VERSION/download?job=build_api"
+    sudo -u funkwhale unzip "api-$FUNKWHALE_VERSION.zip" -d extracted
     sudo -u funkwhale rm -rf api/ && mv extracted/api .
     sudo -u funkwhale rm -rf extracted