Use Flask's Click CLI with the app factory pattern Use Flask's Click CLI with the app factory pattern flask flask