Skip to main content

hivepaas app

An environment's apps

hivepaas app [command]

Aliases: app, apps

hivepaas app create​

Create an app in an environment. With --image it runs that image, with --repo it builds that repository, with the flags of its source as hivepaas deploy takes them: its variables (--var) and port (--port) are set first, then its source, which deploys it; the command waits for the deployment as deploy does. Without a source the app is created empty, for the dashboard or hivepaas deploy to fill.

hivepaas app create NAME [flags]

Examples:

hivepaas app create api -p shop -e staging --image ghcr.io/acme/api:1.4.3 --port 8080 \
--var LOG_LEVEL=info --var DATABASE_URL='${db.HIVEPAAS_URL}'
hivepaas app create web -p shop -e staging --repo https://github.com/acme/web.git --ref main \
--git-credential acme --push-to ghcr --port 3000

Flags:

FlagDescription
--auto-deploydeploy each push to the ref
--command stringthe container's command; "" for the image's
--commit stringbuild this commit, its full SHA, and stay at it; none to follow the ref
--dockerfile stringthe Dockerfile's path in the repository
--dockerfile-autogenerate the Dockerfile from the source
--dockerfile-inline stringuse this local file as the Dockerfile, kept in the settings; - reads stdin
--entrypoint stringthe container's entrypoint; "" for the image's
--git-credential stringclone with this git credential; none for none
--image stringdeploy this image: ghcr.io/acme/api:1.4.3
--lfsfetch the Git LFS files
--no-auto-deploydo not deploy on push
--no-lfsdo not fetch the Git LFS files
--no-submodulesdo not clone the git submodules
--no-waitdo not wait for the deployment
--port intthe port the app listens on
--post-deploy stringa command run after each deployment; "" for none
--pre-deploy stringa command run before each deployment; "" for none
--push-to stringpush the built image to the registry of this credential; none keeps it on the node
--ref stringthe branch to build, or tags/NAME for a tag
--registry-auth stringpull the image with this registry credential; none for none
--repo stringbuild this git repository: https://github.com/acme/api.git
--scan-path stringthe directory a generated Dockerfile is made from
--submodulesclone the git submodules
--timeout durationhow long to wait for the deployment (default: 30m0s)
--use stringswitch what the app deploys: image, or repo
--var stringArraya runtime variable, KEY=VALUE; repeat for more
--workdir stringthe container's working directory; "" for the image's

hivepaas app delete​

Delete an app, and the apps that go with it: its previews, and what a template created for it. Its data on the volumes stays unless --remove-storage.

At a terminal it asks for the app's name to be typed; elsewhere it needs --yes.

hivepaas app delete [APP] [flags]

Flags:

FlagDescription
--remove-storagedelete the data the apps keep on volumes too
-y, --yesdo not ask: for a script

hivepaas app get​

Show an app

hivepaas app get [APP]

hivepaas app ls​

List an environment's apps

hivepaas app ls

hivepaas app scale​

Without flags, show the app's replicas, its autoscale and its limits.

--replicas runs a fixed count. --min and --max turn autoscale on, between them, on the CPU (--cpu, percent of the limit) or the requests in flight (--requests); --no-autoscale turns it off. --cpus and --memory limit each replica. The change applies at once, without a deployment.

hivepaas app scale [APP] [flags]

Examples:

hivepaas app scale
hivepaas app scale --replicas 3
hivepaas app scale --min 2 --max 10 --cpu 70
hivepaas app scale --no-autoscale --replicas 2
hivepaas app scale worker --cpus 0.5 --memory 512MB

Flags:

FlagDescription
--cpu intautoscale on the CPU: the percent of its limit each replica is kept at
--cpus float32limit each replica to this many CPUs: 0.5
--max intautoscale: the most replicas
--memory stringlimit each replica's memory: 512MB, 2GB
--min intautoscale: the fewest replicas
--no-autoscaleturn autoscale off
--replicas intrun this many replicas
--requests intautoscale on the requests in flight each replica takes

hivepaas app start​

Start an app that was stopped

hivepaas app start [APP]

hivepaas app stop​

Stop an app: it keeps its settings and data, and runs nothing until started

hivepaas app stop [APP]

The global flags apply to every command.