Crates.io | trieve |
lib.rs | trieve |
version | 0.5.3 |
source | src |
created_at | 2024-04-08 19:50:49.352668 |
updated_at | 2024-07-26 05:18:43.110327 |
description | CLI interface for Trieve |
homepage | https://github.com/devflowinc/trieve-CLI |
repository | https://github.com/devflowinc/trieve-CLI |
max_upload_size | |
id | 1201066 |
size | 108,337 |
Trieve CLI is a command-line interface (CLI) for interacting with the Trieve Search Product. It allows users to configure profiles, manage API keys, handle datasets, and interact with organizations directly from the command line.
To install the Trieve CLI, you need to have Rust installed on your machine. If you don't already have it installed, you can install it with:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Then, you can install the CLI from Cargo:
cargo install trieve
After building the project, you can run the CLI using the trieve
command.
To use the Trieve CLI, you need to configure it with your credentials first.
trieve login
Then, you can use any of the available commands to interact with the Trieve service.
trieve <command> [subcommand] [flags]
NOTE: All of these commands are interactive and will work even without passing in the flags.
Login
trieve login --api-key <API_KEY> [--api-url <API_URL>] [--profile-name <PROFILE_NAME>]
Configures the Trieve CLI with your API key.
Dataset
trieve dataset <subcommand> [flags]
Create
trieve dataset create --name <DATASET_NAME>
Creates a dataset in the Trieve service.
List
trieve dataset list
Lists all datasets in the Trieve service.
Delete
trieve dataset delete --dataset-id <DATASET_ID>
Deletes a dataset in the Trieve service.
Example (Add Seed Data)
trieve dataset example --dataset-id <DATASET_ID>
Adds seed data to a dataset in the Trieve service.
API Key
trieve apikey <subcommand> [flags]
Generate
trieve apikey generate --name <API_KEY_NAME> --role <API_KEY_ROLE>
Generates a new API key.
Profile
trieve profile <subcommand> [flags]
Switch
trieve profile switch --profile-name <PROFILE_NAME>
Switches to a different profile.
Delete
trieve profile delete --profile-name <PROFILE_NAME>
Deletes a profile.
List
trieve profile list
Lists all profiles.
Organization
trieve organization <subcommand> [flags]
Switch
trieve organization switch --organization-id <ORGANIZATION_ID>
Switches to a different organization.
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or issues, please open an issue on the GitHub repository or contact the maintainers.
This README provides a basic overview of the Trieve CLI and its features. For detailed usage and examples, please refer to the command-specific help by running trieve <command> --help
.