Skip to content

Add dropthis upgrade command for self-updating the CLI #1

@dmalis

Description

@dmalis

Add a dropthis upgrade command that checks npm for a newer version and updates the CLI in place.

Expected behavior:

dropthis upgrade
# Checking for updates...
# Updated 0.1.2 → 0.1.3

If already on latest:

dropthis upgrade
# Already on latest version (0.1.3)

Implementation notes:

  • Check latest version from npm registry (https://registry.npmjs.org/dropthis/latest)
  • Compare with current dropthis --version
  • If newer, run npm install -g dropthis@latest
  • Consider also showing an update notification on CLI startup (e.g. update-notifier)

Metadata

Metadata

Assignees

No one assigned

    Labels

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