Overview
Thetruffile CLI is your interface to Truffle. Use it to discover and connect to devices, use Convo with the on-device agent, run raw model inference, and deploy apps.
truffile with no arguments opens the Convo REPL in an
unsent side-thread draft.
Scriptable commands
Most workflows can be driven with explicit arguments, which makes them easy to test in CI or from another agent:Connecting to Your Truffle
You need to connect to a device before you can use Convo, run inference, or manage apps.Scan for devices
Connect directly
If you already know your device name:Before
truffile connect, onboard the device in the Symphony desktop client. Download Symphony from the client overview and finish device onboarding there. The CLI will ask for your User ID from Symphony Settings before you approve the session on your device.Loading agent resources
truffile ships with agent-readable skills and example apps. Copy them into
your current workspace when you want a coding agent to inspect them directly:
Disconnect
Convo Mode
Convo connects to the authenticated user’s stateful on-device agent. Main is thread0; user conversations otherwise live in side threads. Legacy Task
histories are not migrated or listed after the one-way cutover.
/new for another draft or
/main to opt into Main explicitly.
Sending messages
Type your message and press Enter to send. Use Alt+Enter for multi-line input.Threads and history
Use/threads to list and switch among user-visible threads. System and
Bulletin threads are omitted. Messages and replies remain in the selected
thread, and /history shows its durable history.
Type /help inside Convo to see all commands.
/tasks, /resume, and /switch are temporary compatibility spellings for
the Convo thread picker. They do not access the retired Task backend.
Installed apps
Inspect installed apps with either discovery-only command:/apps, --app, and dynamic /<app> sends are
unavailable. The agent can still discover installed tools and decide whether
to use them through normal routing.
For all targeting, listing, action, JSON, and exit-code details, see
Convo automation. For the complete interactive model,
see Convo.
Exiting
Infer Mode
Infer mode gives you direct access to model inference with full control over generation parameters, MCP tool integration, and image input.CLI flags
Generation controls
All settings can be viewed and changed live inside the REPL. Run the command without an argument to see the current value.Built-in tools
When tools are enabled (/tools on, the default), the model can use:
web_search— search the web and return top resultsweb_fetch— fetch a URL and extract readable text
Image attachments
Attach an image to your next message with/attach:
MCP integration
Connect external MCP servers to give the model additional tools. Only streamable HTTP transport is supported.Conversation management
Keyboard Shortcuts
These work in both Convo and Infer modes.App Management
Create a new app
truffile.yaml, foreground/background entry points, and a default icon.
Validate and deploy
validate and --dry-run check bundle structure and basic manifest metadata.
Firmware validates full manifest semantics during installation. For Python
syntax, also run python -m compileall -q ./my-app.
Normal deploy uploads your directory or .truffle bundle to the native
installer, which runs its builders and account setup. Text/password forms are
shown in the terminal; OAuth opens a sign-in flow with a callback/code handoff;
browser/VNC setup cards expose the device setup URL. Actual provider support
depends on the firmware and app’s setup plan.
Update or replace
--yes.
Both require firmware with developer-upload support. Normal deploy refuses an
existing bundle ID until you choose a mode.
--legacy-builder retains the old direct builder for fresh installations.
--interactive opens that legacy builder’s debug shell. It is not the flag
for normal interactive sign-in and does not support native connectors.
Accounts and permissions
Work. Scripts must supply an unambiguous
account alias or UUID. --json and --non-interactive never prompt.
Permission modes are default, read-only, read-write, and auto-review.
default removes an account override and inherits device policy. --notes
sets review notes; omitting it keeps saved notes. New accounts start with device
policy, and the CLI does not modify device-wide defaults.
Supply --answers-file /private/answers.json to automate text/password setup.
Keep that JSON map of field names to values outside your app directory. OAuth
requires interactive approval; credentials remain with the device’s installer.
On expiry or disconnect, inspect the installed app before retrying.
See deployment for all lifecycle options and
accounts and authentication for authoring patterns.
