TVB-O logo TVB-O Documentation
  • Home
  • Usage
  • CLI
  • Data Model
  • Platform
  • Agents
  1. Command-Line Interface
  • Home
  • Installation
  • Quick Reference
    • Examples
  • Usage
    • Fundamentals
      • Getting Started
      • Defining Dynamical Systems
      • Defining Networks
      • Coupling Functions
      • Integrators
      • Simulation Experiments
      • The Experiment Result
      • Code Generation
    • Observation & Analysis
      • Observation Models
      • Algorithms
      • Loss Functions
      • Parameter Exploration
      • Model Fitting
      • Bifurcation Analysis
      • Bifurcation Tutorial
        • 1. Linear Stability
        • 2. 2D Phase Portraits
        • 3. Saddle-Node
        • 4. Pitchfork
        • 5. Hysteresis
        • 6. Hopf
        • 7. Numerical Continuation
      • Visualization
      • Output Specification
    • Simulation Features
      • Initial Conditions & Initial State
      • Events & Stimulation
      • Noise & Stochastic Integration
      • Cross-Backend Numerical Parity
    • Advanced
      • Creating Custom Networks
      • PDE Simulation
      • Heterogeneous Node Dynamics
      • Heterogeneous Edge Dynamics
      • Unit-Aware Computations
  • Command-Line Interface
    • Specs and resolution
    • Verbs
      • tvbo run
      • tvbo export
      • tvbo save
      • tvbo import
      • tvbo info
      • tvbo formats
      • tvbo validate
      • tvbo config
      • tvbo skills
    • Workflows & HPC
      • tvbo workflow
      • Workflow kits anatomy
      • Backends
      • HPC patterns
    • Recipes
  • Interoperability
    • The Virtual Brain (TVB)
      • Connectome
      • Monitors
    • tvboptim Backend
      • Jansen-Rit
      • Reduced Wong-Wang
      • EI Tuning
      • TBPTT
      • Hopf Pareto
      • Bayesian Inference
    • PyRates
      • Round-Trip Demo
      • Analysis
      • Bifurcation
      • Heterogeneous Networks
    • NetworkDynamics.jl
      • Network Diffusion
      • 2D Network Diffusion
      • Kuramoto Oscillators
      • Heterogeneous Kuramoto
      • FitzHugh-Nagumo
      • Cascading Failure
      • Stress on Truss
    • BifurcationKit.jl
      • Tsodyks-Markram Model
      • CO Oxidation Model
    • ModelingToolkit.jl
      • Higher-Order ODE Lowering
    • NeuroML / LEMS
      • LEMS Export
      • IRI vs. Inline YAML
      • LEMS Examples
        • Ex0: Integrate-and-Fire
        • Ex1: Hodgkin-Huxley
        • Ex2: Izhikevich
        • Ex3: HH Network with Synapses
        • Ex4: Kinetic Scheme Channels
        • Ex5: Detailed HH Cell
        • Ex6: NMDA Synapse
        • Ex7: Short-Term Plasticity
        • Ex8: Adaptive Exponential IF
        • Ex9: FitzHugh-Nagumo
        • Ex10: Q10 Temperature Dependence
        • Ex12: Network 2
        • Ex13: Population Instances
        • Ex14: PyNN Cells
        • Ex15: Calcium Dynamics
        • Ex16: Input Types
        • Ex17: Tissue Simulation
        • Ex18: Goldman-Hodgkin-Katz
        • Ex19: Gap Junctions
        • Ex20: Analog Synapses
        • Ex21: Current-Based Synapses
        • Ex22: Pinsky-Rinzel CA3
        • Ex23: Spike Times
        • Ex24: Fractional Conductance
        • Ex25: Multi-Compartment Cells
        • Ex26: Connection Weights
        • Ex27: Multi-Synapses
      • NML2 Documentation
        • Abstract Cells
        • Single-Compartment HH Cell
        • Full Cell
        • Simple Morphology
        • Simple Ion Channel
        • Synapse Types
        • Analog Synapses
        • Gap Junctions
        • Inputs
        • Instance-Based Network
        • Full NeuroML
    • BIDS
      • BIDS Export
      • Computational Modelling
    • OpenMINDS
      • OpenMINDS Interoperability

  • Platform
  • Agentic Coding
    • For Beginners
    • Installing & Tuning Skills
    • Skill Reference
    • AGENTS.md
    • Maintainer Guide
  • Replication Studies
    • Jansen & Rit (1995)

  • Ontology
    • Specification (Widoco)
    • WebVOWL visualisation

  • Data Model
    • Schemas
      • Common
      • SANDS
      • Software
      • TVB Datamodel
      • TVB Databases
      • TVB-O Study
      • TVB-O Units
      • Types
    • Classes
      • Aggregation
      • Algorithm
      • Algorithm Include
      • Algorithm Stage
      • Analysis
      • Argument
      • BIDS Entities
      • Binding
      • Boundary Condition
      • Brain Atlas
      • Brain Region Series
      • Branch Switch
      • Callable
      • Case
      • Class Reference
      • Clinical Improvement
      • Clinical Scale
      • Clinical Score
      • Common Coordinate Space
      • Conditional Block
      • Contact
      • Continuation
      • Coordinate
      • Coupling
      • Coupling Input
      • Dataset
      • Data Source
      • DBSDataset
      • DBSProtocol
      • DBSSubject
      • Derived Observation
      • Derived Parameter
      • Derived Variable
      • Differential Operator
      • Differentiation
      • Discretization
      • Distribution
      • Dynamics
      • Edge
      • EField
      • Electrode
      • Equation
      • Event
      • Execution Config
      • Exploration
      • Exploration Axis
      • Field State Variable
      • File
      • Free Parameter
      • Function
      • Function Call
      • Graph Generator
      • Inference
      • Initial State
      • Integrator
      • Likelihood
      • Loss Function
      • Matrix
      • Measure Spec
      • Mesh
      • Named Array
      • NDArray
      • Network
      • Node
      • Noise
      • Observation
      • Optimization
      • Optimization Stage
      • Option
      • Parameter
      • Parameter Spec
      • Parcellation
      • Parcellation Entity
      • Parcellation Terminology
      • PDE
      • PDESolver
      • Phenotype
      • Prior
      • Procedure
      • Procedure Step
      • Provenance
      • Random Stream
      • Range
      • Reference
      • Reference Fingerprint
      • Region Mapping
      • Sample
      • Scalar Value
      • Session
      • Simulation Experiment
      • Simulation Study
      • Simulation Tool
      • Software Environment
      • Software Package
      • Software Requirement
      • Solver
      • Spatial Domain
      • Spatial Field
      • State Value
      • State Variable
      • Stimulation Setting
      • Stimulus
      • Study
      • Subject
      • Temporal Applicable Equation
      • Time Series
      • Tractogram
      • Tuning Objective
      • Update Rule
    • Slots
      • abbreviation
      • abs_tol
      • absolute_value
      • accelerator
      • acquisition
      • acronym
      • active_contacts
      • additional_equations
      • additive
      • affect
      • affect_negative
      • affect_parameters
      • affect_states
      • age
      • aggregate
      • aggregation
      • algorithm
      • algorithms
      • alternate Name
      • amplitude
      • analysis
      • anatomical Axes Orientation
      • application_category
      • apply_every
      • apply_on_dimension
      • args
      • arguments
      • atlas
      • author
      • authors
      • autonomous
      • aux_data
      • average
      • axes Origin
      • axis
      • baseline_value
      • batch_size
      • bc_type
      • bids
      • bids_dir
      • bids_root
      • bindings
      • bothside
      • boundaries
      • boundary_conditions
      • bounds
      • branches
      • build_hash
      • builder
      • call_args
      • callable
      • cases
      • category
      • center
      • checkpoint_interval
      • citation
      • citekey
      • class_call
      • class_reference
      • clinical_improvement
      • clinical_scores
      • coefficient
      • cohort
      • color
      • comment
      • compile
      • concept_iri
      • condition
      • condition_parameters
      • condition_states
      • conditional
      • conditionals
      • conditions
      • connectivity
      • connectivity_ref
      • constructor_args
      • contact_id
      • contacts
      • container_image
      • continuation
      • continuations
      • coordinate
      • coordinate_space
      • coordinates
      • coordinate Space
      • correlated
      • correlation
      • coupling
      • coupling_function
      • coupling_inputs
      • coupling_terms
      • coupling_variable
      • cse
      • curvature
      • data
      • data_file
      • data_source
      • data Location
      • dataset
      • dataset_id
      • dataset_path
      • datatype
      • date_created
      • date_modified
      • default
      • default Image
      • definition
      • degree
      • delay
      • delayed
      • delta_p
      • depends_on
      • derivative_initial_value
      • derived_from
      • derived_from_model
      • derived_observations
      • derived_parameters
      • derived_variables
      • description
      • descriptor
      • detect_bifurcation
      • detect_fold
      • development_status
      • diagnosis
      • differentiation
      • digital Identifier
      • dimension
      • dimension_labels
      • directed
      • discretization
      • distance
      • distance_unit
      • distribution
      • doi
      • domain
      • downsample_period
      • ds
      • ds_max
      • ds_min
      • dt
      • dtype
      • duration
      • dynamics
      • ecosystem
      • edge_matrix_files
      • edge_template
      • edges
      • efield
      • electrode_id
      • electrode_reference
      • electrodes
      • element
      • element_domains
      • element_type
      • elements
      • empirical_data
      • enforce
      • engine
      • entities
      • environment
      • environment_type
      • equation
      • equation_order
      • equation_type
      • evaluator
      • event_type
      • events
      • execution
      • experiment_yaml_hash
      • explorations
      • explored_values
      • expression
      • extension
      • field
      • field_dynamics
      • file
      • find_fixpoint
      • format
      • free
      • free_parameters
      • freeze_parameters
      • frequency
      • function
      • functions
      • funder
      • gaussian
      • generated_at
      • generated_by
      • geometry
      • graph_generator
      • grounding
      • group
      • groups
      • handedness
      • has_reference
      • hash
      • has Parent
      • head
      • hemi
      • hemisphere
      • heterogeneous
      • hi
      • history
      • homepage
      • hyperparameters
      • id
      • ifabsent
      • imaging_modality
      • includes
      • incoming_states
      • inferences
      • initial_expression
      • initial_state
      • initial_value
      • inner_coupling
      • inner_iterations
      • input
      • inputs
      • integration
      • intensity
      • intermediate_expressions
      • interoperates_with
      • interpolate_delays
      • interpolation
      • iri
      • is_accessible_for_free
      • issue_tracker
      • is Version Of
      • key
      • keys
      • keywords
      • label
      • labels_dimensions
      • labels_ordering
      • latex
      • learning_rate
      • learning_rate_schedule
      • learning_rate_warmup
      • lefthandside
      • lhs
      • library
      • license
      • likelihood
      • linear_solver
      • lo
      • loader
      • local
      • local_coupling_term
      • local_states
      • log_scale
      • lookup Label
      • loss
      • maintainer
      • manufacturer
      • max_bisection_steps
      • max_iterations
      • max_steps
      • measure
      • measure_specs
      • measure_type
      • measures
      • mesh
      • mesh_file
      • mesh_format
      • mesh_intervals
      • metadata
      • method
      • metric
      • modality
      • mode
      • model
      • model_equation_ref
      • model_paradigm
      • model_param_ref
      • model_type
      • modes
      • modified
      • module
      • modules
      • mtime
      • n
      • n_inversion
      • n_iterations
      • n_parallel
      • n_regions
      • n_sections
      • n_threads
      • n_trials
      • n_vertices
      • n_workers
      • name
      • native Unit
      • network
      • nev
      • newton_max_iterations
      • newton_tol
      • node_mapping
      • node_template
      • nodes
      • noise
      • noise_type
      • non_negative
      • normals
      • notes
      • num_chains
      • num_samples
      • num_warmup
      • number_of_elements
      • number_of_modes
      • number_of_nodes
      • number_of_stages
      • number_of_subjects
      • number_of_vertices
      • objective
      • objectives
      • observable
      • observational_measures
      • observations
      • observed
      • ode_solver
      • on_region
      • ontology Identifier
      • operating_system
      • operator_type
      • operators
      • optimizations
      • optional
      • options
      • original Lookup Label
      • output
      • output_equation
      • outsym
      • over
      • package
      • parallel_batch_size
      • parallel_mode
      • parameter
      • parameters
      • parcel_map_field
      • parcellation
      • parent_network
      • parent_score
      • path
      • percent_change
      • period
      • pipeline
      • platform
      • position
      • post_expression
      • pre_expression
      • precision
      • preconditioner
      • preprocessing
      • primary_weight
      • priors
      • procedure
      • processing_pipeline
      • programming_language
      • protocols
      • provenance
      • pulse_width
      • pycode
      • quantity_kind
      • random_seed
      • random_state
      • range
      • recon_path
      • reconstruction
      • record
      • reference
      • reference_publication
      • references
      • region
      • region_mapping
      • regional_connectivity
      • regions
      • rel_tol
      • related UBERONTerm
      • reported_optimum
      • repository
      • required
      • requirements
      • requires
      • rhs
      • righthandside
      • role
      • run_id
      • runtime_platform
      • same_as
      • sample
      • sampler
      • sampling_period
      • sampling_period_unit
      • sampling_rate
      • scale
      • scipy_ode_base
      • score
      • seed
      • segmentation
      • session_id
      • sessions
      • settings
      • sex
      • shape
      • sigma
      • simulation_experiments
      • simulation_period
      • size
      • skip_t
      • software
      • software_environment
      • solver
      • source
      • source_branch
      • source_code
      • source_experiment
      • source_network
      • source_observations
      • source_point
      • source_url
      • source_var
      • sources
      • space
      • sparse
      • stages
      • state
      • state_variables
      • state_wise_sigma
      • step
      • step_size
      • steps
      • stimulation
      • stimulation_variable
      • stimulus
      • strategy
      • structural_measures
      • subject_id
      • subjects
      • subnetwork
      • symbol
      • symmetry
      • system_type
      • tail
      • tail_samples
      • target
      • target_component
      • target_data
      • target_network
      • target_parameter
      • target_regions
      • target_structure
      • target_value
      • target_var
      • target_variable
      • targets
      • task_iri
      • task_name
      • template
      • tensor_coefficient
      • terminology
      • threshold_applied
      • time
      • time_dependent
      • time_integrator
      • time_post_surgery
      • time_range
      • time_scale
      • time_unit
      • timepoint
      • timing_info
      • title
      • tol_stability
      • tolerances
      • tool_role
      • tractogram
      • trajectory
      • transform
      • transforms
      • transient_time
      • trigger_times
      • truncation_window
      • type
      • unit
      • update_expression
      • update_rules
      • url
      • valid_diagonal
      • value
      • values
      • variable_of_interest
      • vectorized
      • version
      • version_spec
      • version Identifier
      • vertex_to_region
      • vertices_field
      • voi
      • volume_data
      • warmup
      • warmup_from
      • warmup_source
      • weight
      • weight_distribution
      • weighted
      • weighting
      • weights
      • window_size
      • wrt
      • x
      • y
      • year
      • z
    • Enumerations
      • Aggregation Type
      • Algorithm Composition Mode
      • Boundary Condition Type
      • Continuation Algorithm
      • Development Status
      • Dimension Type
      • Discretization Method
      • Domain Enforcement
      • Ecosystem Enum
      • Element Type
      • Environment Type
      • Event Type
      • Hemisphere
      • Imaging Modality
      • Initial State Method
      • Model Paradigm
      • Model Type
      • Noise Type
      • Numerical Discretization Method
      • Operator Type
      • Parallel Mode
      • Physical Dimension
      • Programming Language Enum
      • Reduction Type
      • Requirement Role
      • Sampling Axis
      • Sex Enum
      • Simulation Scale
      • Sparse Format
      • Specimen Enum
      • Standard Graph Type
      • System Type
      • Tool Role
      • Unit Enum
  • API Documentation
    • Platform
  • Developer

On this page

  • Command tree at a glance
  • What is a SPEC?
  • Verb reference
  • Two execution paths
  • Quick start
  • Edit this page
  • Report an issue

Command-Line Interface

The tvbo command-line interface is the primary entry point for running, exporting, importing, validating, and orchestrating TVB-O simulations from a shell. It is registry-driven (every backend and file format is a plug-in entry) and transport-aware (specs may be local files, ontology CURIEs, database names, or — in upcoming releases — HTTP URLs).

Command tree at a glance

tvbo
├── run         Execute a SimulationStudy or SimulationExperiment
├── export      Render a SPEC into a target format (no execution)
├── save        Like export, but with bundled binary data when supported
├── import      Load a foreign file (auto-dispatch by extension)
├── info        Inspect a SPEC (tasks, outputs, declared backends)
├── formats     List all registered I/O formats
├── version     Print the tvbo version
├── validate    [schema | bids | sedml | omex]
├── config      [path | show]
├── workflow    [plan | slurm | snakemake | nextflow | backends]
└── skills      [install | uninstall | sync]

What is a SPEC?

Most verbs take a single positional argument called SPEC, which can be:

Form Example Resolves to
File path ./study.yaml, /abs/path.yaml YAML loaded by LinkML
CURIE experiment:JR_Optimization, dynamics:JansenRit Database lookup by class + name
Bare name JR_Optimization Tries Study → Experiment → Dynamics in order
file:// URI file:///tmp/foo.yaml Same as a path
http(s):// URI (reserved) Pulled remotely in a future milestone

See Specs and resolution for the full rules.

Verb reference

Tip

Each page below documents one verb (or sub-tree) with all flags, exit codes, and worked examples.

  • Specs and resolution — how tvbo finds your file
  • tvbo run — execute a study or experiment
  • tvbo export — render code/serialisations without executing
  • tvbo save — export --with-data
  • tvbo import — load foreign files into TVBO objects
  • tvbo info — inspect a SPEC without running it
  • tvbo formats — list registered I/O formats
  • tvbo validate — schema, BIDS, SED-ML, OMEX validation
  • tvbo config — view CLI configuration
  • tvbo workflow — emit Slurm / Snakemake / Nextflow kits
  • tvbo skills — install AI-assistant skills for Claude Code, Cursor, Copilot
  • Workflow kits anatomy — what a generated kit contains
  • Backends — capability table, vectorize-vs-fanout
  • HPC patterns — containers, sharding, engine dispatch
  • Recipes — copy-paste cookbook

Two execution paths

The CLI exposes two complementary execution paths:

  1. Direct execution — tvbo run invokes the requested backend in-process and saves results. Best for laptops, CI, and short experiments.
  2. Workflow emission — tvbo workflow {slurm,snakemake,nextflow} writes a self-contained reproducibility kit (workflow artefact + frozen backend script + frozen YAML spec + README) and exits. The kit is portable: it can be tar-ed up, moved to an HPC cluster, and run independently of tvbo.

The same Study YAML produces a different DAG depending on the chosen backend, because the planner consults the backend capability table (mirrored from ontology/tvb-o-axioms.ttl §4.1) to decide which sweep axes can be vectorized inside the backend versus fanned out across workflow tasks.

Quick start

# Inspect a study
tvbo info study:Schirner2023_MultiscaleBNM_DM

# Render JAX code to stdout
tvbo export jax experiment:JR_MEG_FrequencyGradient_Optimization

# Run locally with the tvboptim backend
tvbo run experiment:JR_MEG_FrequencyGradient_Optimization -b tvboptim -o ./out

# Emit a Snakemake reproducibility kit
tvbo workflow snakemake experiment:JR_MEG_FrequencyGradient_Optimization \
    --backend jax -o ./kit-jax

# Submit the same study via Slurm in one shot
tvbo run experiment:JR_MEG_FrequencyGradient_Optimization \
    --engine slurm --backend jax -o ./run-001
Unit-Aware Computations
Specs and resolution
 

© Charité - Universitätsmedizin Berlin

  • Edit this page
  • Report an issue