Skip to main content

Command reference

This page summarizes the public commands used to prepare, generate, deploy, inspect, and clean up CRADLE environments.

CRADLE commands

CommandPurposeImportant side effects
./deployment/deploy.sh --provider <provider>Prepare a supported local host.Uses sudo and installs or configures host software.
./cradle.sh <scenario> [provider]Compile a scenario and generate deployment files.Writes compiler and provider-specific output. Does not start VMs.
./odyssey.sh <scenario> [provider]Generate, provision, execute, and extract a local scenario.Attempts to destroy the previous environment for the same scenario and replaces its generated output.

Run CRADLE commands from the project root.

Prepare a host

$ ./deployment/deploy.sh --provider libvirt
$ ./deployment/deploy.sh --provider virtualbox
$ ./deployment/deploy.sh --provider both

See Prepare a deployment host.

Generate deployment files

$ ./cradle.sh <scenario> [libvirt|virtualbox|sphere]

Provider aliases:

InputEffective provider
omitted, libvirt, or locallibvirt
virtualbox or vboxVirtualBox
sphereSPHERE artifact generation

Pass the scenario filename without .cradle.

Run a local environment

$ ./odyssey.sh <scenario> [libvirt|virtualbox]

local and vbox are accepted aliases. The public odyssey.sh workflow does not operate SPHERE deployments.

Inspect generated Vagrant files

Run these commands from the exact generated deployment directory:

$ vagrant validate
$ vagrant status

vagrant validate checks the generated Vagrant configuration without starting the VMs. vagrant status reports the current state of the environment.

Destroy an environment

From the exact generated deployment directory:

$ vagrant destroy -f

This destroys the Vagrant-managed VMs. It does not remove the separately stored runtime dataset.

Default output locations

OutputPath
Compiler outputfiles/output/<scenario>.yml
libvirt deploymentassembler/bin/output/<scenario>/Deployment_For_local/<scenario>-experiment/localhost/
VirtualBox deploymentassembler/bin/output/<scenario>/Deployment_For_virtualbox/<scenario>-experiment/localhost/
SPHERE generationassembler/bin/output/<scenario>/Deployment_For_sphere/<scenario>-experiment/localhost/
Runtime dataset/mnt/hdd/cradle/dataset/<scenario>/<date>/<time>/
Host preparation report/var/log/cradle/deployment-report.yml

Deployment profiles can change managed-host paths.