How to modify pipelines and change CLI or UI logic

Welcome to 2.0 release! BojAI offers flexible tools to help you customize pre-built pipelines and retrieve pipeline code for inspection or editing — both via CLI and UI. These tools make it easy to adapt existing logic without starting from scratch.


Modify a Built-in Pipeline

Use the bojai modify command to copy a pre-existing built-in pipeline to your working directory for customization.

What It Does

  • Copies the full pipeline code (model, data processor, trainer, user logic)
  • Lets you edit the logic freely
  • Perfect for adapting existing logic to new tasks or data

Steps (CLI)

  1. List available built-in pipelines
bojai list --pipelines
  1. Modify a pipeline
bojai modify --pipeline <pipeline_name> --directory <target_folder>

This will copy the selected pipeline into <target_folder>.


Checkout Pipeline Code

Use bojai checkout to retrieve and view the code for a specific pipeline directory.

Use Cases

  • View your project code in CLI or UI
  • Continue editing an existing pipeline
  • Rebuild or re-deploy from previously saved state

Steps (CLI)

bojai checkout --directory <target_folder>

This will copy the backend CLI files into <target_folder>.


Steps (UI)

bojai checkout --directory <existing_pipeline_folder> --ui

This will copy the backend UI files into <target_folder>.


Tips

  • Make sure the pipeline was previously created using bojai build or bojai modify
  • Checkout does not overwrite files — it’s safe to use without losing progress
  • Use modify to branch or experiment with new versions of a pipeline
  • Make sure to include your modified files directory address when building your pipeline