mirror of
https://github.com/holos-run/holos.git
synced 2026-03-21 09:45:00 +00:00
This sub-command renders the web app form from CUE code and updates the form using the `holos.platform.v1alpha1.PlatformService/UpdatePlatform` rpc method. Example use case, starting fresh: ``` rm -rf ~/holos mkdir ~/holos cd ~/holos ``` Step 1: Login ```sh holos login ``` ```txt 9:53AM INF login.go:40 logged in as jeff@ois.run version=0.79.0 name="Jeff McCune" exp="2024-05-17 21:16:07 -0700 PDT" email=jeff@ois.run ``` Step 2: Register to create server side resources. ```sh holos register user ``` ``` 9:52AM INF register.go:68 user version=0.79.0 email=jeff@ois.run user_id=018f826d-85a8-751d-81ee-64d0f2775b3f org_id=018f826d-85a8-751e-98dd-a6cddd9dd8f0 ``` Step 3: Generate the bare platform in the local filesystem. ```sh holos generate platform bare ``` ```txt 9:52AM INF generate.go:79 wrote platform.metadata.json version=0.79.0 platform_id=018f826d-85a8-751f-96d0-0d2bf70df909 path=/home/jeff/holos/platform.metadata.json 9:52AM INF generate.go:91 generated platform bare version=0.79.0 platform_id=018f826d-85a8-751f-96d0-0d2bf70df909 path=/home/jeff/holos ``` Step 4: Push the platform form to the `holos server` web app. ```sh holos push platform form . ``` ```txt 9:52AM INF client.go:67 updated platform version=0.79.0 platform_id=018f826d-85a8-751f-96d0-0d2bf70df909 duration=73.62995ms ``` At this point the platform form is published and functions as expected when visiting the platform web interface.