Skip to content

Latest commit

 

History

History
59 lines (47 loc) · 1.03 KB

DEV.md

File metadata and controls

59 lines (47 loc) · 1.03 KB

Spec CLI Common Commands

Show the structure of the event data

$ spec tail allov2.Allo.PoolFunded

Your local postgres table will keep all of its data and just subscribe to new incoming events

$ spec test object Profile

BUT, if you run the objects over historical data, spec will wipe your local table before each run unless explicitly given the --keep-data flag

$ spec test object Profile --keep-data

Last 30 days of event data

spec test object Profile --recent

Pull everything

$ spec test object Profile --all-time

See registered events

spec get events allov2.RFPSimple

Dev Notes

Install spec cli

npm install -g @spec.dev/cli @spec.dev/spec

Update cache / spec core library

deno cache https://esm.sh/@spec.dev/core@0.0.122

Login

spec login

Use Profile

spec use profile allov2/spec

Install Deno for Visual Studio Code extension by denoland (the purple one)

Install postgresql

sudo apt install postgresql