Moca Chain CLI is a command line tool for you to manage your resources directly with the Cosmos and storage layer within Moca Chain.Documentation Index
Fetch the complete documentation index at: https://docs.moca.network/llms.txt
Use this file to discover all available pages before exploring further.
CLI Guide
This command-line tool provides basic storage features such as:- Creating buckets
- Uploading and downloading files
- Deleting resources
Command Organization
- Commands are organized into categories and implemented as subcommands for clarity.
- To see all command categories, use:
Configuration File
- Use the
--homeoption to set the path for the config file and keystore. - By default, configuration is saved in the
.moca-cmddirectory under your system’s home directory. - If you run a command that interacts with Moca Chain and:
- There’s no
config/config.tomlfile in the path - You didn’t use the
--configflag
…the tool will automatically generate aconfig/config.tomlfile with testnet settings.
- There’s no
Example: Testnet Configuration
- The config file’s
rpcAddrandchainIdshould match the Moca Chain network.
Intelligent Storage Provider Selection
- The tool automatically picks the correct storage provider for each request.
- To upload to a specific provider, set the storage provider’s operator address.
- No need to change the config when working with different storage providers.