CliFi

CLI Reference

clifi init

Initialize a new CliFi project in the current directory.

Synopsis

clifi init [flags]

Description

The init command creates a new CliFi project structure in the current directory. It generates a clifi.yaml workflow file, a .clifi/ directory for state and cache, and a .gitignore file that excludes build artifacts and sensitive state.

If the directory already contains a clifi.yaml, the command aborts unless --force is passed.

Flags

FlagShorthandDefaultDescription
--template-tdefaultProject template to scaffold
--name-ndirectory nameProject name in clifi.yaml
--force-ffalseOverwrite existing files
--skip-gitfalseSkip creating .gitignore

Examples

Initialize a default project

bash
clifi init

Use a template

bash
clifi init --template docker-workflow

Set a custom name

bash
clifi init --name my-api-service

Available templates

  • default - Minimal workflow with build and test tasks
  • docker-workflow - Docker-based build, test, and deploy pipeline
  • kubernetes - Kubernetes deployment with helm and kubectl tasks
  • node-app - Node.js application with npm, lint, test, and build
  • python-app - Python application with poetry, pytest, and packaging

See also