Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Commands

This page explains what each command family is for before listing concrete selectors.

How to Read Command Names

General form:

dwf <primary>:<selector>

Command Glossary

Devflow commands are categorized by their role in the developer lifecycle.

Initialization & Environment

CommandDescription
initBootstrap a project (detects stack automatically)
setup:doctorVerify host toolchains and environment
setup:depsFetch and pre-cache project dependencies
setup:toolchainInstall/update required language toolchains

Verification & Security

CommandDescription
check:prRun the standard PR verification (fmt, lint, build, test)
check:securityRun local vulnerability scan on CI images (requires Trivy)
test:unitRun project unit tests
test:integrationRun integration/infrastructure tests
test:smokeRun high-level end-to-end smoke tests

Development Workflow

CommandDescription
fmt:checkCheck if code matches project formatting standards
fmt:fixAutomatically apply formatting fixes
lint:staticRun clippy, eslint, or other static analyzers
build:debugPerform an incremental debug build
build:releasePerform an optimized production build

CI Infrastructure

CommandDescription
ci:generateSync .github/workflows/ci.yml with devflow.toml
ci:checkVerify if local CI workflow matches current config
ci:planPreview the CI execution strategy and profiles

Maintenance & Release

CommandDescriptionFlags
prune:cacheCleanup local or GHA caches--local, --gh, --all, --force
prune:runsClean up stale GHA workflow runs--gh, --all
package:artifactBuild and bundle project distribution artifacts
release:candidateTag and prepare a new release candidate

make gh-setup - GitHub Administration

Devflow provides Infrastructure-as-Code (Terraform) for managing GitHub repository settings.

Community Standards

The project includes standard GitHub community files in the root and .github directory:

make teardown - Environment Reset

While dwf handles logic-level caches, the root Makefile provides a teardown target for a “scorched earth” local reset.

prune:cache - Deep Dive

This command is used to reclaim disk space or reset CI state. It supports granular target selection via flags.

Local Pruning (--local or --all):

GitHub Actions Pruning (--gh or --all):

prune:runs - Deep Dive

Cleans up the GitHub Actions execution history. Requires --gh or --all.

Common Selectors

Initialization

Quality Profiles

CI Lifecycle

fmt:check vs fmt:fix

CommandResponsibilityTypical Use
fmt:checkverify formatting compliance onlyCI and pre-merge checks
fmt:fixapply formatter changes to fileslocal editing loop

Typical Local Loop

dwf fmt:check
dwf lint:static
dwf test:unit
dwf check:pr