alis clone¶
Clone a product's define and build repositories into ~/alis.build, or fast-forward them when they are already on disk.
Synopsis¶
Description¶
Clones the build environment's definitions repo to ~/alis.build/<org>/define and the product's build repo to ~/alis.build/<org>/build/<product>. A repo already on disk is fast-forward pulled instead. Both are wired to the auto-refreshing Alis git credential helper and stamped with the product's commit identity.
Package registry credentials are not refreshed here: alis packages install|upgrade|add refreshes them itself. Run alis authorise to refresh them on their own, or to repair credentials on repos cloned outside the CLI.
Both repos are always attempted. If one fails the other still runs, and the command exits 1 with the per-repo outcome on stdout. Existing local changes or divergence return exit 1; nothing is overwritten.
Flags¶
No flags beyond the global flags.
Examples¶
JSON output¶
The per-repo outcome, plus next: the alis packages install <package-id> --json command to run in a service folder before building, running or testing a fresh clone.