Command reference
Every command, with its options. Run any command with --help for the same text. Global
options go before the command: uv run tessera --config site.toml sync.
This page is generated from the commands themselves.
Global options#
usage: tessera [-h] [--version] [-c PATH] [-v | -q] COMMAND ...| Argument | Meaning |
|---|---|
--version | show program's version number and exit |
-c, --config PATH | configuration file (default: $TESSERA_CONFIG or ./tessera.toml) |
-v, --verbose | more output |
-q, --quiet | only warnings and errors |
tessera init#
Create a configuration file and data home.
usage: tessera init [-h] [--force]| Argument | Meaning |
|---|---|
--force | overwrite an existing config file |
tessera demo#
Build a fictional organization to explore (and to take screenshots of).
usage: tessera demo [-h] [--force] [--seed SEED] [path]| Argument | Meaning |
|---|---|
path | where to build it (default: ./demo) |
--force | replace a demo already there |
--seed SEED | another seed, other people |
tessera bench#
Measure Tessera on this machine with a simulated organization of any size.
usage: tessera bench [-h] [--people PEOPLE] [--papers PAPERS] [--seed SEED] [--rebuild]
[--samples SAMPLES] [--users USERS] [--seconds SECONDS] [--workers WORKERS]
[--only {nightly,pages,load}]
[path]| Argument | Meaning |
|---|---|
path | where to build it, or reuse (default: ./bench) |
--people PEOPLE | people (default 1,000) |
--papers PAPERS | papers (default 50,000) |
--seed SEED | another seed, another organization |
--rebuild | build it again even if it is there |
--samples SAMPLES | requests timed per page (default 30) |
--users USERS | simulated users at once (default 20; 0 skips) |
--seconds SECONDS | how long each run of users lasts (default 60) |
--workers WORKERS | server processes for the users (default 4) |
--only ONLY | run only this step after the build (repeat for more) |
tessera doctor#
Check that this installation is ready.
usage: tessera doctor [-h] [--online] [--production]| Argument | Meaning |
|---|---|
--online | also test public API reachability |
--production | also check what a server others use needs |
tessera db#
Ledger database maintenance.
usage: tessera db [-h] ACTION ...tessera db upgrade#
Apply pending migrations.
usage: tessera db upgrade [-h]tessera db current#
Show the schema revision.
usage: tessera db current [-h]tessera lake#
Lake (Parquet) maintenance.
usage: tessera lake [-h] ACTION ...tessera lake status#
Files and rows per table.
usage: tessera lake status [-h]tessera lake compact#
Rewrite tables to current rows only.
usage: tessera lake compact [-h] [datasets ...]| Argument | Meaning |
|---|---|
datasets | datasets to compact (default: all) |
tessera lake gc#
Delete superseded files past retention.
usage: tessera lake gc [-h] [--retention-days DAYS]| Argument | Meaning |
|---|---|
--retention-days DAYS | keep superseded files younger than this (default: 7) |
tessera ingest#
Fetch public data into the lake.
Fetch from a public source. SOURCE is pubmed, icite, reporter, ctgov, orcid, or 'all' (every enabled source in a sensible order). Without --mode, an organization sweep is run (or an ID fetch if --ids is given); iCite and ORCID read what the lake and the directory need.
usage: tessera ingest [-h] [--mode MODE] [--ids ID [ID ...]] [--ids-file PATH] [--query QUERY]
[--since YYYY-MM-DD] [--until YYYY-MM-DD] [--full] [--max-results N]
source| Argument | Meaning | |||||
|---|---|---|---|---|---|---|
source | pubmed \ | icite \ | reporter \ | ctgov \ | orcid \ | all |
--mode MODE | org \ | query \ | ids \ | linked, people, or citing (pubmed) \ | pi (reporter) \ | refresh (icite, orcid) |
--ids ID | IDs to fetch | |||||
--ids-file PATH | file with one ID per line | |||||
--query QUERY | source query (PubMed syntax, Essie, or RePORTER JSON) | |||||
--since YYYY-MM-DD | start of the window to fetch | |||||
--until YYYY-MM-DD | end of the window to fetch | |||||
--full | ignore the saved checkpoint | |||||
--max-results N | stop after N records (for quick checks) |
tessera replay#
Rebuild lake records from a run's raw payloads.
usage: tessera replay [-h] source run_id| Argument | Meaning | ||||
|---|---|---|---|---|---|
source | pubmed \ | icite \ | reporter \ | ctgov \ | orcid |
run_id | the run to replay (see tessera runs) |
tessera resolve#
Update people, links, and authorship suggestions from the lake.
usage: tessera resolve [-h] [--people-only]| Argument | Meaning |
|---|---|
--people-only | stop after people |
tessera build#
Rebuild derived artifacts.
usage: tessera build [-h] WHAT ...tessera build search#
The search and serving index.
usage: tessera build search [-h]tessera build discovery#
Concept profiles, similar people, and the collaboration graph.
usage: tessera build discovery [-h]tessera build opportunities#
Who fits each open funding opportunity (after discovery).
usage: tessera build opportunities [-h]tessera sync#
Fetch every source and resolve, in the right order (the usual command).
usage: tessera sync [-h] [--no-fetch] [--full]| Argument | Meaning |
|---|---|
--no-fetch | only resolve the lake |
--full | ignore saved checkpoints |
tessera people#
The people directory.
usage: tessera people [-h] ACTION ...tessera people import#
Import a roster CSV file.
usage: tessera people import [-h] path| Argument | Meaning |
|---|---|
path | CSV file with a header row |
tessera people public#
Give people a profile on the public site (or take it away).
usage: tessera people public [-h] [--off] person [person ...]| Argument | Meaning |
|---|---|
person | IDs (per_…) |
--off | take the profiles away |
tessera people list#
List people.
usage: tessera people list [-h] [--status STATUS] [--limit LIMIT]| Argument | Meaning | |||
|---|---|---|---|---|
--status STATUS | active \ | former \ | candidate \ | all |
--limit LIMIT | at most this many (default: 50) |
tessera groups#
Groups: divisions, programs, labs, and other kinds.
usage: tessera groups [-h] ACTION ...tessera groups import#
Import groups or memberships from a CSV or JSON file.
Import groups (a CSV file with a 'name' column) or memberships (a CSV file with a 'group' column), or both (a JSON file with 'groups' and 'memberships'). Rows carry the source's own identifiers, so importing the same source again updates what it made earlier. See docs/groups.md for the columns.
usage: tessera groups import [-h] --source SOURCE [--complete] [--dry-run] path| Argument | Meaning |
|---|---|
path | CSV or JSON file |
--source SOURCE | a short name for where the file comes from, like hr |
--complete | the file is the source's whole list: archive its missing groups and end its missing current memberships today |
--dry-run | report what would change; change nothing |
tessera groups attribute#
Suggest which papers are each group's own (also run by sync).
usage: tessera groups attribute [-h]tessera groups public#
Give groups a page on the public site (or take it away).
usage: tessera groups public [-h] [--off] groups [groups ...]| Argument | Meaning |
|---|---|
groups | addresses, codes, or IDs |
--off | take the pages away |
tessera groups list#
List groups.
usage: tessera groups list [-h] [--kind KIND] [--all]| Argument | Meaning |
|---|---|
--kind KIND | only groups of this kind |
--all | include archived groups |
tessera ai#
The optional assistant ([ai] in the configuration).
usage: tessera ai [-h] ACTION ...tessera ai check#
One round trip to the configured provider.
usage: tessera ai check [-h]tessera opportunities#
Funding opportunities the organization tracks itself.
usage: tessera opportunities [-h] ACTION ...tessera opportunities import#
Add or update opportunities from a CSV or JSON file.
Import opportunities the organization tracks itself (foundation calls, internal pilot funds, limited submissions) from a CSV file with a header, or a JSON list. Columns: source, external_id, kind, number, title, sponsor, description, url, posted_on, closes_on, internal_deadline, award_floor, award_ceiling, limited_submission, eligibility_notes, applicant_types. Importing the same rows again updates them. Nothing is written if any row has a problem. Federal opportunities come from Grants.gov by themselves.
usage: tessera opportunities import [-h] [--source SOURCE] [--complete] [--dry-run] path| Argument | Meaning |
|---|---|
path | CSV or JSON file |
--source SOURCE | who offers or lists them, for every row (instead of a source column) |
--complete | the file is the source's whole list: archive its opportunities the file omits |
--dry-run | report what would change; change nothing |
tessera digest#
Pending work for each account: groups' inboxes and review queues.
usage: tessera digest [-h] ACTION ...tessera digest show#
Print the digests.
usage: tessera digest show [-h] [--account ACCOUNT]| Argument | Meaning |
|---|---|
--account ACCOUNT | only this account (username) |
tessera digest send#
Email each account with pending work its digest ([mail]); run it weekly.
usage: tessera digest send [-h] [--account ACCOUNT] [--dry-run]| Argument | Meaning |
|---|---|
--account ACCOUNT | only this account (username) |
--dry-run | print the messages instead of sending them |
tessera publish#
Write the public site: pages for the people and groups that opted in.
Write a static public site from an allowlisted projection: a page for every person and group that opted in, with citations and links rather than abstracts. The site is built and checked (structure, accessibility, links, and colors) before it replaces the published one. Run it daily, after sync.
usage: tessera publish [-h] [--out OUT] [--check]| Argument | Meaning |
|---|---|
--out OUT | where to write it ([publish] out) |
--check | build and check, but write nothing |
tessera backup#
Write one archive of the ledger, the lake, snapshots, and the configuration.
Write a .tar.gz archive that tessera restore can load into an empty data home, on SQLite or PostgreSQL: the ledger as portable rows, the lake, report snapshots, and the configuration, each file with its SHA-256 digest. The search index, discovery files, and public site are rebuilt from these. Holds the job lock, so no sync runs meanwhile.
usage: tessera backup [-h] [--out OUT] [--raw] [--verify ARCHIVE]| Argument | Meaning |
|---|---|
--out OUT | file or folder to write (default: <data home>/backups/) |
--raw | include the raw responses from each source too |
--verify ARCHIVE | check an archive instead of writing one |
tessera restore#
Load a backup into an empty data home and ledger.
Check an archive, then load it into the configured data home and ledger, which must be empty (a new SQLite file or PostgreSQL database). The ledger is brought to the backup's schema, loaded, and upgraded to this version. Then run tessera build.
usage: tessera restore [-h] archive| Argument | Meaning |
|---|---|
archive | the backup to restore |
tessera export#
Write a full exit export: every table as Parquet and CSV, with a data dictionary.
Write everything Tessera knows, in open formats readable without it: every ledger table and every lake table as Parquet and CSV, report snapshots, a data dictionary, and a manifest with digests. Password hashes and sessions are left out.
usage: tessera export [-h] out| Argument | Meaning |
|---|---|
out | a new, empty folder to write |
tessera alerts#
Check for failed runs, stale sources, and old backups; email [alerts] if any.
List what needs attention: runs that failed or partly failed in the last two days, sources that have gone stale, and backups older than [alerts] backup_days. With --send, email them to [alerts] email through [mail], once per new set of issues (and again after a week). tessera sync does this by itself when alerts are set up.
usage: tessera alerts [-h] [--send] [--force]| Argument | Meaning |
|---|---|
--send | email the issues, if any |
--force | send even if the same issues were sent this week |
tessera report#
Insight reports: list them, freeze snapshots, verify and export them.
Reports are named sets of Insight figures over a cohort and a period. A snapshot freezes one with the exact inputs its figures were computed from, so it can be verified and exported long after the data has moved on.
usage: tessera report [-h] ACTION ...tessera report list#
Reports and their snapshots.
usage: tessera report list [-h]tessera report snapshot#
Freeze a report now.
usage: tessera report snapshot [-h] [--note NOTE] report| Argument | Meaning |
|---|---|
report | the report's name or ID |
--note NOTE | why it was taken |
tessera report verify#
Compute a snapshot again from its frozen inputs and compare.
usage: tessera report verify [-h] snapshot| Argument | Meaning |
|---|---|
snapshot | the snapshot's ID |
tessera report export#
Write a snapshot's figures, records, and definitions to a file.
usage: tessera report export [-h] [--format {csv,parquet,json}] [--out OUT] snapshot| Argument | Meaning |
|---|---|
snapshot | the snapshot's ID |
--format FORMAT | (default: csv) |
--out OUT | the file to write (default: its name) |
tessera users#
Local accounts and their roles.
usage: tessera users [-h] ACTION ...tessera users add#
Create an account (prompts for a password).
usage: tessera users add [-h] [--name NAME] --role ROLE [--email EMAIL] [--person ID]
[--password-stdin]
username| Argument | Meaning |
|---|---|
username | lowercase letters, digits, dots, dashes, underscores |
--name NAME | the name shown and recorded on decisions |
--role ROLE | admin, curator, manager, researcher, or viewer; a curator for some people only is curator=group:<name, address, or code> or curator=person:<ID>; a manager is manager=group:<…>, or manager=group:<…>+below to manage the groups below too (repeatable) |
--email EMAIL | contact address |
--person ID | the person a researcher account belongs to |
--password-stdin | read the password from standard input |
tessera users list#
List accounts and roles.
usage: tessera users list [-h]tessera users disable#
Sign an account out and block it.
usage: tessera users disable [-h] username| Argument | Meaning |
|---|---|
username |
tessera users enable#
Unblock.
usage: tessera users enable [-h] username| Argument | Meaning |
|---|---|
username |
tessera users reset-password#
Set a new password (signs the account out everywhere).
usage: tessera users reset-password [-h] [--password-stdin] username| Argument | Meaning |
|---|---|
username | |
--password-stdin | read the password from standard input |
tessera users roles#
Replace an account's roles.
usage: tessera users roles [-h] --role ROLE username| Argument | Meaning |
|---|---|
username | |
--role ROLE | admin, curator, manager, researcher, or viewer; a curator for some people only is curator=group:<name, address, or code> or curator=person:<ID>; a manager is manager=group:<…>, or manager=group:<…>+below to manage the groups below too (repeatable) |
tessera evidence#
The authorship model: learned weights and auto-accept.
usage: tessera evidence [-h] ACTION ...tessera evidence status#
The active model, the latest evaluation, and auto-accept.
usage: tessera evidence status [-h]tessera evidence evaluate#
Fit learned weights to decisions and compare on held-out people.
usage: tessera evidence evaluate [-h]tessera evidence release#
Make the evaluated learned model active (if it was better).
usage: tessera evidence release [-h]tessera evidence revert#
Go back to the hand-set weights.
usage: tessera evidence revert [-h]tessera evidence auto-accept#
Accept strong suggestions automatically, where precision allows.
usage: tessera evidence auto-accept [-h] (--threshold THRESHOLD | --off | --undo BATCH)| Argument | Meaning |
|---|---|
--threshold THRESHOLD | switch on at this score (one the evaluation measured) |
--off | switch off |
--undo BATCH | undo one automatic batch |
tessera eval#
Evaluate matching quality.
usage: tessera eval [-h] WHAT ...tessera eval authorship#
Precision, recall, and calibration of authorship suggestions.
usage: tessera eval authorship [-h] [--gold CSV]| Argument | Meaning |
|---|---|
--gold CSV | adjudicated pairs: person,pmid,label |
tessera runs#
Recent runs: each one's status, and how many records a fetch found.
usage: tessera runs [-h] [--source SOURCE] [--limit LIMIT]| Argument | Meaning |
|---|---|
--source SOURCE | only this source |
--limit LIMIT | at most this many (default: 20) |
tessera serve#
Run the web app and API.
usage: tessera serve [-h] [--host HOST] [--port PORT] [--workers WORKERS] [--reload]| Argument | Meaning |
|---|---|
--host HOST | override server.host |
--port PORT | override server.port |
--workers WORKERS | server processes (overrides server.workers; default 1) |
--reload | restart on code changes (development) |