catalyst download¶
Install a catalyst configured package from git.
catalyst download [OPTIONS] remote [branch]
POSITIONALS:
remote TEXT REQUIRED the remote to clone
branch TEXT the branch to clone
OPTIONS:
-h, --help Print this help message and exit
-p, --profiles TEXT [[common]] ...
the profiles to compose in the build artifact
-f, --features TEXT ... the features to enable in the build
-b, --backend TEXT Backend to use for generation (ninja, gmake, cob).
-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:
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: