These days there's also brightnessctl: https://github.com/Hummer12007/brightnessctl
It is available on many distributions, and works directly through sysfs (therefore does not need an xorg.conf file like xbacklight does for intel_backlight).
It sets up udev rules and requires the user to be in "video" group to control brightness.