catalog default

Show or change the persisted default catalog name.

The default catalog applies when xorq catalog invocations supply neither -n/--name nor -p/--path. Without options, prints the resolved name and the source that supplied it. --set and --unset are mutually exclusive.

Resolution order:

  1. The XORQ_DEFAULT_CATALOG environment variable.
  2. The persisted config file (written by --set).
  3. The built-in default name (default).

Usage

xorq catalog default [OPTIONS]

Options

Option Default Description
--set none Set the default catalog name.
--unset off Remove the persisted default.

Examples

# Show the current default and where it came from
xorq catalog default
# Persist a new default
xorq catalog default --set analytics
# Remove the persisted default
xorq catalog default --unset