CLI tool for the Platforma framework - generates domain scaffolding.
go install github.com/platforma-dev/platforma-cli@latestScaffold a new domain with model, repository, service, and domain files:
platforma generate domain <domain-name>Example:
platforma generate domain userThis creates the following structure in ./internal/<domain-name>:
model.go- Domain modelrepository.go- Data access layer with migrations interfaceservice.go- Business logic layerdomain.go- Domain composition and factory
Display the CLI version:
platforma --version
# or
platforma -vDomain templates are located in internal/cli/templates/domain/. Modify these to customize the generated code structure.
# Run from source
go run main.go generate domain mydomain
# Build
go build -o platforma
# Test
go test ./...[License to be added]