Skip to main content

hivepaas preview

An app's previews: the copies HivePaaS makes of it for a branch or a pull request, each an app of its own - -a takes it for logs, deploy and the rest.

hivepaas preview [command]

Aliases: preview, previews

hivepaas preview create​

Make a preview of an app: a copy of it, built from --ref - the app's own branch by default - deployed at a subdomain of its own. The secrets a preview is not given are said. The command waits for the task that makes it, following its log; Ctrl-C stops the waiting, not the task.

hivepaas preview create [flags]

Examples:

hivepaas preview create --ref feature/checkout
hivepaas preview create --ref feature/checkout --subdomain checkout --no-db

Flags:

FlagDescription
--no-dbdo not clone the databases the app uses
--no-startmake it, and do not start it
--no-waitstart making it and return
--ref stringthe branch to build; the one the app deploys from when not given
--subdomain stringthe preview's subdomain; one is made when not given
--timeout durationhow long to wait (default: 30m0s)

hivepaas preview ls​

List an app's previews

hivepaas preview ls [APP]

hivepaas preview rm​

Delete one of the app's previews, by its name or key, as app delete deletes an app: asked at a terminal, --yes elsewhere. A name that is not one of the app's previews is refused.

hivepaas preview rm PREVIEW [flags]

Flags:

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

The global flags apply to every command.