Table 4.1. Variables available in Bundle hooks
| BUNDLE_HOME | The home directory of the bundle |
| BUNDLE_NAME | The name of the bundle (based on directory name) |
| BUNDLE_VERSION | The bundle's version (based on directory name) |
| PLATFORM | The current platform (taken from BUNDLEWORKS_PLATFORM environment variable) |
| WORK_DIR | Set during a deployment action to the deployment's work directory |
| DEPLOYMENT_HOME | Set during a deployment action to the parent of the deployment's work directory |
| ENVIRONMENT_HOME | Set during a deployment action to the environment directory |
| FROM_VERSION | Set during bw deploy to the version currently deployed |
| TO_VERSION | Set during bw deploy to the version to be deployed |
| FROM_BUNDLE_HOME | Set during bw deploy to the home of currently deployed bundle |
| TO_BUNDLE_HOME | Set during bw deploy to the home of the bundle to be deployed |
Table 4.2. Environment Variables used by BundleWorks
| BUNDLEWORKS_BUNDLES | List of loaded deployments, colon (:) separated |
| BUNDLEWORKS_ENVIRONMENTS | List of loaded environments, colon (:) separated |
| BUNDLEWORKS_HOME | Location of the BundleWorks software |
| BUNDLEWORKS_INCLUDE | Directory contains script functions |
| BUNDLEWORKS_LOCALE | Locale to use for displaying messages (only en_US currently available) |
| BUNDLEWORKS_LOGIN | Name of the user originally logged in (not affected by 'su') |
| BUNDLEWORKS_PLATFORM | String containing platform name (e.g. linux-x86) |
| BUNDLEWORKS_PLUGINS | List of directories searched for plugins, colon (:) separated |
| BUNDLEWORKS_USER | Name of the effective user (changed by 'su') |
| BUNDLEWORKS_WORK | Location of BundleWorks runtime data |