cli

a single-file node script. zero runtime dependencies. uses your api token from /dashboard/settings.

install

# from the repo, while we're pre-publish:
cd cli && npm link

# once published:
npm install -g glyph-cli

configure

# default host is https://useglyph.dev — no setup needed.
# override only if you're self-hosting or pointing at a local dev server:
# export GLYPH_HOST=http://localhost:3000

# then authenticate (paste a token from the dashboard):
glyph login

push

glyph push fib.ts
  ✓ uploaded · 1.2kb · typescript
  → https://useglyph.dev/a7f3k2  (copied)

glyph push notes.md --markdown --expires 7d --private
glyph push secrets.env --burn
cat error.log | glyph push --title "build failure"

flags

--title <s>          set title
--lang <id>          language id (auto-detected from extension)
--markdown           render as markdown
--private            visibility: private
--public             visibility: public (listed in /explore)
--burn               delete after first view
--expires <span>     never | 10m | 1h | 1d | 7d | 30d
--slug <name>        custom slug (pro)

list / cat / delete

glyph ls
  slug        title            lang        visibility  size     expires       views
  a7f3k2      fib.ts           typescript  unlisted    1.2kb    —             3
  x9m2p1      notes.md         markdown    private     4.1kb    6d 23h left   0

glyph cat a7f3k2 > fib.ts
glyph rm a7f3k2
  ✓ deleted /a7f3k2

env

GLYPH_HOST       server origin (default https://useglyph.dev)
GLYPH_TOKEN      api token (overrides ~/.glyph/config.json)
NO_COLOR         disable ansi colors
cli · glyph