An open API service indexing awesome lists of open source software.

https://github.com/un4gt/flasky-cli

CLI to start Flask projects
https://github.com/un4gt/flasky-cli

Last synced: 3 months ago
JSON representation

CLI to start Flask projects

Awesome Lists containing this project

README

        

# Flask-CLI

From [Neoteroi/BlackSheep-CLI](https://github.com/Neoteroi/BlackSheep-CLI) .

🛠️ CLI to start [flask](https://github.com/pallets/flask) projects.

- Interactive project scaffolding
- Support for configuring more [`cookiecutter`](https://github.com/cookiecutter/cookiecutter) project templates

```bash
pip install flasky-cli
```

## Project templates

- [cookiecutter-flask](https://github.com/cookiecutter-flask/cookiecutter-flask)
- [cookiecutter-flask-minimal](https://github.com/candidtim/cookiecutter-flask-minimal)
- [cookiecutter-flask-skeleton](https://github.com/testdrivenio/cookiecutter-flask-skeleton)
- [cookiecutter-Flask-Foundation](https://github.com/JackStouffer/cookiecutter-Flask-Foundation)
- [Flask-API](https://github.com/un4gt/Flask-API)
- [Flask-MVC](https://github.com/un4gt/Flask-MVC)

## Creating a new project

```bash
flask-cli create
```

## Createing a new project with template name
```bash
flask-cli create --template
```

## Listing the project templates

```bash
flask-cli templates list
```

With details:

```bash
flask-cli templates details
```

## Cli mode
By default, the rich mode is active .
![rich](static/cli_rich_mode.png)
### Deactivate rich mode
#### Windows
```commandline
set NO_RICH=1
```
or
```commandline
set NO_RICH=True
```

#### Linux/macOS
```commandline
export NO_RICH=1
```
or
```commandline
export NO_RICH=True
```

![no_rich](static/no_rich_mode.png)

reactivate rich mode use `NO_RICH=0` or `NO_RICH=False`

## Thanks

- [Neoteroi](https://github.com/Neoteroi)
- [cookiecutter-flask](https://github.com/cookiecutter-flask)
- [candidtim](https://github.com/candidtim)
- [testdrivenio](https://github.com/testdrivenio)
- [JackStouffer](https://github.com/JackStouffer)