Common commands
Below is a list of common Viash commands to develop and test components. Please visit the Viash guide or reference documentation for more in-depth information.
Download test data
Section titled “Download test data”Download all test resources from the S3 bucket into resources_test/:
scripts/create_datasets/test_resources.shBuild all components
Section titled “Build all components”Build all components in a namespace:
viash ns build --parallelBuild all Docker containers
Section titled “Build all Docker containers”Build all Docker containers:
viash ns build --parallel --setup cachedbuildTest a component
Section titled “Test a component”Test one component:
viash test path/to/config.vsh.yamlRun all tests in a task:
viash ns test --parallelEdit script
Section titled “Edit script”Auto-generate the VIASH START/VIASH END placeholder in your script:
viash config inject path/to/config.vsh.yamlRun a component
Section titled “Run a component”Display the help text of a component:
viash run path/to/config.vsh.yaml -- --helpRun a component with arguments:
viash run path/to/config.vsh.yaml -- --input dataset.h5ad --output output.h5adView Dockerfile
Section titled “View Dockerfile”View the Dockerfile generated for a component:
viash run path/to/config.vsh.yaml -engine docker -- ---dockerfile