ag infra restart

Options for ag infra restart: run ag infra down, wait 2 seconds, then ag infra up for the active AgentOS codebase.

This command belongs to the legacy agno-infra package (reviewed source version 1.1.1). Use its own Python environment; installing current agno does not provide this ag infra group. Resource-engine operations need the appropriate agno-infra[docker] or agno-infra[aws] dependencies and provider configuration. New AgentOS starters use the current CLI.

Restart resources for active AgentOS codebase

When this legacy command finds Compose files, it operates on every matching conventional Compose file in the current directory. Positional resource filters and named environment/infra/group/name/type selectors do not limit that path. Compose down preserves volumes; Compose up does not forward the legacy --pull or --force options. The resource selectors below apply to the legacy resource-engine path. The Compose path requires Docker and its Compose plugin.

Params

resource_filterstr

Resource filter. Format - ENV:INFRA:GROUP:NAME:TYPE

env_filterstr

Filter the environment to restart. --env -e

infra_filterstr

Filter the infra to restart. --infra -i

group_filterstr

Filter resources using group name. --group -g

name_filterstr

Filter resource using name. --name -n

type_filterstr

Filter resource using type --type -t

dry_runbool

Print resources and exit. --dry-run -dr

auto_confirmbool

Skip the confirmation before restarting resources. --yes -y

print_debug_logbool

Print debug logs. --debug -d

forcebool

Force --force -f

pullbool

Pull images where applicable. --pull -p