Flask-Script is a Python extension for Flask that provided support for writing external scripts, including running a development server, a customized Python shell, database setup scripts, and other command-line tasks. The project's last release was in September 2017 (version 2.0.6), and its maintainers are no longer actively developing new features, only merging pull requests. It has largely been superseded by Flask's built-in command-line interface (Flask CLI), which uses the Click library.
pip install Flask-ScriptVerified import paths — ran on the pinned version, not inferred.
This quickstart creates a simple 'manage.py' script that initializes a Flask app with a Flask-Script Manager and adds a custom 'hello' command. Run it using `python manage.py hello` to see 'Hello, world!' printed.
For new projects, avoid Flask-Script entirely. For existing projects, you must migrate to Flask's built-in CLI, which uses the Click library, or downgrade Flask to a compatible version (<2.0).
New projects should use Flask's built-in CLI (installed with Flask) or the Click library directly for command-line interfaces. Existing projects are strongly encouraged to migrate.
Always use `from flask_script import Manager` (or other components) directly.
Prefer using `flask run` from the Flask CLI for development, as it handles reloading and debugging more reliably.