The documentation for org-agenda-custom-commands at https://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.html uses
org-agenda-ndays
in the customization instead of
org-agenda-span
org-agenda-ndays
is deprecated in org-version 9.