doctor & upgrade
alfe doctor
Section titled “alfe doctor”alfe doctor diagnoses the health of your setup. Run it whenever something
seems off — it’s the fastest way to see whether the CLI is configured, your
credentials are valid, and the agent daemon is connected.
alfe doctorIt checks:
- Configuration. That
~/.alfe/config.tomlexists and is readable. - Authentication. That your API key is valid.
- Gateway daemon. That the local daemon is running and connected to the Alfe cloud, and reports a health summary.
Use it right after alfe setup to confirm everything came up,
and any time an agent appears offline.
Keeping the CLI up to date
Section titled “Keeping the CLI up to date”The CLI is distributed on npm as @alfe.ai/cli. Upgrade it the same way you’d
upgrade any global npm package:
npm i @alfe.ai/cli@latest -- -gpnpm add @alfe.ai/cli@latest -gbun add @alfe.ai/cli@latest -gCheck the installed version at any time:
alfe --versionKeeping a managed agent up to date
Section titled “Keeping a managed agent up to date”For agents running on Alfe-managed hosts, updates are handled for you — you can manage them from the dashboard at app.alfe.ai rather than running upgrade commands on the machine yourself.