Skip to content

Support --force flag on skrun push to overwrite existing version #2

@Tarcroi

Description

@Tarcroi

Context

skrun push returns a 409 error if the version already exists in the registry. During development, you have to restart the registry (which clears the in-memory DB) to push again.

Proposal

Add a --force flag that overwrites the existing version:

skrun push --force

Files to change

  • packages/cli/src/commands/push.ts — add --force option, pass as query param
  • packages/api/src/routes/registry.ts — handle ?force=true to allow overwrite

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    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