-
Notifications
You must be signed in to change notification settings - Fork 0
Managing Databases
Photosphere maintains a list of configured databases in ~/.config/photosphere/databases.json. Each entry stores a name, path, and optional references to shared secrets (S3 credentials, encryption keys, geocoding API keys). When you open a database that has linked secrets, credentials are resolved automatically from the vault.
Open the database management page from the left sidebar by clicking Manage Databases.
The page displays a table of all configured databases with their name and path. From here you can add, edit, or remove entries.
There are two ways to add a database:
- Create Database — initialises a new empty database on disk and registers it. You choose a directory (local filesystem or S3), and optionally link secrets for encryption and cloud storage.
- Add Existing Database — registers an existing database that was created elsewhere (e.g. via the CLI or on another machine). You provide the path and Photosphere reads the database metadata.
When adding or creating a database you can link shared secrets:
- S3 credentials — required for databases stored on S3-compatible storage. Select an existing secret or create one inline.
- Encryption key — required for encrypted databases. Select an existing key or create one inline.
- Geocoding API key — optional; enables automatic reverse-geocoding of photo GPS coordinates.
Click the edit icon next to a database entry to change its name, description, path, or linked secrets. Changes take effect immediately.
Click the delete icon to remove a database entry from the list. This does not delete the database files on disk — it only removes the entry from the configured list.
The database picker (shown on launch or when switching databases) lists your configured databases and recent databases. Click Manage in the picker to go to the full database management page.
The psi dbs command group provides the same management capabilities from the command line.
psi dbs listDisplays a table of all configured databases with their name and path.
psi dbs addInteractive prompts walk you through entering a name, path, and optionally linking vault secrets (S3 credentials, encryption key, geocoding API key). You can select an existing shared secret or create a new one inline.
psi dbs view my-photosShows all fields of the entry: name, description, path, and any linked secret IDs. The name lookup is case-insensitive.
psi dbs edit my-photosRe-prompts for each field with the current values pre-populated.
psi dbs remove my-photos
psi dbs remove my-photos --yes # skip confirmationRemoves the entry from the list. Does not delete files on disk.
Once a database is registered, you can use its name instead of its path with any command:
psi summary --db my-photos
psi add --db my-photos ~/new-pics
psi verify --db my-photosIf the entry has linked secrets, they are resolved automatically — no need for --key or S3 configuration flags. If the --db value doesn't match any entry in databases.json, it is treated as a raw path and existing manual config flows apply.
The database list is stored at:
~/.config/photosphere/databases.json
This file is shared between the desktop app and the CLI. Changes made in one are visible in the other.
- Managing-Secrets — managing the vault secrets that databases link to
- Getting-Started-Desktop — desktop app quick start guide
- Getting-Started-CLI — CLI quick start guide
-
Command-Reference — full CLI command reference (
dbssection)