FastHTML CLI
Fastest way to scaffold FastHTML apps!
Usage
To create a new FastHTML application, use the fh-init command. Make sure uv is installed before running uvx:
uvx fh-init [OPTIONS] NAME
Arguments
NAME: The name of your FastHTML application (required).
Options
--template, -p TEXT: The name of the FastHTML template to use (default:base).--reload, -r: Enable live reload.--pico, -p: Enable Pico CSS (default:True).--uv / --no-uv: Use uv to manage project dependencies (default:uv).--tailwind, -t: Enable Tailwind CSS.--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell.--help: Show the help message and exit.
Example
uvx fh-init my_awesome_app --reload --tailwind
This command will create a new FastHTML application named my_awesome_app with live reload and Tailwind CSS enabled.
Then to run the FastHTML app:
cd my_awesome_app
uv run main.py
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fh_init-0.1.4.tar.gz
(5.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fh_init-0.1.4.tar.gz.
File metadata
- Download URL: fh_init-0.1.4.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
217c404ad7d019745b3aa93e9517e2df5e351376b1eb4b976c88487583c57fa4
|
|
| MD5 |
7e7fd6c8618fffdda76d4751ee9c0962
|
|
| BLAKE2b-256 |
7ed5f8071dc6b8b5dd43b72d8f6f4bdfe47c455e0fa3bd563d0b59356bdd9c57
|
File details
Details for the file fh_init-0.1.4-py3-none-any.whl.
File metadata
- Download URL: fh_init-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30e09cfbce1e7730a29e13463595bc1a7bf9872e11023aef1fd2d0e96d47fcbf
|
|
| MD5 |
ac4f20d5360a8d905bb31fa748e64058
|
|
| BLAKE2b-256 |
538381b26394123e039c6073cd6e139e844408c3e78b931108315d75c5d3d98b
|