Command line
Every fil command, grouped by what you are doing. A paper can be named by its fil ID, DOI, arXiv ID, OpenAlex ID or title.
| fil add <paper> | Add a paper and record everything it cites. By DOI, arXiv ID, PMID, OpenAlex ID, link or title. |
| fil expand | Follow references outward and grow the graph, most-cited first.--max-nodes 500 --max-depth 3 |
| fil fetch [paper] | Download the legal open-access PDFs of your papers.--max N --dry-run |
| fil import [file…] | Identify PDFs you already have and file them in your library. |
| fil zotero | Bring in your Zotero library.--dry-run --from FILE --tags --no-pdfs --no-refs --skip KEY |
| fil match <fil ID> [id] | Find one of your own documents in OpenAlex. |
| fil search <words> | Find passages in your PDFs by keyword, with their page.--paper X --view NAME --limit N --references --pick |
| fil list | List the papers in your library, with their PDF and text. |
| fil show <paper> | Tell everything the library knows about one paper. |
| fil neighbours <paper> | What a paper cites, and what in your library cites it. |
| fil path <paper> <paper> | The shortest chain of citations between two papers. |
| fil groups [group] | Groups of papers that cite one another. |
| fil stats | Summarise your library. |
| fil library | Show your library folder. |
| fil library new <folder> | Make another library in a new folder. |
| fil library move <folder> | Move your library to a new folder. |
| fil library scan | Find papers you moved, renamed or deleted in papers/. |
| fil extract [paper] | Read the text of your PDFs so they can be searched.--again |
| fil export graphml | Write the citation graph for Gephi, Cytoscape or NetworkX. |
| fil mcp | Serve your library to an AI assistant over MCP.--read-only --library NAME |
| fil where | Print where your library, settings and cache live. |
| fil theme | Choose fil's colours in the terminal. |
| fil cache clear | Delete every cached OpenAlex response. |
| fil version | Print the version. |
Every command explains itself: fil help <command>.