Explore the instance
madbot reads and deposits nothing by itself: its plugins do. A source plugin reads data where they are (a file server, a code forge, Zenodo…); a repository plugin deposits a submission there. Each instance has its own. So before writing a deposit file, you look at what the instance offers.
-
List the plugins of the instance:
Fenêtre de terminal madbot-cli pluginsEach line gives the slug of the plugin (the name to write in the file), its name, and what it does:
data sourcefor a source,repositoryfor a repository. Zenodo is both. -
Read what the Zenodo source asks for:
Fenêtre de terminal madbot-cli plugins zenodoNote the shared parameter
url: it names the Zenodo server, herehttps://zenodo.org/. Under the name of the plugin, a line says it reads public data without credentials: thetokenis only needed to deposit or to read private data. -
Read what the Recherche Data Gouv repository asks for:
Fenêtre de terminal madbot-cli plugins recherche_data_gouvThe command gives, in order:
- the shared parameters (
shared_params): the server, here the demo,https://demo.recherche.data.gouv.fr; - the credentials, a JSON object to put in an environment variable, never in the file: here your token of the demo;
- the settings of a submission (
settings): the collection to deposit into, the language of the metadata, the access conditions; - a block to paste in the file, and the
exportline of the credentials.
Keep this output at hand: you will paste its block in the “Describe the submission” block.
- the shared parameters (
Optional What the command does, on the API side
madbot-cli plugins reads GET /api/plugins. With a slug, it also reads the JSON schemas the plugin publishes (shared parameters, credentials, settings) and turns them into text. None of these commands writes to madbot, and none needs a deposit file.
Checkpoint
Section titled “Checkpoint”If you are stuck
Section titled “If you are stuck”- A plugin is missing from the list: the instance did not install it. Tell the trainer.
- “The instance has no plugin …”: the slug is written as the first column of
madbot-cli pluginsgives it, with its underscores:recherche_data_gouv, notrecherche-data-gouv. The message lists the slugs of the instance. - The output scrolls by too fast: send it to a file,
madbot-cli plugins recherche_data_gouv > rdg.txt, and open it in your editor.

