yera.cli.commands.setup
Interactive setup commands.
Symbols
cred_group
cred_group(
ctx: Annotated[AppContext, Parameter(parse=False, show=False)],
) → NoneInteractive three-step wizard for credential group setup.
Step 1: prompt for credential group name and write [tool.yera.overrides] cred-group.
Step 2: add current project root to authorised_roots (TOFU).
Step 3: optionally add initial credentials interactively.
hub
hub(
local: bool = False,
ctx: Annotated[AppContext, Parameter(parse=False, show=False)],
) → NoneInteractive setup for a Yera Hub connection.
Parameters
Required for now: only local hub setup is implemented. Prompts
for hub name and URL and writes yera.toml, creating the file
if missing.
setup
setup(
profile: Annotated[str | None, Parameter(name='--profile', help='Name for the new profile. Prompted if omitted.')] = None,
update: Annotated[bool, Parameter(name='--update', help='Overwrite an existing profile rather than erroring.', negative='')] = False,
ctx: Annotated[AppContext, Parameter(parse=False, show=False)],
) → NoneRun the Yera guided setup wizard.
Detects available provider credentials automatically, sets up provider connections, discovers available models, and creates a named profile wiring everything together.
Parameters
Name for the new profile. If omitted, prompted interactively.
Defaults to default if no profiles are configured yet.
If true, overwrite an existing profile rather than raising an error.