Tesserav1.0.1
GitHub

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 ...
ArgumentMeaning
--versionshow program's version number and exit
-c, --config PATHconfiguration file (default: $TESSERA_CONFIG or ./tessera.toml)
-v, --verbosemore output
-q, --quietonly warnings and errors

tessera init#

Create a configuration file and data home.

usage: tessera init [-h] [--force]
ArgumentMeaning
--forceoverwrite 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]
ArgumentMeaning
pathwhere to build it (default: ./demo)
--forcereplace a demo already there
--seed SEEDanother 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]
ArgumentMeaning
pathwhere to build it, or reuse (default: ./bench)
--people PEOPLEpeople (default 1,000)
--papers PAPERSpapers (default 50,000)
--seed SEEDanother seed, another organization
--rebuildbuild it again even if it is there
--samples SAMPLESrequests timed per page (default 30)
--users USERSsimulated users at once (default 20; 0 skips)
--seconds SECONDShow long each run of users lasts (default 60)
--workers WORKERSserver processes for the users (default 4)
--only ONLYrun only this step after the build (repeat for more)

tessera doctor#

Check that this installation is ready.

usage: tessera doctor [-h] [--online] [--production]
ArgumentMeaning
--onlinealso test public API reachability
--productionalso 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 ...]
ArgumentMeaning
datasetsdatasets to compact (default: all)

tessera lake gc#

Delete superseded files past retention.

usage: tessera lake gc [-h] [--retention-days DAYS]
ArgumentMeaning
--retention-days DAYSkeep 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
ArgumentMeaning
sourcepubmed \icite \reporter \ctgov \orcid \all
--mode MODEorg \query \ids \linked, people, or citing (pubmed) \pi (reporter) \refresh (icite, orcid)
--ids IDIDs to fetch
--ids-file PATHfile with one ID per line
--query QUERYsource query (PubMed syntax, Essie, or RePORTER JSON)
--since YYYY-MM-DDstart of the window to fetch
--until YYYY-MM-DDend of the window to fetch
--fullignore the saved checkpoint
--max-results Nstop after N records (for quick checks)

tessera replay#

Rebuild lake records from a run's raw payloads.

usage: tessera replay [-h] source run_id
ArgumentMeaning
sourcepubmed \icite \reporter \ctgov \orcid
run_idthe run to replay (see tessera runs)

tessera resolve#

Update people, links, and authorship suggestions from the lake.

usage: tessera resolve [-h] [--people-only]
ArgumentMeaning
--people-onlystop after people

tessera build#

Rebuild derived artifacts.

usage: tessera build [-h] WHAT ...

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]
ArgumentMeaning
--no-fetchonly resolve the lake
--fullignore 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
ArgumentMeaning
pathCSV 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 ...]
ArgumentMeaning
personIDs (per_…)
--offtake the profiles away

tessera people list#

List people.

usage: tessera people list [-h] [--status STATUS] [--limit LIMIT]
ArgumentMeaning
--status STATUSactive \former \candidate \all
--limit LIMITat 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
ArgumentMeaning
pathCSV or JSON file
--source SOURCEa short name for where the file comes from, like hr
--completethe file is the source's whole list: archive its missing groups and end its missing current memberships today
--dry-runreport 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 ...]
ArgumentMeaning
groupsaddresses, codes, or IDs
--offtake the pages away

tessera groups list#

List groups.

usage: tessera groups list [-h] [--kind KIND] [--all]
ArgumentMeaning
--kind KINDonly groups of this kind
--allinclude 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
ArgumentMeaning
pathCSV or JSON file
--source SOURCEwho offers or lists them, for every row (instead of a source column)
--completethe file is the source's whole list: archive its opportunities the file omits
--dry-runreport 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]
ArgumentMeaning
--account ACCOUNTonly 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]
ArgumentMeaning
--account ACCOUNTonly this account (username)
--dry-runprint 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]
ArgumentMeaning
--out OUTwhere to write it ([publish] out)
--checkbuild 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]
ArgumentMeaning
--out OUTfile or folder to write (default: <data home>/backups/)
--rawinclude the raw responses from each source too
--verify ARCHIVEcheck 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
ArgumentMeaning
archivethe 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
ArgumentMeaning
outa 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]
ArgumentMeaning
--sendemail the issues, if any
--forcesend 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
ArgumentMeaning
reportthe report's name or ID
--note NOTEwhy it was taken

tessera report verify#

Compute a snapshot again from its frozen inputs and compare.

usage: tessera report verify [-h] snapshot
ArgumentMeaning
snapshotthe 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
ArgumentMeaning
snapshotthe snapshot's ID
--format FORMAT(default: csv)
--out OUTthe 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
ArgumentMeaning
usernamelowercase letters, digits, dots, dashes, underscores
--name NAMEthe name shown and recorded on decisions
--role ROLEadmin, 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 EMAILcontact address
--person IDthe person a researcher account belongs to
--password-stdinread 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
ArgumentMeaning
username

tessera users enable#

Unblock.

usage: tessera users enable [-h] username
ArgumentMeaning
username

tessera users reset-password#

Set a new password (signs the account out everywhere).

usage: tessera users reset-password [-h] [--password-stdin] username
ArgumentMeaning
username
--password-stdinread the password from standard input

tessera users roles#

Replace an account's roles.

usage: tessera users roles [-h] --role ROLE username
ArgumentMeaning
username
--role ROLEadmin, 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)
ArgumentMeaning
--threshold THRESHOLDswitch on at this score (one the evaluation measured)
--offswitch off
--undo BATCHundo 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]
ArgumentMeaning
--gold CSVadjudicated 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]
ArgumentMeaning
--source SOURCEonly this source
--limit LIMITat most this many (default: 20)

tessera serve#

Run the web app and API.

usage: tessera serve [-h] [--host HOST] [--port PORT] [--workers WORKERS] [--reload]
ArgumentMeaning
--host HOSToverride server.host
--port PORToverride server.port
--workers WORKERSserver processes (overrides server.workers; default 1)
--reloadrestart on code changes (development)
Describes Tessera 1.0.1. Apache License 2.0. Screenshots show an invented organization; every person and record in them is fictional.