Welcome to the Gptscript project! This guide will help you understand how to use Gptscript to interact with Supabase APIs and CLI.
Gptscript is a friendly assistant designed to help you with DevOps-related tasks using CLI programs. In this project, Gptscript is configured to assist with Supabase API and CLI operations.
Before you begin, ensure you have the following:
-
Clone the Repository:
git clone https://github.com/gptscript-ai/supabase-agent.git cd supabase-agent -
Set Up Environment Variables: You need to set up your Supabase API key as an environment variable.
export GPTSCRIPT_API_SUPABASE_COM_BEARER_AUTH="your-supabase-api-key"
Gptscript can help you navigate and use the Supabase API. The .gpt files define the capabilities and context for Clio.
-
General API Helper:
- File:
tool.gpt - Description: Helps with all Supabase API operations.
- Tools: All tools from
openapi.yaml.
- File:
-
Read Operations:
- File:
tool-api-read.gpt - Description: Helps with read operations in Supabase API.
- Tools:
v1-get*,v1-list*fromopenapi.yaml.
- File:
-
Write Operations:
- File:
tool-api-write.gpt - Description: Helps with write operations in Supabase API.
- Tools:
v1-create*,v1-update*,v1-delete*fromopenapi.yaml.
- File:
To use Gptscript for Supabase API operations, you can direct a message to the specific agent. For example:
gptscript ./tool-api-all.gptGptscript can also assist with Supabase CLI commands. The supabase-cli.gpt file defines the context for CLI operations.
- CLI Helper:
- File:
tool-cli.gpt - Description: Helps with Supabase CLI operations.
- Context:
cli-helper
- File:
To use Gptscript for Supabase CLI operations, you can direct a message to the specific agent. For example:
Gptscript ./tool-cli.gptGptscript is here to make your interaction with Supabase APIs and CLI easier. If you have any questions or need further assistance, feel free to ask Clio for help.