cfsec is in early access stage, it is not advised to rely on it for a production workload.
You can grab the binary for your system from the releases page.
Alternatively, install with Go:
go install github.com/aquasecurity/cfsec/cmd/cfsec@latest
cfsec will scan the specified directory. If no directory is specified, the current working directory will be used.
The exit status will be non-zero if cfsec finds problems, otherwise the exit status will be zero.