Early Access - The Dcycle CLI is currently available for enterprise customers.
Contact us to learn more about access.
Overview
dcy cdp reads a CDP project: the CDP corporate questionnaire (one row per question, with its response type, options and table columns), the answers saved in Dcycle and the drafts Leia wrote from the project’s documents. dcy cdp export writes all of it to one Markdown or JSON file, keyed by the CDP question code, that you (or an agent such as Claude in Chrome) can follow to fill the CDP portal.
Creating a CDP project needs the CDP plan (dcy project create --type cdp; without it the API answers 403 CDP_NOT_ENABLED). Reading an existing project needs no plan.
All commands take --org <id> to override the active organization and respect --format json. --module (slug or number, comma-separated) and --code (comma-separated; 7.53 also selects 7.53.1, 7.53.2…) narrow any command to part of the questionnaire. The MCP server exposes the read-only subset as get_cdp_questionnaire, get_cdp_answers and list_cdp_suggestions.
Available Commands
Questionnaire
--format json returns each question with its options and table columns (name, type, mandatory, options); a grouped option list shows each group header as [Group].
Answers
--suggestions, Leia’s pending draft. A draft is not an answer until someone accepts it.
Export for the CDP portal
## section per module and one ### section per question, headed by the CDP code exactly as the portal shows it. Each question lists its type, conditions (sector, “shown when”), options and table columns, then:
- Answer — what Dcycle holds, to be typed as is.
- Evidence files — the files attached to the answer in Dcycle.
- Leia draft — an unreviewed proposal, with what it still lacks and its sources (file, page). Confirm it before using it, or accept it first with
dcy cdp suggestions accept.
```text blocks. A select answer reads Selected: A; B, plus Other / free text: … when CDP’s “Other, please specify” was used. Select fields with more than 30 options are summarised (the portal lists them); --as json keeps every option. --guidance adds CDP’s guidance to each question.
The whole questionnaire is long (≈ 450 KB). To work module by module, write one file per module plus an index into a new, empty directory:
--dir, open the CDP portal in Chrome and ask Claude to go through one module file at a time, filling the ones with an Answer and asking you about the drafts.
Leia drafts
run needs files already uploaded to the project; it answers with the run id and the number of questions it will draft. Drafts appear in suggestions list (and in the app, under Datos a reportar) as the run progresses.