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_filterstrResource filter. Format - ENV:INFRA:GROUP:NAME:TYPE
env_filterstrFilter the environment to restart. --env -e
infra_filterstrFilter the infra to restart. --infra -i
group_filterstrFilter resources using group name. --group -g
name_filterstrFilter resource using name. --name -n
type_filterstrFilter resource using type --type -t
dry_runboolPrint resources and exit. --dry-run -dr
auto_confirmboolSkip the confirmation before restarting resources. --yes -y
print_debug_logboolPrint debug logs. --debug -d
forceboolForce --force -f
pullboolPull images where applicable. --pull -p