Skip to content

CLI

This page documents the dsl command-line interface.

If you’re new here, start with Quickstart.

Most teams use the CLI like this:

  1. Apply a spec to a local DataSheet folder
  2. Review the changes (git diff)
  3. Run whatever validations/tests your project uses
  4. Commit the spec + resulting XML changes

Apply a spec file to a DataSheet folder:

Terminal window
dsl apply <spec.yaml> --path <path>
  • Reads the YAML spec
  • Validates it
  • Applies the changes to the XML files under --path

Validate a spec without writing changes:

Terminal window
dsl validate <spec.yaml> [--path <path>]

Use this in CI or pre-commit checks.

Explain computed equipment values for an item in a spec:

Terminal window
dsl explain <spec.yaml> <item_id> --formulas <stat-formulas.yaml>

This is primarily used to debug computation inputs and see “why” a stat was derived.

Bulk-regenerate equipment stats from existing XML using tier mapping + formulas:

Terminal window
dsl regenerate equipment --path <data> --tiers <tiers.yaml> --formulas <formulas.yaml>

Use this when:

  • formulas change, and you need to retune many items
  • tier rules change, and you need to recompute large sets consistently