Store CLI
cfp/scripts/cfp_store.py is the single CLI entry point for the cfp store.
cfp’s skills run every deterministic operation through it and never edit store files directly.
You can also run it yourself from a clone of cc-cfp.
Architecture explains why the skills go through the CLI.
This page lists every group, subcommand, and option, and the top-level keys each call returns.
Invocation
python3 -I cfp/scripts/cfp_store.py <group> <subcommand> [options]
A skill runs the same script as python3 -I "$PLUGIN_ROOT/scripts/cfp_store.py".
count and pasteview have no group and take --proposal directly.
preflight runs with --proposal directly and has one subcommand, add-finding.
--help, after the script name or after a group, prints argparse help text instead of JSON.
The skills write long texts and free text to a file and pass the path with --text-file or --from-json.
Only ids, dates, numbers, and values from a fixed option list go into flags.
Global options
| Option | Effect |
|---|---|
|
The store to work on.
Without it, the CLI takes the |
|
An ISO date ( |
Both options are accepted before the group, after the group, and after the subcommand.
Every subcommand except config show and config init needs an initialized store, that is, a store with a config.md.
On any other store the call fails with store not initialized.
These subcommands read --today: profile list, profile show (with --event), event list, example add, bio write, talk write, every proposal subcommand except list and show, review record, preflight, preflight add-finding, and status set.
The other subcommands accept it and do not use it.
Output and exit codes
Every subcommand call prints exactly one JSON object on stdout.
On success it is "ok": true followed by the keys the tables below list.
The one exception is pasteview --format markdown, which prints markdown.
| Exit code | Meaning |
|---|---|
0 |
Success: |
1 |
Domain error: |
2 |
Usage error: |
The list subcommands and preflight also return problems, a list of {path, error} entries for store files with broken front matter.
Store files describes those files.
Check: config show on a directory that is not a store reports it as missing and still succeeds.
python3 -I cfp/scripts/cfp_store.py config show --store /tmp/cfp-no-store; echo "exit=$?"
Check: any other subcommand on that directory is a domain error.
python3 -I cfp/scripts/cfp_store.py profile list --store /tmp/cfp-no-store; echo "exit=$?"
config
Store configuration.
| Subcommand | Options | Returns |
|---|---|---|
|
None. |
|
|
|
|
|
|
|
profile
Conference profiles. Store files shows the profile and event files.
| Subcommand | Options | Returns |
|---|---|---|
|
None. |
|
|
|
The effective profile: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
event
Event overrides of a profile.
| Subcommand | Options | Returns |
|---|---|---|
|
|
|
|
|
|
example
Calibration examples of a profile.
| Subcommand | Options | Returns |
|---|---|---|
|
|
|
|
|
|
bio
Bio variations.
| Subcommand | Options | Returns |
|---|---|---|
|
None. |
|
|
|
|
|
|
|
|
|
|
resource
Speaker resources.
| Subcommand | Options | Returns |
|---|---|---|
|
|
|
|
|
|
|
|
|
talk
Talks.
| Subcommand | Options | Returns |
|---|---|---|
|
|
|
|
|
The talk’s front matter keys, at least |
|
|
|
|
|
|
proposal
Proposals.
A call that changes the content of a ready proposal moves it back to draft and adds reset_to_draft: true to its result.
This applies to set-field, set-bio-text, and set-meta.
| Subcommand | Options | Returns |
|---|---|---|
|
Each given option filters the list. |
|
|
|
The proposal’s front matter keys, |
|
|
|
|
|
|
|
Flags win over the file. |
|
|
|
|
|
|
|
status in the results of set-field and set-bio-text, and in each entry of fields and in bio for count and pasteview, is one of ok, over, unverified, no-limit, or not-on-form for a bio the form does not have.
How rules and verdicts are computed explains the counts.
count and pasteview
These two have no group.
| Command | Options | Returns |
|---|---|---|
|
|
|
|
|
With |
review
Committee review rounds.
| Subcommand | Options | Returns |
|---|---|---|
|
|
|
|
|
|
|
|
|
How rules and verdicts are computed explains how verdict is computed.
preflight
The hard rule check.
In the results of both calls, ok means the call succeeded and passed is the rule verdict: true when no finding has severity disqualify.
Both calls store the result on the proposal.
| Call | Options | Returns |
|---|---|---|
|
|
|
|
Flags win over the file.
|
|
How rules and verdicts are computed describes every rule and the stored pre-flight result.
status
The proposal lifecycle.
| Subcommand | Options | Returns |
|---|---|---|
|
|
|
|
|
|
How rules and verdicts are computed lists what the ready check requires. Commands lists the slash commands that call these subcommands for you.