Config
Use when configuring obshare-cli credentials, checking saved settings, testing connectivity, clearing local config, or setting optional Obsidian bridge values used by the V0.2.0 direct-share stack.From its SKILL.md
npx -y skills add SuShuheng/obshare-cli --skill configAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
3 things to look at
- reads credentialsReads from 1 credential source: `~/.obshare/config.json`.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 8 commands, including `conda run -n obsd obshare-cli config set-app-id "cli_xxx"` and 7 more.
SKILL.md
2.1 KB, 500 tokens by cl100k_base, as published. Nobody here has run it
obshare-cli config
Manage saved configuration for Feishu uploads and optional Obsidian bridge integration. These settings are consumed by both the CLI and the Obsidian companion plugin's direct-share flow in V0.2.0.
Quick Reference
| Command | Purpose |
|---|---|
set-app-id <app_id> | Save Feishu App ID |
set-app-secret <app_secret> | Save Feishu App Secret |
set-user-id <user_id> | Save Feishu user ID |
set-folder <folder_token> | Save target folder token |
set-obsidian-cli <command> | Save Obsidian CLI command name/path |
set-obsidian-bridge-dir <dir> | Save shared bridge directory |
set-obsidian-command-id <id> | Save Obsidian render command ID |
show | Show current config with sensitive values masked |
test | Test Feishu connectivity |
clear | Remove saved local config |
Common Usage
# Required Feishu settings
conda run -n obsd obshare-cli config set-app-id "cli_xxx"
conda run -n obsd obshare-cli config set-app-secret "xxx"
conda run -n obsd obshare-cli config set-user-id "ou_xxx"
conda run -n obsd obshare-cli config set-folder "fldcnxxx"
# Optional Obsidian bridge settings for Mermaid rendering
conda run -n obsd obshare-cli config set-obsidian-cli obsidian
conda run -n obsd obshare-cli config set-obsidian-bridge-dir /path/to/shared/bridge
conda run -n obsd obshare-cli config set-obsidian-command-id obshare-cli:process-render-request
# Inspect and test
conda run -n obsd obshare-cli config show
conda run -n obsd obshare-cli --json config show
conda run -n obsd obshare-cli config test
Notes
- Uploads require
app_id,app_secret,user_id, andfolder_token. - Config is stored in
~/.obshare/config.json. - Sensitive fields are stored encrypted when cryptography support is available.
--jsonis a global option: place it before the subcommand, not aftershowortest.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.