New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verdaccio-cli external tool to handle an intensive task #343

Open
juanpicado opened this Issue Oct 5, 2017 · 5 comments

Comments

Projects
3 participants
@juanpicado
Copy link
Member

juanpicado commented Oct 5, 2017

My reason:

My suggestion comes inspired by #142 and #138

The CLI might reside in:

  • Mixed with the current verdaccio cli
  • Create an external and new tool verdaccio-cli

Caveats

  • How to this will affect on running instances without corrupt tarballs?
  • How this will work with future pluggable storages
  • User management is hot topic, but I'm not sure how this will work properly

Usage

  • Cache clean
  • Integrity check
  • Backup
  • Restore Backup
  • User management?

Clean cache

Clean cache might be a high intensive task base on the local storage size.

Normal clean cache

verdaccio-cli cache clean 

Clean specific package

verdaccio-cli cache clean @scope/package

Clean cache for specific package + version

verdaccio-cli cache clean @scope/package@1.0.0

Clean cache for specific version

verdaccio-cli cache clean @scope/package@1.0.0

Clean cache specifying a config file

verdaccio-cli cache clean -c /path/config.yaml @scope/package

Backup and Restore

Backup and restore a backup, useful for offline environments

A complete backup

verdaccio-cli backup

Only cached

verdaccio-cli backup --ignore-private

Only private

verdaccio-cli backup --ignore-local

Restore backup

verdaccio-cli restore --path /path/backup.tar.gz

Check Integrity

Check the integrity of tarballs

Package check

verdaccio-cli check @scope/package@1.0.0

User management ⚠️

Add/Remove users (this part is just a suggestion and will require a discussion) and perhaps only useful with the default auth plugin.

Add user

verdaccio-cli user-add 

Remove

verdaccio-cli user-rm

I think this will require a lot of thoughts, please comment and let me know what do you think.

@arsdehnel

This comment has been minimized.

Copy link

arsdehnel commented Jan 26, 2018

Are these function (backup, clean, restore) already existing and these are just CLI commands to get at them? I'm not seeing where these things exist in the current codebase but maybe I'm just missing something. Have hit some gross invalid tar header errors and I'd be happy to solve them with a proper tool rather than some bash nonsense.

@juanpicado

This comment has been minimized.

Copy link
Member Author

juanpicado commented Jan 26, 2018

@arsdehnel this is just a Feature Request, none of this does no exist in the code base yet.

@juanpicado

This comment has been minimized.

Copy link
Member Author

juanpicado commented Mar 15, 2018

I don't think I will work on this. If someone thinks is a good idea and is willing to contribute, please reopen.

@juanpicado juanpicado closed this Mar 15, 2018

@juanpicado juanpicado modified the milestones: 3.0.0, Future Apr 10, 2018

@juanpicado juanpicado added this to To do in Roadmap via automation Apr 16, 2018

@juanpicado

This comment has been minimized.

Copy link
Member Author

juanpicado commented Apr 16, 2018

I'll reopen in case someone is interested on work on it.

@juanpicado juanpicado reopened this Apr 16, 2018

Roadmap automation moved this from To do to In progress Apr 16, 2018

@juanpicado juanpicado moved this from In progress to To do in Roadmap Apr 24, 2018

@p3x-robot

This comment has been minimized.

Copy link

p3x-robot commented Jan 23, 2019

@juanpicado FYI: I have created a verdaccio-cli, for now, it is in my name p3x-verdaccio-cli. I would not reserve the name, but if you like it, we can move to verdaccio main repo.

https://github.com/patrikx3/verdaccio-cli
https://pages.corifeus.com/verdaccio-cli
https://www.npmjs.com/package/p3x-verdaccio-cli

@juanpicado juanpicado added the discuss label Feb 21, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment