Skip to main content

Node CLI command reference

@toothfairyai/cli@latest…

Every command below is a subcommand of toothfairy (alias tf). Global credentials come from TF_API_KEY / TF_WORKSPACE_ID or toothfairy configure.

120 commands.

Index

CommandSummary
billingGet monthly billing costs
billing-month-costsGet monthly usage and cost information
cancel-benchmark-runCancel a running benchmark
chatStart an interactive chat session with a ToothFairyAI agent (use @ to reference local files)
chatsList all chats in the workspace
config-showShow current configuration
configureConfigure ToothFairy CLI credentials and settings
create-agentCreate a new agent
create-authorisationCreate a new authorisation
create-authorizationCreate a new authorization
create-benchmarkCreate a new benchmark
create-channelCreate a new channel
create-connectionCreate a new connection (Hosting for LLM/API endpoints)
create-docCreate a document from a file path or URL with automatic type detection
create-entityCreate a new entity with specified type
create-folderCreate a new folder with specified name
create-functionCreate a new agent function
create-hookCreate a new hook
create-memberCreate a new workspace member
create-promptCreate a new prompt with specified parameters
create-scheduled-jobCreate a new scheduled job
create-secretCreate a new secret
create-triggerCreate a new event-driven agent trigger
delete-agentDelete an agent
delete-authorisationDelete an authorisation
delete-authorizationDelete an authorization
delete-benchmarkDelete a benchmark
delete-channelDelete a channel
delete-connectionDelete a connection
delete-docDelete a document
delete-entityDelete an entity
delete-folderDelete a folder
delete-functionDelete a function
delete-hookDelete a hook
delete-memberDelete a member
delete-promptDelete a prompt
delete-scheduled-jobDelete a scheduled job
delete-secretDelete a secret
delete-siteDelete a site
delete-triggerDelete a trigger
downloadDownload a file from ToothFairy workspace
generate-speechGenerate speech audio from text using ToothFairyAI
get-agentGet details of a specific agent
get-authorisationGet details of a specific authorisation
get-authorizationGet details of a specific authorization
get-benchmarkGet details of a specific benchmark
get-benchmark-runGet a benchmark run by ID with score and metadata
get-channelGet details of a specific channel
get-charting-settingsGet charting settings
get-connectionGet details of a specific connection
get-dictionaryGet dictionary entry
get-docGet details of a specific document
get-embeddingGet embedding for text
get-embeddings-settingsGet embeddings settings
get-entityGet details of a specific entity
get-folderGet details of a specific folder
get-functionGet details of a specific function
get-hookGet details of a specific hook
get-memberGet details of a specific member
get-promptGet details of a specific prompt
get-requestGet details of a specific request
get-scheduled-jobGet details of a specific scheduled job
get-siteGet details of a specific site
get-streamGet details of a specific stream
get-triggerGet a specific trigger by ID
help-guideShow detailed help and usage examples
list-agentsList all agents
list-authorisationsList all authorisations
list-authorizationsList all authorizations
list-benchmark-runsList benchmark runs for the workspace
list-benchmarksList all benchmarks
list-channelsList all channels
list-connectionsList all connections
list-dictionariesList all dictionaries
list-entitiesList all entities in the workspace
list-foldersList all folders in the workspace
list-functionsList all functions
list-hooksList all hooks
list-membersList all members
list-messages-bychatList all messages in a specific chat
list-promptsList all prompts in the workspace
list-requestsList all requests
list-scheduled-jobsList all scheduled jobs
list-scheduled-jobs-by-statusList scheduled jobs filtered by status
list-sitesList all sites
list-streamsList all streams
list-triggersList all triggers in the workspace
migrateMigrate an agent from one profile to another
pause-scheduled-jobPause a scheduled job
pause-triggerPause (disarm) a trigger
predictGenerate streaming AI predictions (OpenAI-compatible) from a ToothFairyAI model
process-audioProcess audio file and generate text using ToothFairyAI
profileShow profiles, switch to, or delete a profile
resume-scheduled-jobResume a paused scheduled job
resume-triggerResume (arm) a paused trigger
run-benchmarkStart a benchmark run to evaluate an agent
searchSearch for documents in the knowledge hub
sendSend a message to a ToothFairyAI agent
send-streamSend a message to a ToothFairyAI agent with real-time streaming response
setupCreate or update a tfcode profile in ~/.tfcode/profiles.json
update-agentUpdate an existing agent
update-authorisationUpdate an existing authorisation
update-authorizationUpdate an existing authorization
update-benchmarkUpdate an existing benchmark
update-channelUpdate an existing channel
update-charting-settingsUpdate charting settings
update-connectionUpdate an existing connection
update-docUpdate an existing document
update-embeddings-settingsUpdate embeddings settings
update-entityUpdate an existing entity
update-folderUpdate an existing folder
update-functionUpdate an existing function
update-hookUpdate an existing hook
update-memberUpdate a member
update-promptUpdate an existing prompt
update-scheduled-jobUpdate an existing scheduled job
update-siteUpdate a site
update-triggerUpdate an existing trigger
uploadUpload a file to ToothFairy workspace
validateValidate ToothFairyAI credentials

billing

Get monthly billing costs

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy billing

billing-month-costs

Get monthly usage and cost information

Arguments

NameDescription
<month>Month number (1-12)
<year>Year (4-digit)

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy billing-month-costs <month> <year>

cancel-benchmark-run

Cancel a running benchmark

Arguments

NameDescription
<run_id>Run ID

Options

FlagDescription
--confirmSkip confirmation prompt
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy cancel-benchmark-run <run_id>

chat

Start an interactive chat session with a ToothFairyAI agent (use @ to reference local files)

Options

FlagDescription
--agent-id <id>Agent ID to chat with (uses default if configured)
--chat-id <id>Resume an existing chat conversation
-v, --verboseShow detailed information
--show-progressShow agent processing status updates
toothfairy chat

chats

List all chats in the workspace

Options

FlagDescription
-o, --output <format>Output format (json
toothfairy chats

config-show

Show current configuration

toothfairy config-show

configure

Configure ToothFairy CLI credentials and settings

Options

FlagDescription
--base-url <url>ToothFairy API base URL
--ai-url <url>ToothFairyAI URL
--ai-stream-url <url>ToothFairyAI Streaming URL
--api-key <key>API key
--workspace-id <id>Workspace ID
--user-id <id>User ID
--default-agent-id <id>Default agent ID for send/chat commands
--config-path <path>Path to save config file
toothfairy configure

create-agent

Create a new agent

Options

FlagDescription
--label <label>Agent label
--description <description>Agent description
--emoji <emoji>Agent emoji
--mode <mode>Agent mode (speed
--agent-type <type>Agent type (Chatbot
--llm-provider <provider>LLM provider name
--llm-base-model <model>LLM base model name
--llm-url <url>LLM URL endpoint
--reasoning-mode <mode>Reasoning mode (auto
--reasoning-effort <effort>Reasoning effort (none
--fn-reasoning-effort <effort>Function reasoning effort (none
--voice-name <name>Voice name for voice agents
--agents-pool <ids>Comma-separated agent IDs for agents pool
--mcps <ids>Comma-separated MCP IDs
--rag-search-strategy <strategy>RAG search strategy (parallel
--re-ragEnable re-ranking for RAG
--internet-search-modes <modes>Comma-separated internet search modes (search
--sip-phone-number <number>SIP phone number
--sip-dispatch-rule-id <id>SIP dispatch rule ID
--enable-inbound-sipEnable inbound SIP
--enable-outbound-sipEnable outbound SIP
--temperature <temp>Temperature (0.0-2.0)
--max-tokens <tokens>Max tokens
--max-history <history>Max conversation history
--top-k <k>Top K for retrieval
--doc-top-k <k>Document top K
--interpolation-string <string>System prompt template
--goals <goals>Agent goals
--department <dept>Department (HUMAN_RESOURCES
--allow-images-uploadAllow image uploads
--allow-videos-uploadAllow video uploads
--allow-audios-uploadAllow audio uploads
--allow-docs-uploadAllow document uploads
--allow-internet-searchAllow internet search
--agentic-ragEnable agentic RAG
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy create-agent

create-authorisation

Create a new authorisation

Options

FlagDescription
--name <name>Authorisation name
--permissions <permissions>Permissions (JSON)
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy create-authorisation

create-authorization

Create a new authorization

Options

FlagDescription
--name <name>Authorization name
--type <type>Authorization type
--config <config>Authorization configuration (JSON)
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy create-authorization

create-benchmark

Create a new benchmark

Options

FlagDescription
--name <name>Benchmark name
--description <description>Benchmark description
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy create-benchmark

create-channel

Create a new channel

Options

FlagDescription
--name <name>Channel name
--type <type>Channel type
--config <config>Channel configuration (JSON)
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy create-channel

create-connection

Create a new connection (Hosting for LLM/API endpoints)

Options

FlagDescription
--name <name>Connection name
--type <type>Hosting type (azure_openai
--endpoint <url>API endpoint URL
--model-name <name>Model name
--base-model <model>Base model
--custom-modelMark as custom model
--api-version <version>API version
--token-secret <secret>Token secret reference
--description <desc>Description
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy create-connection

create-doc

Create a document from a file path or URL with automatic type detection

Arguments

NameDescription
<file-path-or-url>Path to file or URL to create document from

Options

FlagDescription
--user-id <id>User ID (optional, uses configured value if not provided)
--title <title>Document title (defaults to filename or URL)
--folder-id <id>Folder ID (defaults to
--topics <topics>Comma-separated topic IDs
--status <status>Document status (draft
--scope <scope>Document scope
-o, --output <format>Output format (json
-v, --verboseShow detailed creation information
toothfairy create-doc <file-path-or-url>

create-entity

Create a new entity with specified type

Arguments

NameDescription
<label>Entity label

Options

FlagDescription
--user-id <id>User ID (optional, uses configured value if not provided)
--type <type>Entity type (intent
--description <desc>Entity description
--emoji <emoji>Entity emoji
--parent-entity <id>Parent entity ID
--background-color <color>Background color (hex format)
-o, --output <format>Output format (json
-v, --verboseShow detailed creation information
toothfairy create-entity <label>

create-folder

Create a new folder with specified name

Arguments

NameDescription
<name>Folder name

Options

FlagDescription
--user-id <id>User ID (optional, uses configured value if not provided)
--description <desc>Folder description
--emoji <emoji>Folder emoji
--status <status>Folder status
--parent <id>Parent folder ID
-o, --output <format>Output format (json
-v, --verboseShow detailed creation information
toothfairy create-folder <name>

create-function

Create a new agent function

Options

FlagDescription
--name <name>Function name
--description <description>Function description
--code <code>Function code
--url <url>Function URL endpoint
--request-type <type>Request type (get
--authorisation-type <type>Authorisation type (bearer
--scope <scope>Function scope (customerAuthentication
--is-mcp-serverMark as MCP server
--is-agent-skillMark as agent skill
--is-callback-fnMark as callback function
--is-hand-off-fnMark as handoff function
--is-chat-fnMark as chat function
--is-html-fnMark as HTML function
--is-database-scriptMark as database script
--is-code-templateMark as code template
--chat-action <action>Chat action (suggestion
--hand-off-agent <agentId>Agent ID to hand off to
--hand-off-to-original-agent-on-completion <bool>Hand off to original agent on completion (true
--hand-off-to-original-agent-on-failure <bool>Hand off to original agent on failure (true
--hand-off-agent-on-completion <agentId>Agent ID to hand off to on completion
--hand-off-agent-on-failure <agentId>Agent ID to hand off to on failure
--users-to-hand-off-to <users>Comma-separated user IDs to hand off to
--handed-off-to-human-on-callHand off to human on call
--agent-skill-script <script>Agent skill script
--chat-script <script>Chat script
--html-url <url>HTML URL
--html-script <script>HTML script
--is-html-redirect-fnMark as HTML redirect function
--html-form-on-successful-submit-message <msg>HTML form success message
--html-form-on-failed-submit-message <msg>HTML form failure message
--db-connection-id <id>Database connection ID
--db-script <script>Database script
--db-schema-metadata <json>Database schema metadata (JSON)
--pre-execution-script <script>Pre-execution script
--post-execution-script <script>Post-execution script
--pre-execution-fn-id <id>Pre-execution function ID
--pre-execution-mapping <json>Pre-execution mapping (JSON)
--oauth-connection-id <id>OAuth connection ID
--code-execution-environment-id <id>Code execution environment ID
--on-fn-call <json>On function call config (JSON)
--parameters <json>Function parameters (JSON)
--headers <json>Headers (JSON)
--static-args <json>Static arguments (JSON)
--graphql-query <query>GraphQL query
--graphql-mutation <mutation>GraphQL mutation
--graphql-operation-name <name>GraphQL operation name
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy create-function

create-hook

Create a new hook

Options

FlagDescription
--name <name>Hook name
--url <url>Hook URL
--events <events>Events to trigger on (comma-separated)
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy create-hook

create-member

Create a new workspace member

Options

FlagDescription
--user-id <id>User ID (required)
--role <role>Member role (optional)
--status <status>Member status (optional)
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy create-member

create-prompt

Create a new prompt with specified parameters

Arguments

NameDescription
<type>Prompt type
<label>Prompt label
<prompt-length>Prompt length (number)
<interpolation-string>Interpolation string

Options

FlagDescription
--user-id <id>User ID (optional, uses configured value if not provided)
--scope <scope>Prompt scope
--style <style>Prompt style
--domain <domain>Prompt domain
--prompt-placeholder <placeholder>Prompt placeholder
--available-to-agents <agents>Comma-separated agent IDs
-o, --output <format>Output format (json
-v, --verboseShow detailed creation information
toothfairy create-prompt <type> <label> <prompt-length> <interpolation-string>

create-scheduled-job

Create a new scheduled job

Arguments

NameDescription
[id]Scheduled Job ID (optional)

Options

FlagDescription
--name <name>Job name
--description <desc>Job description
--agent-id <id>Agent ID to run
--custom-prompt-id <id>Custom prompt ID
--forced-prompt <prompt>Forced prompt
--timezone <tz>Timezone (default: UTC)
--frequency <freq>Frequency (MINUTES
--interval <n>Interval value
--cron-expression <expr>Cron expression (for CUSTOM frequency)
--day-of-week <n>Day of week (0-6)
--day-of-month <n>Day of month (1-31)
--hour <n>Hour (0-23)
--minute <n>Minute (0-59)
--start-date <date>Start date (ISO format)
--end-date <date>End date (ISO format)
--timeout <ms>Execution timeout in milliseconds
--max-duration <ms>Max execution duration in milliseconds
--priority <p>Priority (CRITICAL
--input-params <json>Input parameters (JSON)
--webhook-url <url>Webhook URL for notifications
--webhook-headers <json>Webhook headers (JSON)
--notify-on-successNotify on success
--notify-on-failureNotify on failure
--notify-on-startNotify on start
--email-recipients <emails>Email recipients (comma-separated)
--communication-service-id <id>Communication service ID
--max-retries <n>Max retry attempts
--retry-interval <ms>Retry interval in milliseconds
--backoff-multiplier <n>Backoff multiplier
--max-retry-interval <ms>Max retry interval in milliseconds
--metadata <json>Additional metadata (JSON)
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy create-scheduled-job [id]

create-secret

Create a new secret

Options

FlagDescription
--name <name>Secret name
--value <value>Secret value
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy create-secret

create-trigger

Create a new event-driven agent trigger

Options

FlagDescription
--name <name>Trigger name
--custom-prompt-id <id>Custom prompt ID
--description <desc>Trigger description
--forced-prompt <prompt>Forced prompt text
--event-config <json>Event config as JSON string
--status <status>Trigger status (ARMED
--metadata <json>Metadata JSON string
-o, --output <format>Output format (json
toothfairy create-trigger

delete-agent

Delete an agent

Arguments

NameDescription
<id>Agent ID

Options

FlagDescription
--confirmSkip confirmation prompt
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy delete-agent <id>

delete-authorisation

Delete an authorisation

Arguments

NameDescription
<id>Authorisation ID

Options

FlagDescription
--confirmSkip confirmation prompt
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy delete-authorisation <id>

delete-authorization

Delete an authorization

Arguments

NameDescription
<id>Authorization ID

Options

FlagDescription
--confirmSkip confirmation prompt
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy delete-authorization <id>

delete-benchmark

Delete a benchmark

Arguments

NameDescription
<id>Benchmark ID

Options

FlagDescription
--confirmSkip confirmation prompt
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy delete-benchmark <id>

delete-channel

Delete a channel

Arguments

NameDescription
<id>Channel ID

Options

FlagDescription
--confirmSkip confirmation prompt
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy delete-channel <id>

delete-connection

Delete a connection

Arguments

NameDescription
<id>Connection ID

Options

FlagDescription
--confirmSkip confirmation prompt
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy delete-connection <id>

delete-doc

Delete a document

Arguments

NameDescription
<document-id>ID of the document to delete

Options

FlagDescription
--confirmSkip confirmation prompt
-o, --output <format>Output format (json
-v, --verboseShow detailed deletion information
toothfairy delete-doc <document-id>

delete-entity

Delete an entity

Arguments

NameDescription
<id>Entity ID

Options

FlagDescription
--confirmSkip confirmation prompt
-o, --output <format>Output format (json
-v, --verboseShow detailed deletion information
toothfairy delete-entity <id>

delete-folder

Delete a folder

Arguments

NameDescription
<id>Folder ID

Options

FlagDescription
--confirmSkip confirmation prompt
-o, --output <format>Output format (json
-v, --verboseShow detailed deletion information
toothfairy delete-folder <id>

delete-function

Delete a function

Arguments

NameDescription
<id>Function ID

Options

FlagDescription
--confirmSkip confirmation prompt
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy delete-function <id>

delete-hook

Delete a hook

Arguments

NameDescription
<id>Hook ID

Options

FlagDescription
--confirmSkip confirmation prompt
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy delete-hook <id>

delete-member

Delete a member

Arguments

NameDescription
<id>Member ID

Options

FlagDescription
--confirmSkip confirmation prompt
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy delete-member <id>

delete-prompt

Delete a prompt

Arguments

NameDescription
<id>Prompt ID

Options

FlagDescription
--confirmSkip confirmation prompt
-o, --output <format>Output format (json
-v, --verboseShow detailed deletion information
toothfairy delete-prompt <id>

delete-scheduled-job

Delete a scheduled job

Arguments

NameDescription
<id>Scheduled Job ID

Options

FlagDescription
--confirmSkip confirmation prompt
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy delete-scheduled-job <id>

delete-secret

Delete a secret

Arguments

NameDescription
<id>Secret ID

Options

FlagDescription
--confirmSkip confirmation prompt
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy delete-secret <id>

delete-site

Delete a site

Arguments

NameDescription
<id>Site ID

Options

FlagDescription
--confirmSkip confirmation prompt
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy delete-site <id>

delete-trigger

Delete a trigger

Arguments

NameDescription
<triggerId>Trigger ID

Options

FlagDescription
-o, --output <format>Output format (json
toothfairy delete-trigger <triggerId>

download

Download a file from ToothFairy workspace

Options

FlagDescription
--workspace-id <id>Workspace ID (uses config default if not specified)
--context <context>Download context (default: pdf)
--output-dir <dir>Output directory
--output-name <name>Output filename (defaults to original filename)
-o, --output <format>Output format (json
-v, --verboseShow detailed download information
toothfairy download

generate-speech

Generate speech audio from text using ToothFairyAI

Arguments

NameDescription
<text>Text to convert to speech

Options

FlagDescription
--chat-id <id>Chat ID for context (optional)
--last-message-id <id>Last message ID for context (optional)
-o, --output <format>Output format (json
-v, --verboseShow detailed generation information
toothfairy generate-speech <text>

get-agent

Get details of a specific agent

Arguments

NameDescription
<id>Agent ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-agent <id>

get-authorisation

Get details of a specific authorisation

Arguments

NameDescription
<id>Authorisation ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-authorisation <id>

get-authorization

Get details of a specific authorization

Arguments

NameDescription
<id>Authorization ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-authorization <id>

get-benchmark

Get details of a specific benchmark

Arguments

NameDescription
<id>Benchmark ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-benchmark <id>

get-benchmark-run

Get a benchmark run by ID with score and metadata

Arguments

NameDescription
<run_id>Run ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-benchmark-run <run_id>

get-channel

Get details of a specific channel

Arguments

NameDescription
<id>Channel ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-channel <id>

get-charting-settings

Get charting settings

Arguments

NameDescription
<id>Settings ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-charting-settings <id>

get-connection

Get details of a specific connection

Arguments

NameDescription
<id>Connection ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-connection <id>

get-dictionary

Get dictionary entry

Arguments

NameDescription
<id>Dictionary ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-dictionary <id>

get-doc

Get details of a specific document

Arguments

NameDescription
<document-id>ID of the document to retrieve

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed document information
toothfairy get-doc <document-id>

get-embedding

Get embedding for text

Arguments

NameDescription
<text>Text to get embedding for

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-embedding <text>

get-embeddings-settings

Get embeddings settings

Arguments

NameDescription
<id>Settings ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-embeddings-settings <id>

get-entity

Get details of a specific entity

Arguments

NameDescription
<id>Entity ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-entity <id>

get-folder

Get details of a specific folder

Arguments

NameDescription
<id>Folder ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-folder <id>

get-function

Get details of a specific function

Arguments

NameDescription
<id>Function ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-function <id>

get-hook

Get details of a specific hook

Arguments

NameDescription
<id>Hook ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-hook <id>

get-member

Get details of a specific member

Arguments

NameDescription
<id>Member ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-member <id>

get-prompt

Get details of a specific prompt

Arguments

NameDescription
<id>Prompt ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-prompt <id>

get-request

Get details of a specific request

Arguments

NameDescription
<id>Request ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-request <id>

get-scheduled-job

Get details of a specific scheduled job

Arguments

NameDescription
<id>Scheduled Job ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-scheduled-job <id>

get-site

Get details of a specific site

Arguments

NameDescription
<id>Site ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-site <id>

get-stream

Get details of a specific stream

Arguments

NameDescription
<id>Stream ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy get-stream <id>

get-trigger

Get a specific trigger by ID

Arguments

NameDescription
<triggerId>Trigger ID

Options

FlagDescription
-o, --output <format>Output format (json
toothfairy get-trigger <triggerId>

help-guide

Show detailed help and usage examples

toothfairy help-guide

list-agents

List all agents

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-agents

list-authorisations

List all authorisations

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-authorisations

list-authorizations

List all authorizations

Options

FlagDescription
--limit <number>Maximum number to return
--offset <number>Number to skip
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-authorizations

list-benchmark-runs

List benchmark runs for the workspace

Options

FlagDescription
--agent-id <id>Filter by agent ID
--benchmark-id <id>Filter by benchmark ID
--type <type>Filter by type (bm
--status <status>Filter by status
--limit <n>Maximum runs to return
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-benchmark-runs

list-benchmarks

List all benchmarks

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-benchmarks

list-channels

List all channels

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-channels

list-connections

List all connections

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-connections

list-dictionaries

List all dictionaries

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-dictionaries

list-entities

List all entities in the workspace

Options

FlagDescription
--type <type>Filter by entity type (intent
--limit <number>Maximum number of entities to return
--offset <number>Number of entities to skip
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-entities

list-folders

List all folders in the workspace

Options

FlagDescription
--status <status>Filter by folder status
--limit <number>Maximum number of folders to return
--offset <number>Number of folders to skip
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-folders

list-functions

List all functions

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-functions

list-hooks

List all hooks

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-hooks

list-members

List all members

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-members

list-messages-bychat

List all messages in a specific chat

Arguments

NameDescription
<chat-id>Chat ID to retrieve messages from

Options

FlagDescription
-o, --output <format>Output format (json
toothfairy list-messages-bychat <chat-id>

list-prompts

List all prompts in the workspace

Options

FlagDescription
--type <type>Filter by prompt type
--limit <number>Maximum number of prompts to return
--offset <number>Number of prompts to skip
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-prompts

list-requests

List all requests

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-requests

list-scheduled-jobs

List all scheduled jobs

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-scheduled-jobs

list-scheduled-jobs-by-status

List scheduled jobs filtered by status

Arguments

NameDescription
<status>Status to filter by (ACTIVE

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-scheduled-jobs-by-status <status>

list-sites

List all sites

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-sites

list-streams

List all streams

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy list-streams

list-triggers

List all triggers in the workspace

Options

FlagDescription
--limit <n>Maximum number of triggers to return
--offset <n>Number of triggers to skip
-o, --output <format>Output format (json
toothfairy list-triggers

migrate

Migrate an agent from one profile to another

Options

FlagDescription
-s, --source <profile>Source profile (required)
-d, --destination <profile>Destination profile (required)
--id <id>Agent ID to migrate
--name <name>Agent name/label to migrate
--forceUpdate existing agent without prompting
--dry-runShow what would be migrated without making changes
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy migrate

pause-scheduled-job

Pause a scheduled job

Arguments

NameDescription
<id>Scheduled Job ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy pause-scheduled-job <id>

pause-trigger

Pause (disarm) a trigger

Arguments

NameDescription
<triggerId>Trigger ID

Options

FlagDescription
-o, --output <format>Output format (json
toothfairy pause-trigger <triggerId>

predict

Generate streaming AI predictions (OpenAI-compatible) from a ToothFairyAI model

Arguments

NameDescription
<message>Message text to send to the model

Options

FlagDescription
--system <prompt>Optional system message
--message-role <role>Role of the message argument (default: user)
--max-tokens <n>Maximum tokens to generate
--temperature <n>Sampling temperature (0-2)
--top-p <n>Nucleus sampling (0-1)
--top-k <n>Top-K sampling
--repetition-penalty <n>Repetition penalty (default 1.0)
--frequency-penalty <n>Frequency penalty (-2 to 2)
--presence-penalty <n>Presence penalty (-2 to 2)
--stop <sequences>Stop sequence(s), comma-separated
--seed <n>Deterministic sampling seed
--reasoning-mode <mode>Reasoning mode: always
--reasoning-budget <n>Max tokens for thinking
--reasoning-effort <effort>Reasoning effort: low
--response-format <json>OpenAI response_format as JSON string
--verbosity <v>Output verbosity: low
--user <id>End-user identifier for tracking
--region <r>Provider pool region: global
--tools <json>OpenAI-format tools JSON string
--tool-choice <choice>auto
--workspace-id <id>Override workspace id (deprecated; resolved from api key by default)
-o, --output <format>Output format (json
toothfairy predict <message>

process-audio

Process audio file and generate text using ToothFairyAI

Arguments

NameDescription
<audio-file-path>Path/URL to the audio file (e.g.,

Options

FlagDescription
--diarisationEnable speaker diarisation (disabled by default)
-o, --output <format>Output format (json
-v, --verboseShow detailed processing information
toothfairy process-audio <audio-file-path>

profile

Show profiles, switch to, or delete a profile

Options

FlagDescription
-o, --output <format>Output format (json
-d, --delete <name>Delete a profile
toothfairy profile

resume-scheduled-job

Resume a paused scheduled job

Arguments

NameDescription
<id>Scheduled Job ID

Options

FlagDescription
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy resume-scheduled-job <id>

resume-trigger

Resume (arm) a paused trigger

Arguments

NameDescription
<triggerId>Trigger ID

Options

FlagDescription
-o, --output <format>Output format (json
toothfairy resume-trigger <triggerId>

run-benchmark

Start a benchmark run to evaluate an agent

Arguments

NameDescription
<benchmark_id>Benchmark ID
<agent_id>Agent ID

Options

FlagDescription
--type <type>Run type: bm or abm
--mode <mode>ABM mode: static or dynamic
--name <name>Optional name for the run
--passing-score <score>Minimum score to pass (0-1)
--num-questions <n>Number of questions to use
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy run-benchmark <benchmark_id> <agent_id>

Search for documents in the knowledge hub

Arguments

NameDescription
<query>search query text

Options

FlagDescription
-k, --top-k <number>Number of documents to retrieve (1-50)
--status <status>Filter by document status (published
--document-id <id>Search within specific document ID
--topics <topics>Comma-separated topic IDs to filter by
-o, --output <format>Output format (json
-v, --verboseShow detailed search information
toothfairy search <query>

send

Send a message to a ToothFairyAI agent

Arguments

NameDescription
<message>message to send

Options

FlagDescription
--agent-id <id>Agent ID to send message to (uses default if configured)
--chat-id <id>Chat ID to use existing conversation (optional)
--phone-number <number>Phone number for SMS channel
--customer-id <id>Customer ID
--provider-id <id>SMS provider ID
--customer-info <json>Customer info as JSON string
--image <path>Path to image file (png, jpg, jpeg, gif, bmp, svg)
--audio <path>Path to audio file (wav, mp3, aac, ogg, flac)
--video <path>Path to video file (mp4, avi, mov, wmv, flv, webm)
--file <path...>Path to document files (max 5)
--local-file <path...>Path to local files to include (text files embedded in message, binary files uploaded)
-o, --output <format>Output format (json
-v, --verboseShow detailed response information
toothfairy send <message>

send-stream

Send a message to a ToothFairyAI agent with real-time streaming response

Arguments

NameDescription
<message>message to send

Options

FlagDescription
--agent-id <id>Agent ID to send message to (uses default if configured)
--chat-id <id>Chat ID to use existing conversation (optional)
--phone-number <number>Phone number for SMS channel
--customer-id <id>Customer ID
--provider-id <id>SMS provider ID
--customer-info <json>Customer info as JSON string
--image <path>Path to image file (PNG, max 1)
--audio <path>Path to audio file (WAV, max 1)
--video <path>Path to video file (MP4, max 1)
--file <path>Path to file (max 5, can be used multiple times)
--local-file <path...>Path to local files to include (text files embedded in message, binary files uploaded)
-o, --output <format>Output format (json
-v, --verboseShow detailed streaming information
--show-progressShow agent processing status updates
toothfairy send-stream <message>

setup

Create or update a tfcode profile in ~/.tfcode/profiles.json

Options

FlagDescription
--name <name>Profile name
--api-key <key>API key
--workspace-id <id>Workspace ID
--region <region>Region (dev, au, eu, us)
toothfairy setup

update-agent

Update an existing agent

Arguments

NameDescription
<id>Agent ID

Options

FlagDescription
--label <label>Agent label
--description <description>Agent description
--emoji <emoji>Agent emoji
--mode <mode>Agent mode
--agent-type <type>Agent type (Chatbot
--llm-provider <provider>LLM provider name
--llm-base-model <model>LLM base model name
--llm-url <url>LLM URL endpoint
--reasoning-mode <mode>Reasoning mode (auto
--reasoning-effort <effort>Reasoning effort (none
--fn-reasoning-effort <effort>Function reasoning effort (none
--voice-name <name>Voice name for voice agents
--agents-pool <ids>Comma-separated agent IDs for agents pool
--mcps <ids>Comma-separated MCP IDs
--rag-search-strategy <strategy>RAG search strategy (parallel
--re-rag <bool>Enable re-ranking for RAG (true
--internet-search-modes <modes>Comma-separated internet search modes
--sip-phone-number <number>SIP phone number
--sip-dispatch-rule-id <id>SIP dispatch rule ID
--enable-inbound-sip <bool>Enable inbound SIP (true
--enable-outbound-sip <bool>Enable outbound SIP (true
--temperature <temp>Temperature (0.0-2.0)
--max-tokens <tokens>Max tokens
--max-history <history>Max conversation history
--top-k <k>Top K for retrieval
--doc-top-k <k>Document top K
--interpolation-string <string>System prompt template
--goals <goals>Agent goals
--department <dept>Department
--allow-images-upload <bool>Allow image uploads (true
--allow-videos-upload <bool>Allow video uploads (true
--allow-audios-upload <bool>Allow audio uploads (true
--allow-docs-upload <bool>Allow document uploads (true
--allow-internet-search <bool>Allow internet search (true
--agentic-rag <bool>Enable agentic RAG (true
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy update-agent <id>

update-authorisation

Update an existing authorisation

Arguments

NameDescription
<id>Authorisation ID

Options

FlagDescription
--name <name>Authorisation name
--permissions <permissions>Permissions (JSON)
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy update-authorisation <id>

update-authorization

Update an existing authorization

Options

FlagDescription
--id <id>Authorization ID
--name <name>Authorization name
--type <type>Authorization type
--config <config>Authorization configuration (JSON)
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy update-authorization

update-benchmark

Update an existing benchmark

Arguments

NameDescription
<id>Benchmark ID

Options

FlagDescription
--name <name>Benchmark name
--description <description>Benchmark description
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy update-benchmark <id>

update-channel

Update an existing channel

Arguments

NameDescription
<id>Channel ID

Options

FlagDescription
--name <name>Channel name
--type <type>Channel type
--config <config>Channel configuration (JSON)
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy update-channel <id>

update-charting-settings

Update charting settings

Arguments

NameDescription
<id>Settings ID

Options

FlagDescription
--config <config>Settings configuration (JSON)
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy update-charting-settings <id>

update-connection

Update an existing connection

Arguments

NameDescription
<id>Connection ID

Options

FlagDescription
--name <name>Connection name
--type <type>Hosting type
--endpoint <url>API endpoint URL
--model-name <name>Model name
--base-model <model>Base model
--custom-model <bool>Mark as custom model (true
--api-version <version>API version
--token-secret <secret>Token secret reference
--description <desc>Description
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy update-connection <id>

update-doc

Update an existing document

Arguments

NameDescription
<document-id>ID of the document to update

Options

FlagDescription
--type <type>Document type
--rawtext <text>Raw text content
--title <title>Document title
--status <status>Document status (draft
-o, --output <format>Output format (json
-v, --verboseShow detailed update information
toothfairy update-doc <document-id>

update-embeddings-settings

Update embeddings settings

Arguments

NameDescription
<id>Settings ID

Options

FlagDescription
--config <config>Settings configuration (JSON)
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy update-embeddings-settings <id>

update-entity

Update an existing entity

Arguments

NameDescription
<id>Entity ID

Options

FlagDescription
--label <label>New entity label
--type <type>New entity type (intent
--description <desc>New entity description
--emoji <emoji>New entity emoji
--parent-entity <id>New parent entity ID
--background-color <color>New background color (hex format)
-o, --output <format>Output format (json
-v, --verboseShow detailed update information
toothfairy update-entity <id>

update-folder

Update an existing folder

Arguments

NameDescription
<id>Folder ID

Options

FlagDescription
--name <name>New folder name
--description <desc>New folder description
--emoji <emoji>New folder emoji
--status <status>New folder status
--parent <id>New parent folder ID
-o, --output <format>Output format (json
-v, --verboseShow detailed update information
toothfairy update-folder <id>

update-function

Update an existing function

Arguments

NameDescription
<id>Function ID

Options

FlagDescription
--name <name>Function name
--description <description>Function description
--code <code>Function code
--url <url>Function URL endpoint
--request-type <type>Request type
--authorisation-type <type>Authorisation type
--scope <scope>Function scope
--is-mcp-server <bool>Mark as MCP server (true
--is-agent-skill <bool>Mark as agent skill (true
--is-callback-fn <bool>Mark as callback function (true
--is-hand-off-fn <bool>Mark as handoff function (true
--is-chat-fn <bool>Mark as chat function (true
--is-html-fn <bool>Mark as HTML function (true
--is-database-script <bool>Mark as database script (true
--is-code-template <bool>Mark as code template (true
--chat-action <action>Chat action
--hand-off-agent <agentId>Agent ID to hand off to
--hand-off-to-original-agent-on-completion <bool>Hand off to original agent on completion (true
--hand-off-to-original-agent-on-failure <bool>Hand off to original agent on failure (true
--hand-off-agent-on-completion <agentId>Agent ID to hand off to on completion
--hand-off-agent-on-failure <agentId>Agent ID to hand off to on failure
--users-to-hand-off-to <users>Comma-separated user IDs to hand off to
--handed-off-to-human-on-call <bool>Hand off to human on call (true
--agent-skill-script <script>Agent skill script
--chat-script <script>Chat script
--html-url <url>HTML URL
--html-script <script>HTML script
--is-html-redirect-fn <bool>Mark as HTML redirect function (true
--html-form-on-successful-submit-message <msg>HTML form success message
--html-form-on-failed-submit-message <msg>HTML form failure message
--db-connection-id <id>Database connection ID
--db-script <script>Database script
--db-schema-metadata <json>Database schema metadata (JSON)
--pre-execution-script <script>Pre-execution script
--post-execution-script <script>Post-execution script
--pre-execution-fn-id <id>Pre-execution function ID
--pre-execution-mapping <json>Pre-execution mapping (JSON)
--oauth-connection-id <id>OAuth connection ID
--code-execution-environment-id <id>Code execution environment ID
--on-fn-call <json>On function call config (JSON)
--parameters <json>Function parameters (JSON)
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy update-function <id>

update-hook

Update an existing hook

Arguments

NameDescription
<id>Hook ID

Options

FlagDescription
--name <name>Hook name
--url <url>Hook URL
--events <events>Events to trigger on (comma-separated)
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy update-hook <id>

update-member

Update a member

Arguments

NameDescription
<id>Member ID

Options

FlagDescription
--name <name>Member name
--email <email>Member email
--role <role>Member role
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy update-member <id>

update-prompt

Update an existing prompt

Arguments

NameDescription
<id>Prompt ID

Options

FlagDescription
--type <type>New prompt type
--label <label>New prompt label
--prompt-length <length>New prompt length (number)
--interpolation-string <string>New interpolation string
--scope <scope>New prompt scope
--style <style>New prompt style
--domain <domain>New prompt domain
--prompt-placeholder <placeholder>New prompt placeholder
--available-to-agents <agents>New comma-separated agent IDs
-o, --output <format>Output format (json
-v, --verboseShow detailed update information
toothfairy update-prompt <id>

update-scheduled-job

Update an existing scheduled job

Arguments

NameDescription
<id>Scheduled Job ID

Options

FlagDescription
--name <name>Job name
--description <desc>Job description
--agent-id <id>Agent ID to run
--custom-prompt-id <id>Custom prompt ID
--forced-prompt <prompt>Forced prompt
--timezone <tz>Timezone
--frequency <freq>Frequency (MINUTES
--interval <n>Interval value
--cron-expression <expr>Cron expression (for CUSTOM frequency)
--day-of-week <n>Day of week (0-6)
--day-of-month <n>Day of month (1-31)
--hour <n>Hour (0-23)
--minute <n>Minute (0-59)
--start-date <date>Start date (ISO format)
--end-date <date>End date (ISO format)
--timeout <ms>Execution timeout in milliseconds
--max-duration <ms>Max execution duration in milliseconds
--priority <p>Priority (CRITICAL
--input-params <json>Input parameters (JSON)
--webhook-url <url>Webhook URL for notifications
--webhook-headers <json>Webhook headers (JSON)
--notify-on-successNotify on success
--notify-on-failureNotify on failure
--notify-on-startNotify on start
--email-recipients <emails>Email recipients (comma-separated)
--communication-service-id <id>Communication service ID
--max-retries <n>Max retry attempts
--retry-interval <ms>Retry interval in milliseconds
--backoff-multiplier <n>Backoff multiplier
--max-retry-interval <ms>Max retry interval in milliseconds
--metadata <json>Additional metadata (JSON)
--is-active <bool>Is active (true
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy update-scheduled-job <id>

update-site

Update a site

Arguments

NameDescription
<id>Site ID

Options

FlagDescription
--name <name>Site name
--url <url>Site URL
-o, --output <format>Output format (json
-v, --verboseShow detailed information
toothfairy update-site <id>

update-trigger

Update an existing trigger

Arguments

NameDescription
<triggerId>Trigger ID

Options

FlagDescription
--name <name>Trigger name
--agent-id <id>Agent ID
--description <desc>Description
--forced-prompt <prompt>Forced prompt text
--is-active <bool>Arm (true) or disarm (false)
--status <status>Status (ARMED
--metadata <json>Metadata JSON string
-o, --output <format>Output format (json
toothfairy update-trigger <triggerId>

upload

Upload a file to ToothFairy workspace

Arguments

NameDescription
<file-path>Path to file to upload

Options

FlagDescription
--import-type <type>Import type (optional, auto-detected from extension)
--content-type <type>Content type (optional, auto-detected from extension)
-o, --output <format>Output format (json
-v, --verboseShow detailed upload information
toothfairy upload <file-path>

validate

Validate ToothFairyAI credentials

toothfairy validate