nsc icon indicating copy to clipboard operation
nsc copied to clipboard

prune local

Open tommyjcarpenter opened this issue 6 months ago • 3 comments

What motivated this proposal?

There is already the opposite of this command, push --prune.

What is the proposed change?

I'd like a command nsc pull --prune-local that deletes any local accounts that are not in the remote server. Basically I want the reverse of push --prune.

Currently, I cannot see any easy way to do this: pull -A pulls from the remote server, but mixes with local accounts.

Who benefits from this change?

Users of a shared NATS server who may want to keep their local nsc in sync. If I sync my nsc, then an operator deletes a remote account, I'd like to (explicitly with --prune-local) be able to sync those changes.

What alternatives have you evaluated?

No response

tommyjcarpenter avatar Aug 13 '24 15:08 tommyjcarpenter