This script must be run from CLI.