Released docs. You are viewing the documentation published with v0.49.0. Development docs are available at Latest.
Create the PostgreSQL roles, database and schemas a Registry needs, from its runtime file.
Contract status
Section titled “Contract status”This page is generated from the public Clap command tree for Registry Stack source version 0.49.0 and catalog SHA-256 5ee58a079f1cede7ba2da71f1d8945c0b683f5f54e8d871fdbcb8648c998872c. Hidden implementation commands are omitted.
Description
Section titled “Description”Create the PostgreSQL roles, database and schemas a Registry needs, from its runtime file. The runtime file’s two database URLs name both roles, the database and both passwords. The administrator URL comes from a file or an environment variable, never from the command line. The command grants the runtime role CONNECT on the database: apply grants the rest. With —package, a package that needs PostGIS also gets its schema, extension and bounding-box role, which CREATE EXTENSION postgis needs a superuser for, and both roles get USAGE on the PostGIS schema.
bregctl provision [OPTIONS] --runtime-config <FILE>Constraints
Section titled “Constraints”| Condition | Requirement |
|---|---|
| Command invocation | --admin-url-env <ADMIN_URL_ENV> and --admin-url-file <ADMIN_URL_FILE> cannot be used together. |
| Command invocation | --admin-url-env <ADMIN_URL_ENV> and --print-sql cannot be used together. |
| Command invocation | --admin-url-file <ADMIN_URL_FILE> and --print-sql cannot be used together. |
Options
Section titled “Options”| Option | Always required | Default | Values | Environment | Description |
|---|---|---|---|---|---|
--runtime-config <FILE> | Yes | n/a | n/a | n/a | Runtime configuration file, the one the service runs with. A symbolic link at any component of this path is refused. |
--admin-url-file <ADMIN_URL_FILE> | No | n/a | n/a | n/a | File holding the administrator PostgreSQL URL |
--admin-url-env <ADMIN_URL_ENV> | No | n/a | n/a | n/a | Name of the environment variable holding the administrator PostgreSQL URL |
--print-sql | No | n/a | n/a | n/a | Print the SQL script and connect to nothing |
--posture <POSTURE> | No | n/a | n/a | n/a | Declared posture: development or production. Unset means production |
--package <ABSOLUTE_DIRECTORY> | No | n/a | n/a | n/a | Absolute target package directory; a package that needs PostGIS adds the PostGIS steps. A symbolic link at any component of this path is refused. |
--format <FORMAT> | No | human | human, json | n/a | Emit the selected command’s report in this format |
-h, --help | No | n/a | n/a | n/a | Print help (see a summary with ‘-h’) |
Generation contract
Section titled “Generation contract”After changing a public command, argument, option, default, environment binding, or help description, run cargo run --locked -p registry-cli-docs -- --write, commit crates/registry-cli-docs/catalog.json, then run npm run generate from docs/site.
Cookies on Registry Stack
We use optional cookies to understand how you use the main Registry Stack website and this documentation. If you contact us, we may link this activity to your enquiry. You can change your choice at any time. Read the privacy policy.
Your browser asks sites not to track you, so optional tracking stays off.
We could not use or save that choice. Optional tracking remains off.