Skip to content

Cannot list project snippets by supabase cli #3757

Closed

Description

@AlighSports

Describe the bug
Cannot list project snippets by supabase cli

To Reproduce
Steps to reproduce the behavior:

  1. yarn supabase login
  2. yarn supabase supabase link --project-ref
  3. yarn supabase snippets list --debug --create-ticket

Expected behavior
list all the snippet codes in terminal.

Screenshots

Image

yarn supabase snippets list --debug --create-ticket
yarn run v1.22.22
$ /Users/admin/repos/XXX-repo/node_modules/.bin/supabase snippets list --debug --create-ticket
Supabase CLI 2.26.9
2025/06/24 13:59:12 HTTP GET: https://api.supabase.com/v1/snippets?project_ref=XXXXX
Unexpected error listing SQL snippets: {"message":"Failed to list project's SQL snippets","errorEventId":"3fac0bd1bf06470589e7ac2fe9813090"}

System information
Rerun the failing command with --create-ticket flag.

  • Ticket ID: 836185521cef4b11973fa69bae88fbce
  • Version of OS: MacOS 14.3.1(23D60)
  • Version of CLI: Supabase CLI 2.26.9
  • Version of Docker: 25.0.3

Image

  • Versions of services: [output from supabase services command]
yarn supabase services                             
yarn run v1.22.22
$ /Users/admin/repos/aligh-mono/node_modules/.bin/supabase services

  
   SERVICE IMAGE          | LOCAL                  | LINKED     
  ------------------------|------------------------|------------
   supabase/postgres      | 15.6.1.127             | 15.6.1.127 
   supabase/gotrue        | v2.176.1               | v2.176.1   
   postgrest/postgrest    | v12.2.3                | v12.2.3    
   supabase/realtime      | v2.36.18               | -          
   supabase/storage-api   | v1.24.6                | -          
   supabase/edge-runtime  | v1.67.4                | -          
   supabase/studio        | 2025.06.16-sha-c4316c3 | -          
   supabase/postgres-meta | v0.89.3                | -          
   supabase/logflare      | 1.14.2                 | -          
   supabase/supavisor     | 2.5.2                  | -    

Additional context
If applicable, add any other context about the problem here.

  • Version of supabase-js: 2.49.1
  • Version of Node.js: v20.18.0

Activity

  1. Hallidayo commented on Feb 22, 2026

    @Hallidayo
    Collaborator

    Hi @AlighSports - Thanks for opening this one. I've seem to be able to list out all of my snippets using:

    supabase snippets list

    Try updating to the most recent version of the CLI and you should see the snippets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions