CLI Example Scripts
Ready-to-use bash scripts demonstrating common AIchor CLI workflows.
- Projects and Engines — Demonstrates project, engine, and context operations with the AIchor CLI. Useful as a first step to orient yourself: see what projects and engines are available and set the CLI context so you don't have to pass flags every time.
- Submit and Monitor an Experiment — Submits an experiment from your local repository, streams its logs until it finishes, then sends a desktop notification (macOS) or terminal bell on completion or failure. This script uses the local submit command, so you will need to have your project's code locally and either run the script from there or point to it with the
--repo-diroption. - Multi-Manifest Submission — Given a directory with multiple AIchor manifest files, launches an experiment per manifest. Uses the files in the HEAD commit. Checks to see if the manifests directory has been commited and if the commited code is up to date Waits for the first build step in the AIchor workflow to complete before submitting the rest of the experiments so that subsequent build jobs benefit from the Docker layer cache.
- Storage Operations — Demonstrates common AIchor storage operations: listing buckets, creating directories, uploading and downloading files, copying between buckets, and deleting files safely with a dry-run step.