Command Line Interface (CLI)
Last updated
Last updated
If you have already completed the steps for and , your CLI and Titan Storage are already configured. To use the CLI, you can follow the steps below:
First, ensure that Go is installed in your environment. Use the following command to compile the CLI file:
This will generate an executable file named cli, which you can use to interact with the API.
Before using the CLI, you need to set up environment variables using the API key you registered in the browser:
TITAN_URL: The URL of the Titan service.
API_KEY: The API key you obtained from the Titan platform.
Once the environment variables are set, you can use the CLI to execute API methods. The basic format to execute a command is:
- Generate the autocompletion script for the specified shell
- delete file
- Manage folders
- Generate markdown documentation
- get file
- list files
- upload file
- get file url by cid
- Print the version number