Liking cljdoc? Tell your friends :D

CLI reference

Run a Synthigy instance, or connect your code to one

Client — connect developers, services and bots to a Synthigy server

synthigy connect

Authenticate against a Synthigy server and save the connection to this profile

synthigy connect <server-url> [flags]

Examples:

  synthigy connect http://localhost:7887
  synthigy connect https://server.example.com --insecure
  synthigy connect https://server.example.com --client-id svc --client-secret "$SECRET"
  synthigy --env .synthigy/customer2.env connect https://customer2.example.com

Flags:

      --client-id string       Connect as a service: this client's id (non-interactive)
      --client-secret string   Connect as a service: this client's secret (or set SYNTHIGY_CLIENT_SECRET)
      --insecure               Skip TLS certificate verification
      --replace                Replace the identity this profile already holds without asking
      --user                   Force the device-flow (browser) login, skipping the interactive prompt
  -v, --verbose                Verbose output

synthigy disconnect

Disconnect from server and revoke tokens

synthigy disconnect

Examples:

  synthigy disconnect
  synthigy --env .synthigy/customer2.env disconnect

synthigy exec

Run a command under an instance's env (discovered, or explicit -f profiles)

synthigy exec [-f FILE...] -- COMMAND [ARGS...] [flags]

Flags:

  -f, --env-file stringArray   env file to load instead of discovery (repeatable; later files win)
      --show                   print the merged keys to stderr before running (secrets masked)

synthigy schema

The schema snapshot XSQL editor tooling reads

synthigy schema

synthigy schema check

Fail when

/schema.json is older than the deployed model
synthigy schema check [flags]

Examples:

  synthigy schema check
  synthigy schema check --dir queries

Flags:

      --dir string   Directory holding .xsql sources and schema.json (default "xsql")

synthigy schema pull

Refresh

/schema.json from the connected instance
synthigy schema pull [flags]

Examples:

  synthigy schema pull
  synthigy schema pull --dir queries
  synthigy schema pull --role Editor --role Viewer
  synthigy --env .synthigy/customer2.env schema pull

Flags:

      --dir string         Directory holding .xsql sources; schema.json is written here (default "xsql")
      --role stringArray   project the schema onto this role (repeatable)

synthigy token

Print a fresh access token for this profile's saved identity

synthigy token

Examples:

  synthigy token
  synthigy --env .synthigy/customer2.env token

synthigy whoami

Show current user information

synthigy whoami

Examples:

  synthigy whoami
  synthigy --env .synthigy/customer2.env whoami

Server — run and operate a Synthigy instance here

synthigy clean

Prune cached releases and old JREs from ~/.synthigy

synthigy clean [flags]

Flags:

      --keep int   Number of most recent releases to keep (default 2)

synthigy down

Stop the engine and the portal started by 'up'

synthigy down

synthigy iam

Export, import and script IAM configuration

synthigy iam

synthigy iam add-client

Create an OAuth client (and its service user), scripted

synthigy iam add-client <name> [flags]

Flags:

      --api stringArray        audience this client may request a token for (repeatable, confidential only)
      --grant stringArray      allowed grant type, e.g. client_credentials (repeatable)
      --id string              client id (required; the server does not generate one)
      --local                  go through the portal of the instance on this machine instead of a connected server
      --redirect stringArray   allowed redirect URI for authorization_code (repeatable)
      --role stringArray       grant this role to the service user (repeatable, confidential only)
      --secret string          pin the client secret instead of generating one; on an existing client this is the only way to change it
      --trusted                mark the client trusted: no consent screen, and it may run requests as its users (acting_as)
      --type string            public or confidential (default "public")

synthigy iam export

Export IAM configuration as JSON to stdout

synthigy iam export <type> [name...] [flags]

Flags:

      --id stringArray   export only the record with this id (repeatable; only OAuth clients have one)

synthigy iam import

Import IAM configuration from a JSON file

synthigy iam import <type> <file> [flags]

Flags:

      --dry-run       validate without writing
      --mode string   sync (declarative) or stack (additive) (default "sync")

synthigy iam remove-client

Delete an OAuth client and its service user

synthigy iam remove-client <id> [flags]

