AMI Web Framework > Essentials > Generate a homepage


Generate a homepage

Synopsis

To create a new Homepage, you can use the --create-home-page command. You will be prompted for a title and an endpoint that should expose an instance of the AMI Server.

For example :

./awf.py --create-home-page

If you would like to automate this process (to use with Docker for example) you can also specify the title and the endpoint thanks to the --home-page-title and --home-page-endpoint parameters :

./awf.py --create-home-page --home-page-title=Home --home-page-endpoint=https://my-ami-backend-url.com

By default, when using this command it will generate a homepage with Bootstrap 5, but you can choose which version of Bootstrap you would like to use by specifying the --bootstrap-version.

For example :

./awf.py --create-home-page --bootstrap-version=4

Command Reference

ParameterShorthandDescription
—create-home-pageGenerate a new homepage
—home-page-title-tFill in the title through the CLI
—home-page-endpoint-pFill in the endpoint URL through the CLI
—bootstrap-version-vSpecify the bootstrap version (4/5)
—verboseMake the command verbose