Skip to content

docs(dev): documented root --fresh/-p invocation fails argument forwarding #2801

Description

@yinlianghui

Baseline and scope

Minimal reproduction

From the repository root, with the port free, run twice:

pnpm dev -- --fresh -p 38421

Both runs exit 2 before binding a port. The nested scripts expand to:

objectstack dev --seed-admin -- --fresh -p 38421
Unexpected arguments: -p, 38421

The same repository script without the extra separator works:

pnpm dev --fresh -p 38421

Expected / actual

  • Expected: the documented command starts a fresh ephemeral backend on the requested port.
  • Actual: argument forwarding fails before server/database creation.

Impact

Following the repository's required backend-debug workflow fails deterministically and can push automation toward incorrect server-management workarounds.

Evidence and exclusions

  • Reproduced 2/2; no database created and no listener left behind.
  • Source boundary: root dev script → filtered showcase dev script → objectstack dev.
  • This is documentation/script composition, not a CLI --fresh implementation failure.

Required regression test

Add a command-level smoke test for the documented root invocation proving --fresh and -p <port> reach the CLI exactly once and the requested port binds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions