create
Last updated
Was this helpful?
Last updated
Was this helpful?
create
Creates a new Frontity project.
[project-name]
The name of your Frontity project. It will also be the name of the folder that this command will create for you with the files of your Frontity project inside.
[options]
Option
Description
The theme to use
--typescript
--use-cwd
Generates the project in the current directory
--no-git
frontity create
initializes by default a git repository. This option skips this initialization.
--no-prompt
--help
Output usage information
--theme
optionYou can either pick one of the two official Frontity themes ( or ) or use any other custom theme as long as it's . Just pass the theme name on the command-line like --theme ThemesPackageNameInNPM
.
Create a Frontity project named my-awesome-project
:
If you leave out both of the arguments, the CLI will run an interactive shell asking for these inputs:
FRONTITY_CREATE_NAME
If the CLI cannot find a FRONTITY_CREATE_NAME
environmental variable, it will prompt for the name of the package.
Example:
FRONTITY_CREATE_TYPESCRIPT
Adds support for TypeScript in the project created.
Example:
Adds support for TypeScript. Related environment variable:
Skips prompting the user for options. Related environment variable:
Create a Frontity project named my-awesome-project
using :
If you pass the flag to the create
command, the CLI will use the name from this FRONTITY_CREATE_NAME
environment variable.
You can see a scheme of the whole workflow of using this FRONTITY_CREATE_NAME
environment variable in the section.