dflow templates:install
Install an official recipe, or a dflow.json file, into the current environment.
This installs an official recipe, or a dflow.json file you pass with --file, into the current environment. It can take several minutes. One-time secrets print as secret.KEY. Save them before you close the terminal.
dflow templates:install NAME
dflow templates:install --file PATHFlags
Pass a recipe name or --file, not both. --file is a dflow.json on disk. --wait defaults to true. --wait-timeout defaults to 20 minutes. --progress is auto, tty, or plain, the same as dflow apps:deploy. The usual global flags still apply.
What you see
While it waits, the CLI streams deploy and database phases the same way apps:deploy does. When it finishes, the terminal prints the operation id and status, then name, public_url, and id for the install. One-time secrets print as secret.KEY. A private recipe leaves public_url empty.
An unknown name returns 404. A document that fails the schema returns 400. Exit 0 when the install succeeded.
When it fails
A file that cannot be read exits 1 before a request. Exit 1: usage or a recipe file that cannot be read. Exit 2: auth. Exit 3: unknown template. Exit 4: conflict. Exit 5: operation failed. Exit 6: precondition. Exit 7: wait ended first. Exit 10: unreachable.
How is this guide?
Last updated on