You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add CLI reference and extractor docs for nexuslims extract command
Documents the `nexuslims extract` command in cli_reference.md and
extractors.md, and corrects the help text in extract.py to accurately
describe where output files are written (alongside the input file, not
the NexusLIMS data directory, unless the file is under
NX_INSTRUMENT_DATA_PATH).
Copy file name to clipboardExpand all lines: docs/user_guide/extractors.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -809,6 +809,49 @@ Use the `extensions` dictionary when:
809
809
810
810
See {ref}`Helper Functions <metadata-helper-functions>` for the `add_to_extensions()` helper function and {doc}`../dev_guide/writing_extractor_plugins` for complete guidance on using extensions in your own extractors.
811
811
812
+
(extract-cli)=
813
+
## Command-Line Extraction
814
+
815
+
The `nexuslims extract` command lets you extract metadata and generate preview
816
+
thumbnails for individual files directly from the terminal, without writing any
817
+
Python code and without a full NexusLIMS deployment.
818
+
819
+
### Quick reference
820
+
821
+
```bash
822
+
# Print extracted metadata as JSON
823
+
nexuslims extract /path/to/file.dm4
824
+
825
+
# Extract metadata only (skip preview generation)
826
+
nexuslims extract --no-preview /path/to/file.msa
827
+
828
+
# Generate a preview thumbnail only, saved to a specific path
0 commit comments