GuidesCLI Reference

CLI command reference

Checked against the current source command registry (version 0.3.0, 17 September 2026). Install from the source checkout; the package is not currently published on public PyPI.

brainmaps --help
brainmaps upload image --help
brainmaps register run --help

Global options are --api-url, --version and --help. Use uv run brainmaps when running from the source checkout. There is no global --visual option and no ls, up, spec or dl shorthand.

Commands

The following command names come from the current Typer registry. Arguments and options belong to the individual command; its --help is the definitive syntax.

Authentication

CommandPurpose
brainmaps signupCreate a BrainMaps account and log in.
brainmaps loginAuthenticate with BrainMaps API.
brainmaps logoutRevoke current session token and clear local auth.

Token

CommandPurpose
brainmaps token listList personal access tokens for the current user.
brainmaps token createCreate a personal access token.
brainmaps token revokeRevoke an existing token.
brainmaps token registerRegister an existing token into local CLI config.

Admin

CommandPurpose
brainmaps admin pendingShow what awaits staff action: unapproved accounts and built releases.
brainmaps admin approveApprove an account so uploads and other writes unlock.

Config

CommandPurpose
brainmaps config set-api-urlSet the default API URL.
brainmaps config get-api-urlPrint configured API URL.
brainmaps config set-tokenStore API token locally.
brainmaps config showShow effective config values.

Species

CommandPurpose
brainmaps species listList all species.
brainmaps species searchRequest species search; the current API ignores the search filter.
brainmaps species getGet details for one species.

Brain

CommandPurpose
brainmaps brain listList brains.
brainmaps brain getShow details for one brain.
brainmaps brain createCreate a brain from a new file upload or an existing upload.

File

CommandPurpose
brainmaps file listList file uploads visible to the current user.
brainmaps file getGet details for one file upload.

Upload

CommandPurpose
brainmaps upload fileUpload one imaging file, confirm its metadata, and queue conversion.
brainmaps upload folderUpload a folder (including zarr datasets).
brainmaps upload imageConvert an imaging file to precomputed and upload it to S3 in one step.
brainmaps upload listList recent uploads.

Convert

CommandPurpose
brainmaps convert niftiConvert NIfTI to Neuroglancer precomputed format.
brainmaps convert tiff-precomputedConvert TIFF or OME-TIFF to Neuroglancer precomputed format.
brainmaps convert zarr-precomputedConvert Zarr or OME-Zarr to Neuroglancer precomputed format.
brainmaps convert tiff-to-zarrConvert a TIFF stack to pyramidal Zarr.
brainmaps convert tiff-to-omezarrConvert TIFF inputs to OME-Zarr.
brainmaps convert validate-omezarrValidate an OME-Zarr folder layout and metadata.

S3

CommandPurpose
brainmaps s3 configureSet or update S3 settings.
brainmaps s3 showPrint S3 configuration.
brainmaps s3 preflightWrite, verify, and optionally public-probe a tiny precomputed dataset.

Serve

CommandPurpose
brainmaps serve precomputedServe Neuroglancer precomputed datasets with browser-safe headers.

Atlas

CommandPurpose
brainmaps atlas export-brainglobeQueue a BrainGlobe export as the atlas creator or a delegated administrator.
brainmaps atlas publish-releasePublish a built release as the atlas creator or a delegated administrator.
brainmaps atlas import-brainglobeImport a BrainGlobe reference atlas, metadata first.

Ingest

CommandPurpose
brainmaps ingest createCreate ingest job metadata before/while local processing runs.
brainmaps ingest listList ingest jobs.
brainmaps ingest getGet one ingest job.
brainmaps ingest artifactAttach artifact metadata to an ingest job.
brainmaps ingest progressUpdate ingest status and/or progress.
brainmaps ingest finalizeFinalize an ingest job into FileUpload + Brain records.

Jobs

CommandPurpose
brainmaps jobs listList your jobs (staff see everyone’s).
brainmaps jobs getShow one job in full.
brainmaps jobs retryReset a failed or cancelled job to queued.
brainmaps jobs cancelCancel a queued or in-flight job.

Worker

CommandPurpose
brainmaps worker runClaim and execute queued jobs (generic queue + atlas builds).

Register

CommandPurpose
brainmaps register createCreate a registration run record in the BrainMaps API.
brainmaps register listList registration runs.
brainmaps register getShow one registration run.
brainmaps register progressUpdate registration run progress and/or metrics.
brainmaps register artifactAttach a registration artifact URL to a run.
brainmaps register batchPlan a platform-backed consensus-template registration batch.
brainmaps register batch-runExecute stage 1 of a consensus-template batch plan.
brainmaps register batch-publishPublish subject-level registration outputs from a completed stage-1 batch.
brainmaps register group-publishPublish a completed local group registration workflow into the BrainMaps API.
brainmaps register runRun a local registration workflow with standardized ANTSpyX conventions.
brainmaps register groupBuild a consensus template and register each subject into template space.

Verify

CommandPurpose
brainmaps verify matrixGenerate a multi-format sample matrix and optionally publish it.

Current limitations

  • species get looks up an exact common name despite its current argument help saying ID. Species search is not implemented by the API filter.
  • brain list --category is currently ignored by the API. Use numeric --species instead.
  • There are no CLI brain update/delete, species-create or file-download commands. Add species through the website or API.
  • upload file --json skips metadata confirmation; it does not queue conversion by itself.
  • TIFF/Zarr-to-precomputed conversion selects the first channel/time/sample and can rescale values. Preserve existing multichannel Zarr with upload folder.
  • --transcriptomic marks a segmentation layer; it does not import a gene-expression matrix.
  • Local registration exists; generic queued registration is not a supported worker job kind.

See uploads, registration and workers for complete workflows.

BrainMaps Documentation