| title | thv-registry-api prime-db | ||
|---|---|---|---|
| hide_title | true | ||
| description | Reference for ToolHive Registry API CLI command `thv-registry-api prime-db` | ||
| last_update |
|
||
| slug | thv-registry-api_prime-db | ||
| mdx |
|
Prime the database with role and user
Prime the database by creating the required role and user.
This command:
- Creates the role 'toolhive_registry_server' if it doesn't exist
- Creates a user (specified as positional argument) if it doesn't exist
- Grants the role to the user
- Reads the password from STDIN
The command uses the --config option to connect to the database.
thv-registry-api prime-db [username] [flags]
--config string Path to configuration file (YAML format, required)
--dry-run Print the SQL that would be executed to standard output
-h, --help help for prime-db
--debug Enable debug mode
- thv-registry-api - ToolHive Registry API server