Explore and edit your Supabase tables in the terminal.
Create a .env file in the project directory (or export the variables):
SUPABASE_PROJECT_REF=your_project_ref
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
Then launch:
sheetsYou'll see a table picker. Select a table to browse and edit its data.
- h, j, k, l: Move the active cell
- gg, G, 5G, gB9: Jump to the top, bottom, a row number, or a specific cell
- 0, ^, $: Jump to the first column, first non-empty column, or last non-empty column in the row
- H, M, L: Jump to the top, middle, or bottom visible row
- ctrl+u, ctrl+d: Move half a page up or down
- zt, zz, zb: Align the current row to the top, middle, or bottom of the window
- /, ?: Search forward or backward
- n, N: Repeat the last search
- ma, 'a: Set a mark and jump back to it later
- ctrl+o, ctrl+i: Move backward or forward through the jump list
- q, ctrl+c: Quit
- Enter or i: Edit the current cell
- Enter or ESC: Save cell and return to navigation
- Alt+Enter: Insert a newline within a cell
- I: Edit from the start of the cell
- c: Clear the cell and start editing
- o, O: Insert a row below or above and start editing
- Tab, Shift+Tab: In insert mode, commit and move right or left
- v, V: Start a visual selection or row selection
- y, yy: Copy the current cell, or yank the current row(s)
- x, p: Cut the current cell or selection, and paste
- dd: Delete the current row
- u, ctrl+r, U: Undo and redo
- .: Repeat the last change
Press : to open the command prompt:
- :w save changes to Supabase
- :wq or :x save and quit
- :q quit
- :tables go back to the table picker
- :reload or :r reload the current table from Supabase
- :goto B9 or :B9 jump to a cell
- :help or :? show available commands
Install with Go:
go install github.com/maaslalani/sheets@mainBuilt on top of Sheets by Maas Lalani, a terminal spreadsheet application. The original vim-style navigation, editing, and TUI rendering come from that project.
