supamarker

Crates.iosupamarker
lib.rssupamarker
version1.1.2
created_at2025-12-10 16:39:49.503689+00
updated_at2025-12-10 16:39:49.503689+00
descriptionA simple CLI tool to upload and delete files to and from your Supabase project
homepagehttps://github.com/rivethorn/supamarker
repositoryhttps://github.com/rivethorn/supamarker
max_upload_size
id1978389
size80,441
Hassan Qasemi (rivethorn)

documentation

README

Supamarker

A CLI tool for adding and removing Markdown files to and from a Supabase bucket. I use it for my blog site, you can use it for whatever.

⚠️ Warning

Never publish your Service Role Key — it WILL grant unlimited power over your Supabase project to anyone who has it.

Usage

supamarker publish <path>         # upload file + metadata
supamarker list                   # show slugs and where they are (bucket/table/both)
supamarker delete <slug>          # delete file + row after confirmation
supamarker delete <slug> --soft   # delete only DB row (keeps bucket file)
supamarker gen-config             # write sample config to ~/.config/supamarker/config.toml

Configuration

Config File (Preferred)

Place config.toml in the current directory, or ~/.config/supamarker/config.toml. Override the path with --config /path/to/config.toml.

Example config.toml:

supabase_url = "https://xxxxx.supabase.co"
supabase_service_key = "service_role_key"
bucket = "blog"
table = "posts"

Environment Variables

Environment variables (SUPABASE_URL, SUPABASE_SERVICE_KEY, SUPABASE_BUCKET, SUPABASE_TABLE) are honored as a fallback if no config file is found.

Commit count: 0

cargo fmt