CLI Reference
The Merkleshare CLI lets you manage files and collections from the terminal.
Installation
Install the CLI with a single command:
curl -fsSL https://www.merkleshare.com/install.sh | bashOr download a binary directly from the CLI download page.
Authentication
Before using the CLI, authenticate with your Merkleshare account:
ms loginThis opens your browser to complete the sign-in process. Once authenticated, your credentials are stored locally.
Commands
ms loginAuthenticate with your Merkleshare account. Opens your browser to complete sign-in.
ms logoutSign out and clear stored credentials.
ms whoamiDisplay your current authentication status and profile.
ms lsList your collections.
ms ls @<handle>List another user's public collections.
ms ls <collection>List files in a specific collection.
ms create <name> [files...]Create a new collection, optionally with files. Use --public or --unlisted to set visibility.
ms add <collection> <files...>Add files to an existing collection.
ms download <collection>Download all files from a collection. Use -o to specify output directory.
ms share <collection>Get a shareable link for a collection.
ms sia <collection> <file>Get a portable Sia URL for a file that works with other Sia-compatible apps.
ms search <query>Search collections and files.
ms feedView the public feed of recent collections.
ms updateCheck for updates and install the latest version.
Collection identifiers
Collections can be referenced by:
- Name — The collection's display name
- ID — The short ID shown in
ms lsoutput - Full URL — The complete collection URL
Partial ID matching is supported, so you can use the first few characters of an ID as long as it's unambiguous.