Flags:

      --local   go through the portal of the instance on this machine instead of a connected server

synthigy iam rotate-client

Give a confidential OAuth client a new secret

synthigy iam rotate-client <id>

synthigy iam set-client

Activate or deactivate an OAuth client

synthigy iam set-client <id> --active=true|false [flags]

Flags:

      --active   true to activate, false to deactivate (default true)

synthigy logs

Show this instance's engine process log (boot and crash output)

synthigy logs [flags]

Examples:

  synthigy logs
  synthigy logs -f
  synthigy logs -n 500

Flags:

  -f, --follow      Keep printing as the log grows
  -n, --lines int   Number of trailing lines to print (default 200)

synthigy portal

Open the portal: setup, health and configuration of the instance on this machine

synthigy portal [flags]

Flags:

  -p, --print   Print the URL only, don't open a browser

synthigy pull

Download a release's bundle into the cache without starting anything

synthigy pull [flags]

Examples:

  synthigy pull --bundle postgres
  synthigy pull --bundle sqlite --version vX.Y.Z

Flags:

      --bundle string    Bundle: sqlite | postgres | postgres-clickhouse (default "sqlite")
      --version string   Release version (e.g. vX.Y.Z) (default "latest")

synthigy service

Run this instance as a boot-time service (systemd user unit / launchd agent)

synthigy service

synthigy service install

Install and enable the service for the current instance home

synthigy service install [flags]

Examples:

  synthigy service install
  sudo synthigy service install --apps   # once per machine, before running apps
  sudo synthigy service install --apps --apps-pool 6G   # apps with 6 GB for their volumes
  sudo synthigy service install --domain box.example.com --email ops@example.com   # a server, Let's Encrypt
  sudo synthigy service install --domain box.example.com --cert fullchain.pem --key key.pem   # a server, your certificate

Flags:

      --acme-url string      With --domain and no --cert: an ACME directory other than Let's Encrypt (staging, or your company's)
      --apps                 Set up this machine to run apps: the synthigy-apps user, its Podman socket and the egress filter (root)
      --apps-domain string   With --domain: the domain App hostnames live under, e.g. example.com for an engine at engine.example.com (default: the --domain name)
      --apps-pool string     With --apps or --domain: make or grow the volume pool for Apps to this size, e.g. 2G, 6G or 12G; it never shrinks (root)
      --cert string          With --domain: the certificate chain (PEM) for the name and *.<apps domain>; without it certificates come from ACME
      --domain string        Make this machine a server for this name: a system service as user synthigy on ports 443 and 80, Podman and apps (root)
      --email string         With --domain and no --cert: the contact address for the ACME account
      --fresh                With --domain: start the server's instance empty instead of moving yours in
      --key string           With --domain: the certificate's private key (PEM)
      --portal-user string   With --apps: the user the portal runs as (default: the user who ran sudo)

synthigy service status

Show the service's state

synthigy service status

synthigy service uninstall

Stop, disable and remove the service (the instance data is untouched)

synthigy service uninstall [flags]

Flags:

      --apps     Remove the apps socket and egress filter instead (root); the synthigy-apps user stays
      --server   Remove the server service instead (root); its user and instance stay

synthigy up

Start the Synthigy engine (cold start: provisions JRE, launches the JVM)

synthigy up [flags]

Examples:

  synthigy up                                # opens the setup wizard on a fresh install
  synthigy up --bundle postgres              # needs POSTGRES_* env; persists the choice
  synthigy up --version vX.Y.Z               # pin a release
  synthigy up --jar synthigy.jar             # local/airgap jar, no download
  synthigy up --join                         # stay attached (systemd / launchd / container PID 1)
  synthigy --env .synthigy/customer1.env up  # replaces <instance-home>/.env, for running several instances

