amsterdam-schema

Create CLI Commands

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

Availability

Ensure you are using a virtual environment before doing any of the following.

After installing the package, the create command is available:

pip install .

create

The create command is a grouped CLI for generating minimal schema artifacts interactively.

create dataset

Creates 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 publisher

Creates a minimal publisher definition and updates the publisher index.

create publisher

What it prompts for:

Behavior:

Default output location:

publishers/<PUBLISHER_ID>.json

Example:

create publisher

create scope

Creates 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

Notes