본문으로 건너뛰기

Plugin CLI Commands

The Synapse SDK provides CLI commands for plugin development and execution.

synapse plugin run

Run a plugin action with various execution modes.

Usage

synapse plugin run <action> [OPTIONS]

Arguments

ArgumentDescription
actionAction to run (e.g., test, train, deploy, infer)

Options

OptionShortDescription
--plugin-pPlugin code. Auto-detects from config.yaml if not provided
--pathPlugin directory (default: current)
--paramsJSON parameters to pass to the action
--mode-mExecutor mode: local, task, job, or remote
--ray-addressRay cluster address (for task/job modes)
--gpusNumber of GPUs to request
--cpusNumber of CPUs to request
--lang-lLanguage for i18n log messages (ISO 639-1, e.g., 'en', 'ko')
--debug/--no-debugDebug mode (default: enabled)
--debug-sdkBundle local SDK with upload (for SDK development)

Executor Modes

ModeDescription
localIn-process execution (best for debugging)
taskRay Actor execution (no log streaming)
jobRay Jobs API with log streaming (recommended for remote)
remoteRun via Synapse backend API (requires auth)

Examples

# Basic execution
synapse plugin run test
synapse plugin run test --mode local

# With GPU allocation
synapse plugin run test --mode task --gpus 1

# With parameters
synapse plugin run train --mode job --params '{"epochs": 10}'

# With language selection (i18n)
synapse plugin run train --lang=ko --params '{"epochs": 10}'
synapse plugin run train -l en # Short form

# Language with different execution modes
synapse plugin run train --mode local --lang=ko
synapse plugin run train --mode task --lang=ko
synapse plugin run train --mode job --lang=ko

# Remote execution
synapse plugin run deploy --mode remote

synapse plugin publish

Publish a plugin release to Synapse.

Usage

synapse plugin publish [OPTIONS]

Options

OptionShortDescription
--path-pPlugin directory (default: current)
--config-cConfig file path
--hostSynapse API host
--token-tAccess token
--dry-runPreview without uploading
--debugDebug mode (bypasses backend validation)
--yes-ySkip confirmation

Examples

synapse plugin publish
synapse plugin publish -p ./my-plugin --dry-run

synapse plugin create

Create a new plugin from template.

Usage

synapse plugin create [OPTIONS]

Options

OptionShortDescription
--path-pOutput directory (default: current)
--name-nPlugin name
--codePlugin code (slug)
--category-cPlugin category
--yes-ySkip confirmation

Examples

synapse plugin create
synapse plugin create --name "My Plugin" --category neural_net

synapse plugin update-config

Auto-discover actions and sync to config.yaml.

Usage

synapse plugin update-config [OPTIONS]

Options

OptionShortDescription
--path-pPlugin directory (default: current)
--config-cConfig file path

Examples

synapse plugin update-config
synapse plugin update-config -p ./my-plugin

synapse plugin job get

Get job details.

Usage

synapse plugin job get <job_id> [OPTIONS]

Options

OptionShortDescription
--hostSynapse API host
--token-tAccess token

Examples

synapse plugin job get 123

synapse plugin job logs

Get job logs.

Usage

synapse plugin job logs <job_id> [OPTIONS]

Options

OptionShortDescription
--follow-fFollow log output (stream)
--hostSynapse API host
--token-tAccess token

Examples

synapse plugin job logs 123
synapse plugin job logs 123 -f