synheart init
Set up this directory as a Synheart app project
Creates .synheart/config.yaml in the current directory (or —project-dir)
with every setting the CLI reads from it, commented out at its default: mock,
local, receiver, ui and platform. Uncomment a line to change that default for
everyone working on the app project; flags and environment variables still win.
It also detects the kind of app in the directory (ios, android, flutter, multi
or none), the same way synheart env does, and prints what to do next.
Running it again is safe: an existing config is left alone and reported, and
the command exits 0. —force rewrites it, keeping the old file as
config.yaml.bak (or config.yaml.bak.1, .2, … when that exists, so no backup
is ever overwritten). Run it inside your app’s folder, not your home
directory: ~/.synheart/config.yaml holds your personal settings, and init
refuses to touch it. Needs no login and no network, and never prompts. With
—json it prints created, path, project_type and the next steps as an object.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart install
Install SDK artifacts into your app project
Downloads Synheart SDK artifacts from the Artifact Registry into your
project’s synheart/vendor directory and records them in synheart.lock. Use it
to add the runtime or the Syni packages to an app, or to change runtime
variant.
Needs: you are signed in (synheart login), network access, and a project
directory (default: the current directory). For a guided install, open
synheart ui.
Products are syni and core; components are runtime and spec. A product installs
every component of it that your plan includes. A component installs across
every product that ships it. Two arguments, in either order, pin one package.
Files go to synheart/vendor/runtime/ for the core runtime and to
synheart/vendor/<package>/ for everything else. —platform limits a runtime to
its Android or iOS files; files for every platform (the Syni C header) always
come. Installing a package again removes the files its last install recorded
in synheart.lock that the new version no longer ships; nothing else in the
folder is touched.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart runtime
Manage the synheart-core-runtime library
Inspect, upgrade, or install the native synheart-core-runtime library in a
project. The runtime is what your app’s Synheart SDK loads at launch.
To fetch the runtime from the registry the first time, use
synheart install runtime. The subcommands here work on a runtime that is
already pinned in synheart.lock, or on a local build.
Usage
synheart runtime current: Show the runtime pinned in synheart.locksynheart runtime install: Install runtime artifacts from a local buildsynheart runtime upgrade: Fetch the latest runtime for your variant
synheart runtime current
Show the runtime pinned in synheart.lock
Prints the runtime package, variant and version recorded in the project’s
synheart.lock. It makes no network call, so it is a quick way to answer “what
am I on?”.
Needs a project directory containing synheart.lock (default: the current
directory). Exits 1 with SH-RT-NOLOCK when there is no lockfile yet. With
—json it prints the same fields as an object.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart runtime install
Install runtime artifacts from a local build
Copies pre-built synheart-core-runtime artifacts from a local build
directory into <project>/synheart/vendor/runtime/, in the same layout that
synheart install runtime produces from the registry. Use it to test a runtime
you built yourself. No login or network needed.
—from points at the build output, typically from make dist-core in the
synheart-core-runtime repository. Everything at the top level of that directory
is copied as is.
Usage
Examples
synheart runtime upgrade
Fetch the latest runtime for your variant
Reads the variant (edge, stable or lab) from synheart.lock and runs
synheart install runtime against the latest release of that variant. A
project on lab stays on lab; a project on edge stays on edge. With no
lockfile it installs without a variant, so the server picks one from your plan.
Needs: you are signed in and network access.
Usage
Examples
synheart sync
Reinstall exactly what synheart.lock pins
Reads synheart.lock in the project directory and installs the versions it
pins, so every machine and CI run gets the same artifacts. Use it after cloning
a project or pulling a lockfile change. It works with single-package and
multi-package lockfiles.
Needs: you are signed in, network access, and a synheart.lock (created by
synheart install).
Usage
Examples
--json (or --format json) to print a machine-readable body.