Obsidian-Portable icon indicating copy to clipboard operation
Obsidian-Portable copied to clipboard

Question: How open a vault via cli

Open B0bbyD0llar opened this issue 11 months ago • 2 comments

Hi,

how can I open a specific vault? Add --vault=path/to/vault does not work.

B0bbyD0llar avatar Feb 10 '25 14:02 B0bbyD0llar

Hi, have you tested this command switch on regular obsidian? Didn't find information about --vault.

You can open a specific vault if it is already added to obsidian. Something like this: ObsidianPortable.exe "obsidian://open?vault=VaultName" if vault name contains spaces, you need to replace it with %20. Check this link Obsidian URI.

Numstr avatar Feb 10 '25 16:02 Numstr

Hi, have you tested this command switch on regular obsidian? Didn't find information about --vault.

You are right. I should not trust AI that much. ;-)

You can open a specific vault if it is already added to obsidian. Something like this: ObsidianPortable.exe "obsidian://open?vault=VaultName" if vault name contains spaces, you need to replace it with %20. Check this link Obsidian URI.

I will test this. Thanks for this advice.

B0bbyD0llar avatar Feb 11 '25 11:02 B0bbyD0llar