This document covers the create_cli command surface exposed through the create CLI. It is intended as a quick reference for creating minimal schema artifacts.
For the schema format itself, field semantics, and the meaning of Amsterdam Schema concepts such as datasets, tables, versions, publishers, and scopes, see the Amsterdam Schema specification:
https://schemas.data.amsterdam.nl/docs/ams-schema-spec.html
Ensure you are using a virtual environment before doing any of the following.
After installing the package, the create command is available:
pip install .
createThe create command is a grouped CLI for generating minimal schema artifacts interactively.
create datasetCreates a minimal dataset.json and matching table files from prompts.
create dataset
What it prompts for:
Behavior:
Output location:
datasets/<dataset_id>/dataset.json
The generated table files are created next to that dataset file, using the selected default version.
Example:
create dataset
create publisherCreates a minimal publisher definition and updates the publisher index.
create publisher
What it prompts for:
Behavior:
publishers/publishers.json with the newly created publisher.Default output location:
publishers/<PUBLISHER_ID>.json
Example:
create publisher
create scopeCreates a minimal scope definition.
create scope
What it prompts for:
Behavior:
Default output location:
scopes/<OWNER>/<scope_id_lowercased>.json
If the scope id contains /, the filename uses _ instead.
Example:
create scope
create dataset, create publisher, and create scope are interactive by design.The schema specification remains the authoritative source for the structure and meaning of the generated JSON documents:
https://schemas.data.amsterdam.nl/docs/ams-schema-spec.html