Logo of Flask-Commands

Commands¶

This section is written as a small training book: start at the top, follow along, and try the commands as you go.

Begin with Concepts if you like knowing what will happen before you press enter.

Commands

  • Cheat Sheet
    • Naming conventions
    • Common patterns
  • Concepts
    • Dot notation
    • Generator flags
  • Scaffolding a New Project (flask new)
    • Database prompt
    • What you get
  • Generating Views (flask make:view)
    • Basic Example (No Dots)
    • Adding a Route and Controller (Explicit)
    • Adding a Route and Controller (Generators)
    • Nesting Views
    • Adding models (and why REST shows up here)
  • RESTful actions
  • Nested resources
    • Created files
    • Updated files
    • Nesting Models
  • Generating Controllers (flask make:controller)
    • A simple controller
    • A Controller with RESTful actions (–crud)
    • A controller with a Model (-m / –model)
    • Nested Controllers with –crud
    • Wrap-up
  • Generating Models (flask make:model)
    • Basic Example
    • Model Contents
    • CRUD Scaffolding (Optional)
    • Wrap-up

Logo of Flask-Commands

Flask-Commands

A set of command line tools that help you scaffold out your flask application quickly.

Navigation

Contents:

  • Introduction
  • Commands
    • Cheat Sheet
    • Concepts
    • Scaffolding a New Project (flask new)
    • Generating Views (flask make:view)
    • RESTful actions
    • Nested resources
    • Generating Controllers (flask make:controller)
    • Generating Models (flask make:model)
  • Changelog

  • GitHub
  • PyPI

Related Topics

  • Documentation overview
    • Previous: Introduction
    • Next: Cheat Sheet
©2026, Drew Butcher. | Powered by Sphinx 8.2.3 & Alabaster 1.0.0 | Page source
Fork me on GitHub