Linux command
charm 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Store a key-value pair
charm kv set [key] [value]
Retrieve a value
charm kv get [key]
List all keys
charm kv list
Delete a key
charm kv delete [key]
Encrypt
charm crypt encrypt [path/to/file]
Decrypt
charm crypt decrypt [path/to/file.enc]
Sync
charm sync
Show
charm id
Back up
charm backup-keys
说明
charm is a command-line tool from Charmbracelet providing end-to-end encrypted cloud storage, key-value database, and file encryption. It enables syncing data securely across devices without managing your own server. The kv commands provide a simple key-value store useful for configuration, secrets, and application state. All data is encrypted client-side before syncing to Charm Cloud, ensuring privacy. File encryption via charm crypt uses your Charm keys to encrypt any file. The fs command provides a virtual file system stored in the cloud. Device linking allows accessing the same data from multiple machines.
参数
- kv set _key_ _value_
- Store a key-value pair.
- kv get _key_
- Retrieve value for key.
- kv list
- List all stored keys.
- kv delete _key_
- Delete a key-value pair.
- crypt encrypt _file_
- Encrypt a file.
- crypt decrypt _file_
- Decrypt a file.
- sync
- Synchronize with Charm Cloud.
- id
- Show or manage account identity.
- link
- Link a new device to account.
- backup-keys
- Export encryption keys.
- fs
- Access Charm file system.
- -o, --output _file_
- Output file for operations.
FAQ
What is the charm command used for?
charm is a command-line tool from Charmbracelet providing end-to-end encrypted cloud storage, key-value database, and file encryption. It enables syncing data securely across devices without managing your own server. The kv commands provide a simple key-value store useful for configuration, secrets, and application state. All data is encrypted client-side before syncing to Charm Cloud, ensuring privacy. File encryption via charm crypt uses your Charm keys to encrypt any file. The fs command provides a virtual file system stored in the cloud. Device linking allows accessing the same data from multiple machines.
How do I run a basic charm example?
Run `charm kv set [key] [value]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does kv set _key_ _value_ do in charm?
Store a key-value pair.