Skip to content

Conversation

@michaelruelas
Copy link
Contributor

Refactor documentation to reflect v2.0 changes:

  • Introduce kubectl-style contexts for unified local/remote management
  • Integrate local Docker mode into core commands, deprecate separate local subcommands
  • Remove legacy supascale.sh guide and installation
  • Add badges, improve quick start examples, and expand troubleshooting
  • Update features, API endpoints, and project structure sections

Refactor documentation to reflect v2.0 changes:
- Introduce kubectl-style contexts for unified local/remote management
- Integrate local Docker mode into core commands, deprecate separate `local` subcommands
- Remove legacy `supascale.sh` guide and installation
- Add badges, improve quick start examples, and expand troubleshooting
- Update features, API endpoints, and project structure sections
@gemini-code-assist
Copy link

Summary of Changes

Hello @michaelruelas, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly updates the documentation for the supactl command-line interface, reflecting a major architectural shift in version 2.0. The core change introduces a context-aware system, inspired by kubectl, which unifies the management of both local Docker-based Supabase instances and remote instances controlled by a SupaControl server. This streamlines the user experience by allowing the same commands to be used across different environments, eliminating the need for separate command hierarchies and removing legacy scripts.

Highlights

  • Documentation Refactor: The documentation has been thoroughly refactored to align with the new v2.0 changes of the supactl CLI.
  • Context-Aware Architecture: The CLI now features a kubectl-style context system, allowing seamless switching between local Docker and remote SupaControl server management.
  • Unified Local Mode: Local Docker mode is now integrated into the core supactl commands, deprecating the separate local subcommands for a more consistent user experience.
  • Legacy Removal: The outdated supascale.sh guide and installation instructions have been removed from the documentation.
  • Enhanced Documentation Content: New badges have been added, quick start examples are improved, and troubleshooting sections are expanded to provide clearer guidance.
  • Updated Sections: Features, API endpoints, and project structure sections have been updated to reflect the latest changes in the supactl tool.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This is a great documentation overhaul that clearly explains the new context-aware architecture. The refactoring of both READMEs, the addition of badges, and the updated examples significantly improve the user experience and make the v2.0 changes easy to understand. The new structure is much more logical and user-friendly.

I've found a significant discrepancy between the documented behavior of supactl create for local contexts and its actual implementation. The documentation claims it's a unified command, but the code shows it's not supported for local mode, directing users to supactl local add instead. I've left several comments pointing out the specific places in the documentation that need to be corrected to align with the current implementation. I also found a minor duplication issue in the roadmap.

Overall, excellent work on the documentation. Addressing these inconsistencies will make it perfect.

README.md Outdated
# List all contexts
supactl config get-contexts

# Create and manage instances (works in both contexts)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The comment (works in both contexts) is misleading for the create command. The supactl create command is not implemented for the local context and will return an error. Please update the documentation to clarify that create is for remote contexts, while supactl local add should be used for local instance creation.

README.md Outdated
supactl local add my-project
supactl local list
supactl local start my-project
supactl create my-project

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The documentation suggests using supactl create for local instances, but the implementation for the local provider doesn't support this and instead directs users to supactl local add. To align with the code, this should be supactl local add my-project.

Suggested change
supactl create my-project
supactl local add my-project

These work in local or remote contexts:

- `supactl create <name>`: Create new instance
- Local: Clones Supabase repo, generates secrets, configures Docker

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This description is inconsistent with the implementation. The CreateInstance function for the local provider currently returns an error and directs the user to use supactl local add. Please either update the implementation to match this documented behavior or correct the documentation to state that supactl create is not supported for local mode.

supactl delete my-awesome-app
# Confirm deletion
supactl config use-context local
supactl create dev-app # Or: local add dev-app

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The example suggests supactl create dev-app is a valid command for the local workflow, but this is not supported by the current implementation. The primary command for creating a local instance is supactl local add dev-app.

Suggested change
supactl create dev-app # Or: local add dev-app
supactl local add dev-app

README.md Outdated
Comment on lines 463 to 465
- [ ] Web UI for instance management
- [ ] Instance templates and presets
- [ ] Automated backups and restoration

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

These roadmap items appear to be duplicates of the ones listed on lines 450-452. You can remove these lines to avoid redundancy.

Update READMEs to reflect that `supactl create` is remote-only and
introduce `local add` for local instances. Remove outdated roadmap items.
@michaelruelas michaelruelas merged commit 67c7588 into main Nov 13, 2025
2 of 7 checks passed
@michaelruelas michaelruelas deleted the feature/update-documentation branch November 13, 2025 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants