$ cf-cmd help
cf-cmd v1.0 - Diego Zamboni firstname.lastname@example.org>
cf-cmd is a tool that allows you to run small CFEngine snippets quickly,
by automatically wrapping them around a standard "test" bundle.
The CFEngine Standard Library is automatically included.
The following inputs are understood by this tool:
help Print this message
list Print current policy
clear Clear current policy
go|run Execute current policy using cf-agent
type: Switch to the given promise type
(classes:, commands:, databases:, environments:, files:, interfaces:,
methods:, outputs:, packages:, processes:, reports:, services:,
The current promise type is shown in the prompt.
All other lines are added literally to the current promise type.
Commands can be abbreviated to any part of their name (for example,
"r" or "ru" for "run").
You can add lines to any of the standard promise types inside the test
bundle by switching to the appropriate promise type first.
The default promise type is "reports:", to make it easier to quickly print
the value of expressions.
You can give the inputs also on the command line, they are interpreted
in exactly the same way (make sure to quote things correctly).
cf-cmd '"Flavor: $(sys.flavor)";' list run
cf-cmd '"var1 = $(var1)";' vars: '"var1" string => "test";' l r