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
| Flag | Shorthand | Default | Description |
|---|---|---|---|
--template | -t | default | Project template to scaffold |
--name | -n | directory name | Project name in clifi.yaml |
--force | -f | false | Overwrite existing files |
--skip-git | false | Skip creating .gitignore |
Examples
Initialize a default project
bash
clifi initUse a template
bash
clifi init --template docker-workflowSet a custom name
bash
clifi init --name my-api-serviceAvailable templates
default- Minimal workflow with build and test tasksdocker-workflow- Docker-based build, test, and deploy pipelinekubernetes- Kubernetes deployment with helm and kubectl tasksnode-app- Node.js application with npm, lint, test, and buildpython-app- Python application with poetry, pytest, and packaging
See also
- clifi run - Execute a workflow
- clifi deploy - Deploy a service