Skip to main content

CLI Reference

The MeetLoyd CLI (@meetloyd/cli) brings the platform to your terminal and your CI pipelines: run agents, deploy team manifests, manage tasks and keys, and script all of it with JSON output.

It installs three commands:

CommandWhat it is
meetloydThe full CLI
mlShort alias for meetloyd
loydAn interactive chat with Loyd in your terminal

Install​

npm install -g @meetloyd/cli
# or
bun add -g @meetloyd/cli

Sign in​

meetloyd login                 # opens your browser to sign in
meetloyd login ml_xxxxx # or save an API key directly
meetloyd whoami # who you are signed in as
meetloyd logout

meetloyd init walks you through the same setup interactively, and meetloyd status shows the current configuration. Credentials are saved in ~/.meetloyd/config.json.

The CLI talks to https://api.meetloyd.com by default. For a dedicated or on-premises installation, pass --url once to login, or set the environment variables below.

VariableDescription
MEETLOYD_API_KEYAPI key, used instead of the saved one (handy in CI)
MEETLOYD_BASE_URLAPI host, used instead of the saved one
MEETLOYD_APP_URLWeb app used for browser sign-in, when it is not the API host with api. replaced by app.

Global options​

OptionDescription
-o, --output <format>human (default), json, yaml or table
-V, --versionCLI version
-h, --helpHelp for any command

Agents​

meetloyd agents list
meetloyd agents get <id>
meetloyd agents create --name "Support" --app-id <workspace-id> --team-id <team-id>
meetloyd agents create --name "Support" --app-id <workspace-id> --create-team --team-name "Support"
meetloyd agents execute <id> "Summarise today's tickets"
meetloyd agents execute <id> "Hello" --no-stream
meetloyd agents pause <id>
meetloyd agents resume <id>
meetloyd agents delete <id> [--force]

An agent always belongs to a workspace (--app-id) and a team: give --team-id, or --create-team to create one. --model takes a model id or alias (default claude-sonnet-latest). Run without options to be asked interactively.

Chat​

meetloyd chat start <agent-id>
meetloyd chat send <conversation-id> "Your message" # streams the answer

Or simply run loyd for a chat with Loyd.

Tasks​

meetloyd tasks list [--status pending|in_progress|completed|failed|cancelled|paused]
meetloyd tasks get <id>
meetloyd tasks create --name "Weekly report" --agent-id <id> --schedule "0 8 * * 1" --timezone Europe/Paris
meetloyd tasks run <id>
meetloyd tasks runs <id>
meetloyd tasks cancel <id>
meetloyd tasks delete <id>

Workflows, schedules, triggers​

meetloyd workflows list | get <id> | delete <id>
meetloyd workflows run <id> --input '{"ticket": 1042}'
meetloyd workflows activate <id> # make it live
meetloyd workflows pause <id> # back to draft: nothing starts it
meetloyd workflows runs <id>
meetloyd workflows run-status <workflow-id> <run-id>
meetloyd workflows cancel-run <workflow-id> <run-id>

meetloyd schedules list | get <id> | pause <id> | resume <id> | delete <id>
meetloyd schedules trigger <id> # run it now

meetloyd triggers list | get <id> | enable <id> | disable <id> | delete <id>

Team manifests​

meetloyd manifest validate team.yaml
meetloyd manifest resolve team.yaml [-o team.lock.json]
meetloyd manifest deploy team.yaml [--dry-run] [--notes "Release 42"]
meetloyd manifest list
meetloyd manifest get <id>
meetloyd manifest export <id> [-o team.yaml]
meetloyd manifest upgrade <id> [--dry-run] [--allow-breaking]
meetloyd manifest rollback <id> -c <component> -v <version>

This is the usual way to ship teams from CI: validate on every pull request, deploy on merge. See the Manifests API and Team manifests.

Templates​

meetloyd templates list [--category support]
meetloyd templates get <id>
meetloyd templates categories
meetloyd templates deploy <id> --app-id <workspace-id> [--team-id <team-id>] [--name "My Agent"]

API keys​

meetloyd api-keys list
meetloyd api-keys create --name "CI" --permissions "agents:read,manifests:write" --expires-in-days 90
meetloyd api-keys delete <id>

Without --permissions the key gets the default (agents and conversations). A key can never carry more than you hold. To replace a key, create a new one, switch your integration over, then delete the old one.

Security center​

For owners and admins:

meetloyd security-center overview
meetloyd security-center score
meetloyd security-center recommendations
meetloyd security-center policies
meetloyd security-center set-mfa --required --grace-period-days 7
meetloyd security-center set-sessions --idle-timeout 30
meetloyd security-center set-passwords --min-length 12 --require-special
meetloyd security-center set-login-security --max-failed-attempts 5 --lockout-minutes 15

Team access​

Give people access to a team, with a team role of admin, editor or viewer (owners and admins only):

meetloyd teams members <team-id>
meetloyd teams add-member <team-id> <user-id> --role editor
meetloyd teams set-role <team-id> <user-id> admin
meetloyd teams remove-member <team-id> <user-id>

Webhooks​

meetloyd webhooks events                          # what you can subscribe to
meetloyd webhooks create --url https://example.com/hook --events agent.run.failed,task.completed
meetloyd webhooks list | get <id> | delete <id>
meetloyd webhooks update <id> --disabled
meetloyd webhooks test <id>
meetloyd webhooks deliveries <id>

The secret used to sign deliveries is shown once, when the webhook is created. See Webhooks.

Audit​

For owners and admins:

meetloyd audit logs [--actor <id>] [--action agent.deleted] [--status denied] [--limit 50]
meetloyd audit log <log-id>
meetloyd audit stats [--days 30]
meetloyd audit export --days 90 --file audit.csv
meetloyd audit verify # check the trail for tampering

meetloyd audit siem create --name SOC --provider splunk --url https://siem.example.com/hook
meetloyd audit siem list | test <id> | sync <id> | delete <id>

meetloyd audit alerts create --name "Failed sign-ins" --action auth.login_failed --threshold 5 --window 5m --notify sec@example.com
meetloyd audit alerts list | delete <id>

Access reviews​

For owners and admins:

meetloyd access-reviews create --name "Q4 review" --review-type user_access --due-date 2026-12-15
meetloyd access-reviews activate <campaign-id> # gathers the accesses to review
meetloyd access-reviews items <campaign-id> --status pending
meetloyd access-reviews decide <campaign-id> <item-id> --decision revoke --reason "Left the team"
meetloyd access-reviews complete <campaign-id>
meetloyd access-reviews list | get <campaign-id>

Billing​

meetloyd billing usage            # this month
meetloyd billing invoices
meetloyd billing payment-method # the card on file
meetloyd billing portal # a link to manage invoices, cards and billing details

Your contract is managed with your MeetLoyd account team.

More commands​

memory, tools, usage, governance, dlp, compliance and sso cover the matching parts of the platform. Run meetloyd <command> --help for each one.

Shell completion​

meetloyd completions bash >> ~/.bashrc
meetloyd completions zsh >> ~/.zshrc
meetloyd completions fish > ~/.config/fish/completions/meetloyd.fish

Scripting​

Add --output json for machine-readable output:

meetloyd agents list --output json | jq -r '.[].id'

Need help? Run meetloyd --help or meetloyd <command> --help.