# CLI reference


Every command is available both as `cellclass <subcommand>` and as the legacy `cellclass-<subcommand>` executable; both point at the same command object.


[cellclass](../../reference/cli/cellclass.md)  
Train and evaluate cell-image classifiers.


# Prepare data


Build and inspect the labelled crop dataset.


[dataset](../../reference/cli/dataset.md)  
Convert cell images in DIR to a training dataset.

[sample](../../reference/cli/sample.md)  
Sample example images from DATASET.


# Train and evaluate


Fit a model and measure how well it does.


[train](../../reference/cli/train.md)  
Train a model using an ROI dataset or resume from saved state.

[test](../../reference/cli/test.md)  
Evaluate a trained model against a dataset.

[batch](../../reference/cli/batch.md)  
Generate training runs from BATCH.


# Deploy


Extract a trained model and submit cluster jobs.


[extract](../../reference/cli/extract.md)  
Extract a TorchScript model from training settings FILE.

[sbatch](../../reference/cli/sbatch.md)  
Submit a CellClass training job to SLURM.