Flags:

      --bundle string    Bundle: sqlite | postgres | postgres-clickhouse — write-through to .env; missing and unset opens the wizard
      --force            Re-download every module even if cached (suspected corruption)
      --jar string       Local jar, or a classpath of module jars, instead of a release download; airgap/custom builds
      --join             Stay attached to this terminal instead of detaching — for process supervisors (systemd Type=simple, launchd, a container's PID 1), which need the process they started to keep running
      --version string   Release version to run (e.g. vX.Y.Z) (default "latest")

synthigy versions

List available Synthigy releases

synthigy versions

App — run apps beside the engine

synthigy app

Run apps on this machine

synthigy app

synthigy app deploy

Pack an app and run it on the connected engine

synthigy app deploy [name | archive.tar] [flags]

Examples:

  synthigy app deploy shop
  synthigy app deploy dist/shop-v1.4.0.tar --client-id shop-preview --client-name shop-preview

Flags:

      --client-id string     Deploy to this OAuth client id instead of the manifest's clientId
      --client-name string   The name that client must have instead of the manifest's clientName
      --timeout duration     How long to wait for the package to run (default 10m0s)
      --version string       Package version (default: git describe --tags --always --dirty)

synthigy app logs

Show a deployed app's output, usage and events from the connected engine

synthigy app logs <client-id> [flags]

Examples:

  synthigy app logs shop
  synthigy app logs shop --kind usage --since 1h
  synthigy app logs shop --since 2026-11-23T10:00:00Z --json

Flags:

      --json           One JSON row per line, as the engine keeps it
      --kind string    Only output, usage or event (default: all)
      --limit int      At most this many rows, the newest (max 1000) (default 200)
      --since string   From this long ago (1h, 30m) or an ISO time
      --until string   Up to this long ago or an ISO time

synthigy app ls

List the apps running on this machine

synthigy app ls

synthigy app pack

Build and check an app's image into dist/-.tar

synthigy app pack [name] [flags]

Examples:

  synthigy app pack shop
  synthigy app pack --version 1.4.0

Flags:

      --version string   Package version (default: git describe --tags --always --dirty)

synthigy app run

Start an app from a packed image archive, replacing its running package

synthigy app run <archive.tar> [flags]

Examples:

  synthigy app run dist/shop-v1.tar --name shop --health /healthz -e GREETING=hi

Flags:

      --cpu int               CPU limit in millicores (default 500)
  -e, --env-var stringArray   Environment variable KEY=VALUE (repeatable)
      --health string         Path that must answer 2xx or 3xx before the app counts as started
      --host stringArray      Hostname the proxy routes to this service (repeatable)
      --kind string           service or worker (default "service")
      --memory int            Memory limit in MB (default 256)
      --name string           App name (required)
      --package string        Package id (default: local-<timestamp>)

synthigy app stop

Stop an app and remove its container

synthigy app stop <name>

Common

synthigy completion

Generate the autocompletion script for the specified shell

synthigy completion

synthigy docs

Read the engine's documentation, as its version has it

synthigy docs [id]

Examples:

  synthigy docs
  synthigy docs files/access
  synthigy docs brief

synthigy doctor

Run system health checks

synthigy doctor

synthigy env

Manage this project's local Synthigy instance (.synthigy/.env)

synthigy env

synthigy env init

Scaffold ./.synthigy for a project-local instance

synthigy env init [flags]

Examples:

  synthigy env init
  synthigy env init --port 7901 --portal-port 7902

Flags:

      --port string          engine port (default: the first free one from 7887)
      --portal-port string   portal port (default: 0, any free port when it starts)

synthigy guide

How a Synthigy project works, for you or your coding agent

synthigy guide

Examples:

  synthigy guide
  synthigy guide > AGENTS.md

synthigy status

Show this instance and its saved connection, offline

synthigy status [flags]

Examples:

  synthigy status
  synthigy status --json
  synthigy --env .synthigy/customer2.env status

Flags:

      --json   print one JSON object on stdout

synthigy upgrade

Upgrade (or downgrade) the synthigy CLI binary

synthigy upgrade [flags]

Examples:

  synthigy upgrade
  synthigy upgrade --version vX.Y.Z   # pin an older CLI

Flags:

      --version string   CLI release tag to install (e.g. vX.Y.Z) (default "latest")

synthigy version

Print version information

synthigy version

Global flags

      --env string   Profile file to use instead of <instance-home>/.env (default: $SYNTHIGY_ENV_FILE)
  -v, --verbose      Verbose output

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close