docs/commands/new.md
Create a new project from a local starter template under ~/new.
f new copies a directory from ~/new/<template> into a destination path.
This is the native Flow way to work with local starters you keep in ~/new.
f new [template] [path]
template: folder name inside ~/new (for example app, docs, web)path: destination path (optional)If template is omitted, Flow opens an fzf picker from templates in ~/new.
Flow resolves the destination path like this:
f new app # -> ./app
f new app zerg # -> ~/code/zerg
f new app ./xn # -> ./xn
f new app ~/xn # -> ~/xn
Notes:
./, ../, /, ~) are treated as ~/code/<name>.~/... or absolute paths for custom locations outside ~/code.Preview copy behavior without writing files:
f new app ~/xn --dry-run
~/new/<template>.f new <template> <target>.Example:
f new app ~/xn
cd ~/xn
f tasks
Template not found: ~/new/<template> does not exist.Destination already exists: remove/rename target path or choose a new destination.