Skip to content

Sync Commands ​

Discord sync, config profile management, bot registration.

Commands ​

optimal sync discord:init ​

Create Discord channels for all active projects

FlagDescriptionDefaultRequired
--dry-runPreview without creating
bash
optimal sync discord:init
optimal sync discord:init --dry-run

optimal sync discord:push ​

Push Supabase tasks to Discord threads

FlagDescriptionDefaultRequired
--dry-runPreview without creating
bash
optimal sync discord:push
optimal sync discord:push --dry-run

optimal sync discord:pull ​

Pull Discord thread state into Supabase

FlagDescriptionDefaultRequired
--dry-runPreview without changes
bash
optimal sync discord:pull
optimal sync discord:pull --dry-run

optimal sync discord:status ​

Show diff between Discord threads and Supabase tasks

bash
optimal sync discord:status

optimal sync discord:sync ​

Bidirectional sync: push Supabase tasks to Discord, then pull Discord state to Supabase

FlagDescriptionDefaultRequired
--dry-runPreview without making changes
bash
optimal sync discord:sync
optimal sync discord:sync --dry-run

optimal sync discord:watch ​

Start live Discord bot — syncs signals and threads in real-time

FlagDescriptionDefaultRequired
--role <name>Required Discord role name for accessOptimal
bash
optimal sync discord:watch
optimal sync discord:watch --role Optimal

optimal sync config ​

Manage optimal-cli local/shared config profile

optimal sync config init ​

Create a local config scaffold (overwrites with --force)

FlagDescriptionDefaultRequired
--owner <owner>Config owner (default: $OPTIMAL_CONFIG_OWNER or $USER)
--profile <name>Profile namedefault
--brand <brand>Default brandCRE-11TRUST
--timezone <tz>Default timezoneAmerica/New_York
--forceOverwrite existing config
bash
optimal sync config init --owner optimal-tech --brand CRE-11TRUST

optimal sync config doctor ​

Validate local config file and print health details

bash
optimal sync config doctor

optimal sync config show ​

Display current local config in full

FlagDescriptionDefaultRequired
--jsonOutput as JSON
bash
optimal sync config show
optimal sync config show --json

optimal sync config export ​

Export local config to a JSON path

FlagDescriptionDefaultRequired
--out <path>Output path for JSON exportyes
bash
optimal sync config export --out ./optimal-config-backup.json

optimal sync config import ​

Import local config from a JSON path

FlagDescriptionDefaultRequired
--in <path>Input path for JSON configyes
bash
optimal sync config import --in ./optimal-config-backup.json

optimal sync config list ​

List all profiles in the shared registry

FlagDescriptionDefaultRequired
--owner <name>Filter by owner
bash
optimal sync config list
optimal sync config list --owner oracle

optimal sync config sync ​

Sync local profile with shared registry

optimal sync config sync pull ​

Pull config profile from shared registry into local config

FlagDescriptionDefaultRequired
--profile <name>Registry profile namedefault
--owner <name>Config owner (defaults to local config or OPTIMAL_CONFIG_OWNER)
bash
optimal sync config sync pull --profile default
optimal sync config sync push ​

Push local config profile to shared registry

FlagDescriptionDefaultRequired
--agent <name>Agent/owner name (defaults to local config or OPTIMAL_CONFIG_OWNER)
--profile <name>Registry profile namedefault
--forceForce write even on conflict
bash
optimal sync config sync push --profile default

optimal sync register ​

Register this bot with admin config and sync credentials

FlagDescriptionDefaultRequired
--agent <name>Agent/bot name
--email <email>Owner email (your email)
--adminRegister as admin (publishes config for other bots)
bash
optimal sync register --agent bot1 --email you@example.com
optimal sync register --agent oracle --email you@example.com --admin

optimal sync bots ​

List registered bots

bash
optimal sync bots

optimal sync npm:watch ​

Check npm registry for new version of optimal-cli

FlagDescriptionDefaultRequired
--package <name>Package name to checkoptimal-cli
bash
optimal sync npm:watch
optimal sync npm:watch --package optimal-cli

Built by Carlos Lenis in Miami