catalyst download
Install a catalyst configured package from git.
Usage: catalyst download [OPTIONS] remote [branch]
Options:
-h,--help Print this help message and exit
remote TEXT REQUIRED the remote to clone
branch TEXT the branch to clone
-p,--profiles TEXT ... the profiles to compose in the build artifact (default: common)
-f,--features TEXT ... the features to enable in the build
-t,--target TEXT REQUIRED the path to install to
Details
The download command automates the process of fetching a Catalyst-based project from a Git repository, building it, and installing it to a specified location. It essentially performs the following steps:
- Clone: Clones the specified git repository to a temporary directory.
- Build: Runs
catalyst buildon the cloned project with the specified profiles and features. - Install: Installs the build artifacts to the target directory.
- Cleanup: Removes the temporary directory.
Examples
Download and install a project to a local bin directory:
catalyst download https://github.com/user/repo.git --target ./bin
Download a specific branch with specific features enabled:
catalyst download https://github.com/user/repo.git develop --target /usr/local --features extra_feature
Download with custom profiles:
catalyst download https://github.com/user/repo.git --target ./dist --profiles release optimization