Skip to main content

kapi rules keep

kapi keep <id>

Keep the suggestion an id names as a rule, the same as answering k in kapi rules. --use picks the form a name is kept as.

Commandrules keep
Try it

Runs in your browser against a small sample file. Edit the command before running, or press Run to execute it as shown.

kapi rules keep 0n794e2gk7
Flags
FlagTypeDefaultDescription
--advisoryboolfalsewith a keep: the rule reports without failing a check (--advisory=false makes it fail)
--notestringwhy
--project, -pstringpath to a kapi.yaml project recipe or its directory (auto-discovered from cwd if omitted)
--usestringwith one --keep or --choose: the form the rule says to write
More examples
kapi rules keep 0n794e2gk7 --use "Sign in"

← Back to the Command Reference