Usage
Run StackGen
stackgen
Quick Commands
Help/Usage:
stackgen help
Enter the CLI Container:
docker run -it --rm -p 50525:50525 -v ~/.appcd:/app/.appcd ghcr.io/appcd-dev/appcd-dist/stackgen-cli:latest
note
This will switch the terminal prompt to the StackGen CLI container where StackGen can be run.
Login/Configure Authentication:
stackgen configure
note
This will present you with a clickable link to copy and paste into your browser on your main machine to complete login.
Connect a Repo:
export APPCD_GIT_AUTH_TOKEN={token with readonly access to desired repositories}
Exporting a valid token allows stackgen appStack create to display your available repositories and branches for easier selection.
Create an appStack:
stackgen appstack create
Create a Version of an appStack:
stackgen appstack create-version <name of appStack> --local-analysis
List appStacks:
stackgen appstack show
Download/Generate IaC Files for an appStack:
stackgen appstack download-iac --uuid <uuid of appStack output in prior step> --destination <path/to/file.zip>
note
By default, the docker run
command above creates a volume in /app/.stackgen
in the container, so any files written there will be synced to ~/.stackgen
on the host machine.