Skip to content
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

Self Hosted kv commands? #155

Closed
njnygaard opened this issue Jul 13, 2022 · 2 comments
Closed

Self Hosted kv commands? #155

njnygaard opened this issue Jul 13, 2022 · 2 comments

Comments

@njnygaard
Copy link

I know ya'll are working on the documentation but I was just trying to use the CLI as a proof of concept.

I was able to link two devices nicely, I can see them both with charm keys and the "Current Key" switches in a sensible way between the two machines.

kv commands work fine for a single machine, but I can't figure out how to share across linked accounts. charm kv sync doesn't appear to do anything for me. Am I misunderstanding the usage? Is this only the purview of skate? I saw this (charmbracelet/skate#31) and I thought that I could just use charm kv.

Thanks for the cool tools!

@toby
Copy link
Contributor

toby commented Jul 13, 2022

Hi! If skate and charm kv use different default db names but you should be able to see your skate db with charm if you specify it with the "@" syntax. So for instance to list all of your skate keys with charm you need to do this: charm kv list @charm.sh.skate.default. Let us know if that works, if not we can debug further!

@njnygaard
Copy link
Author

No I don't think I have an issue anymore.
Yesterday I saw something akin to this:

❯ charm fs ls /
 drwxr-x--- 4096 Jul 13 11:24 charm.sh.kv.user.default
 drwxr-x--- 4096 Jul 13 11:24 charm.sh.kv.user.default

Today I only see one entry after deleting all the files.
I think the issue was that I kv set stuff in both machines before linking and syncing.
I'm able to share values now, I guess I just didn't do the right order of operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants