Skip to content

feat(cli): import business Excel directly to editable Floe YAML drafts #1454

Open

Description

@malon64

Parent #1449. Depends on #1450, #1451, #1452, #1453. Floe 1.1.

CLI behavior

Provide an offline command using the existing argparse CLI:

floe contract import sales.xlsx --output-dir domains/sales
floe contract import sales.xlsx --output-dir domains/sales --dry-run
# Optional: check against workbook's domain / use project context
floe contract import sales.xlsx --domain sales --output-dir domains/sales

The workbook's Guide domain is default; --domain may override only if it matches the declared domain, to avoid misfiled outputs. An optional -c config.yml may help resolve existing project/domain paths, but is NOT required merely to generate YAML templates; no preconfigured source.path, sink, catalog, storage or partitioning is required.

Write by default, --dry-run previews without writes. Default output convention may be domains/<domain> if safely established, but make the destination explicit in docs. No separate technical-binding file, parser, or mandatory manual setup before generation.

Scope

Acceptance

  • floe contract import --help documents format, output directory, draft semantics and dry-run.
  • floe contract import business.xlsx --output-dir domains/sales creates YAML drafts on a brand-new project directory without an existing config.yml.
  • Command returns success on structurally valid business-only imports even though full floe validate cannot yet pass.
  • On engineer completion, the existing Floe CLI validates/runs the YAML with no intermediate conversion.
  • Dry-run is read-only; invalid Excel, unsafe paths or conflicts return typed nonzero errors and no changes.
  • Second identical import returns all unchanged; a revised workbook updates only business fields.
  • No Rules sheet, source_type argument, technical bindings config or enforced FK behavior.

Tests first

test_cli_import_without_project_config, test_cli_dry_run_no_writes, test_cli_reports_missing_engineer_todos_as_next_step, test_cli_reimport_preserves_completed_source_and_sink, test_invalid_workbook_exits_without_changes.

Scope CLI wiring/docs separately from converter. AGENTS.md size limits apply.

Activity

  1. added this to the Floe 1.1 milestone on Nov 23, 2026
  2. changed the title [-]feat(cli): add floe contract import with domain selection, dry-run and summary[/-] [+]feat(cli): import business Excel directly to editable Floe YAML drafts[/+] on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions