
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
flaskion-cli
Advanced tools
Flaskion is a lightweight MVC micro-framework for Flask, providing developers with a structured foundation for scalable, maintainable applications. Inspired by Laravel, Flaskion introduces clean architecture, modular scaffolding, and a developer-first CLI to streamline your Flask workflow.
✅ MVC Architecture – Clean separation of controllers, models, and templates
✅ Built-in CLI – Scaffold full resources, controllers, models, and authentication with ease
✅ Web & API Routing – Clean route structure split between HTML and JSON endpoints
✅ DB Choice at Setup – Use SQLite, MySQL, or Postgres with built-in .env generation
✅ Flask-Migrate Ready – Migrations are set up and ready to run on first build
✅ Authentication Scaffolding – Generate full auth (login/register/logout/dashboard) with one command
flaskion/
├── app/
│ ├── __init__.py # Application factory
│ ├── routes/ # Web + API routes
│ │ ├── web_routes.py
│ │ └── api_routes.py
│ ├── controllers/ # View logic
│ ├── models/ # SQLAlchemy models
│ ├── schemas/ # Marshmallow schemas
│ ├── templates/ # Jinja2 templates
│ ├── static/ # CSS, JS, images
│ └── config.py # App configuration
├── migrations/ # Auto-generated with Flask-Migrate
├── run.py # Entry point
├── requirements.txt # Dependencies
├── .env.example # Example environment file
└── README.md # This doc
pipx install flaskion-cli
# or
pip install flaskion-cli
flaskion make:new myproject --db=sqlite # Or --db=mysql / --db=postgres
cd myproject
source venv/bin/activate
| Command | Description |
|---|---|
flaskion make:new <name> | Create a new project scaffold |
flaskion make:model | Create a SQLAlchemy model |
flaskion make:schema | Create a Marshmallow schema |
flaskion make:controller | Create a controller with CRUD methods |
flaskion make:resource | Generate model + controller + schema + routes |
flaskion make:auth | Generate full login/register/logout system |
Add
--apitomake:resourcefor API route generation instead of web views.
Flaskion separates routes for HTML views and API endpoints:
app/routes/web_routes.pyapp/routes/api_routes.pyBoth are registered in app/__init__.py:
from app.routes.api_routes import api_routes
from app.routes.web_routes import web_routes
def register_routes(app):
app.register_blueprint(api_routes)
app.register_blueprint(web_routes)
Flaskion uses Flask-Migrate out of the box:
flask db init
flask db migrate -m "Initial"
flask db upgrade
Generate full login/register/logout and dashboard flow:
flaskion make:auth
templates/auth//login, /register, /dashboard, and /logoutflask run
Then visit: http://127.0.0.1:5000
Coming soon at: https://flaskion.dev (in progress)
FAQs
A CLI tool for Flaskion — a lightweight MVC micro-framework built on Flask
We found that flaskion-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.