synheart auth
Sign in, sign out and inspect credentials
Manage how the CLI authenticates to Synheart. login, logout and whoami are
also available at the top level (synheart login), because you will use them
most; status and refresh are for troubleshooting sign-in.
Usage
synheart auth refresh: Refresh your token to pick up plan changessynheart auth status: Show where credentials are stored and if they load
synheart auth refresh
Refresh your token to pick up plan changes
Exchanges your stored refresh token for a new access token, even if the
current one is still valid. Prints the organization and plan from the new
token. Rarely needed: whoami, usage and the TUI refresh your plan claims
automatically when they are older than 5 minutes, so an upgrade shows up
without signing out and in again. Needs: you are signed in and network
access. With —json it prints the result as an object.
Usage
--json (or --format json) to print a machine-readable body.
synheart auth status
Show where credentials are stored and if they load
Reports whether the CLI can load your credentials and from where (file or
keyring), when they expire, and whether a refresh token is present. Use it to
debug “not signed in” problems. Reads local state only; no network call. Exits
1 when no usable credentials are found. With —json it prints the same fields
as an object.
Usage
--json (or --format json) to print a machine-readable body.
synheart login
Sign in to your Synheart account
Signs you in with the OAuth 2.0 device flow. The CLI prints a URL and a
code, opens your browser (unless you pass —no-browser), and waits while you
approve it. Tokens are stored in your system keychain, or in
~/.synheart/credentials.enc when no keychain is available.
For CI and agents, which cannot use a browser, set SYNHEART_CI_TOKEN (or pass
—ci-token) to store a long-lived token from the dashboard instead. Prefer the
environment variable: a flag is visible in process listings and shell history.
With —json the CI-token sign-in prints “logged_in”, “method”, “storage” and
“credentials_path” as an object.
Needs network access. synheart auth login does the same; synheart ui has
a sign-in screen too.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart logout
Sign out and remove stored credentials
Removes the credentials stored on this machine. Add —revoke to also revoke
the tokens on the server, which is the right choice on a shared or lost
device. Says “Not signed in” and does nothing when you are already signed out.
Needs network access only with —revoke. With —json it prints “logged_out”,
“was_logged_in” and “revoke_requested” as an object.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart usage
Show plan usage, limits and Syni meters
Shows the current billing period for your organization: plan, cost,
limits on projects, apps and seats, Syni entitlements, and Syni cloud chat
meters. Use it to see how close you are to a limit. Your plan claims are
refreshed automatically first when they are older than 5 minutes, so a recent
upgrade shows up.
Needs: you are signed in and network access. The organization comes from your
sign-in; override it with —org or SYNHEART_ORG_ID. With —json it prints the
report as an object.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart whoami
Show the account you are signed in as
Prints the signed-in account: ID, email, name, organization, plan and the
runtime variants your plan includes. Use it to confirm which account the CLI
will act as. If your sign-in is older than 5 minutes it is refreshed first, so
a recent plan change shows up. Needs you to be signed in; exits 1 with
SH-AUTH-001 otherwise. With —json it prints the account as an object with
“logged_in” and “claims_refreshed”.
Usage
--json (or --format json) to print a machine-readable body.
synheart api-key
List and manage API keys
Work with the API keys in your organization. Each subcommand calls the
Synheart platform API, so you must be signed in.
synheart api-key list prints a table (JSON with —json); the other subcommands
print the result as JSON. Use synheart api-key revoke to turn a key off and
synheart api-key delete to remove it. To browse keys interactively, open
synheart ui.
Usage
synheart api-key delete: Delete an API keysynheart api-key list: List your API keyssynheart api-key revoke: Revoke an API keysynheart api-key show: Show one API key
synheart api-key delete
Delete an API key
Deletes the API key with the given ID through the platform API. It does not
ask for confirmation, so check the ID first with synheart api-key show. Needs
you to be signed in and network access. Prints the result as JSON.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart api-key list
List your API keys
Lists the API keys in your organization as a table. Needs you to be signed in
and network access. With —json it prints the result as JSON.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart api-key revoke
Revoke an API key
Revokes the API key with the given ID so it stops working. It does not ask
for confirmation. Use it when a key may have leaked. Needs you to be signed in
and network access. Prints the result as JSON.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart api-key show
Show one API key
Prints the details of the API key with the given ID. Needs you to be
signed in and network access. Prints the result as JSON.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart hsm
Keep an app’s HSM Schema in code and publish it
Manages an app’s HSM Schema: the inputs and outputs its on-device Human
State Model is built from. Keep the schema in your repository as
hsm-schema.yaml, check it, and publish it from your machine or CI.
The first publish from the CLI moves the app’s schema to code: the Platform
shows it read-only, with the commit and CI run behind each version. An
organization admin can move it back to the Platform from the app’s HSM Schema
tab.
The app comes from —app, SYNHEART_APP_ID or platform.app in
.synheart/config.yaml. The file is hsm-schema.yaml at the project root (the
directory holding .synheart/), else in the current directory; —file
overrides it.
In CI, set SYNHEART_CI_KEY to a CI key created on the Platform (the app’s API
Keys page, or Create CI key on its HSM Schema tab) instead of signing in. The
key acts for its own app, so —app, —org and —tenant can be left out.
Usage
Subcommands
synheart hsm catalog: List the outputs a schema can declaresynheart hsm diff: Show what hsm-schema.yaml changes from the live versionsynheart hsm init: Write the app’s HSM Schema to hsm-schema.yamlsynheart hsm publish: Publish hsm-schema.yaml as the app’s next versionsynheart hsm pull: Write the app’s live HSM Schema to hsm-schema.yamlsynheart hsm validate: Check hsm-schema.yaml against the catalog
synheart hsm catalog
List the outputs a schema can declare
Lists every output an HSM Schema can declare, whether the engine turns it
on by default, and how well it works on each OS without a wearable: full,
degraded or unavailable (—).
—phone-only keeps the outputs that work on a phone without a wearable.
—platform shows one OS, with and without a wearable. With —json it prints
the catalog as the Platform serves it. Needs: you are signed in and network
access.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart hsm diff
Show what hsm-schema.yaml changes from the live version
Compares hsm-schema.yaml with the app’s live version: outputs added,
removed or changed, inputs added or removed, and other settings that differ.
Adding outputs or inputs means people asked under the earlier version are
asked again on their device.
Needs: you are signed in and network access.
Usage
--json (or --format json) to print a machine-readable body.
synheart hsm init
Write the app’s HSM Schema to hsm-schema.yaml
Writes hsm-schema.yaml: the app’s live version when it has one, else the
starter schema the Platform would begin with for the app’s OS (the outputs
the engine turns on by default that work there without a wearable).
An existing file is left alone; —force replaces it and keeps a copy in
hsm-schema.yaml.bak. Without an app it writes the starter for every OS.
Needs: you are signed in and network access.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart hsm publish
Publish hsm-schema.yaml as the app’s next version
Validates hsm-schema.yaml and publishes it as the app’s next version; the
Platform signs it and apps pick it up on their next consent check. Nothing is
published when the file matches the live version. The version records the
commit, branch and CI run it came from.
The first publish of a schema someone edited on the Platform moves it to
code, and asks first; pass —take-over to do it without asking (in CI). It
fails if someone published in the meantime: pull, review, publish again.
—from-version publishes an earlier version again, as a rollback.
Needs: you are signed in, network access, and admin on the app’s project.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart hsm pull
Write the app’s live HSM Schema to hsm-schema.yaml
Writes the app’s live version, or —version N, to hsm-schema.yaml. When the
file holds something else it is kept as hsm-schema.yaml.bak first.
Needs: you are signed in and network access.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart hsm validate
Check hsm-schema.yaml against the catalog
Runs the Platform’s publish checks on hsm-schema.yaml without saving
anything: the inputs exist, each output has what it requires, and the outputs
work on the app’s OS. Exits non-zero when the schema has errors; warnings do
not fail it. Use it in CI before publish.
Needs: you are signed in and network access.
Usage
--json (or --format json) to print a machine-readable body.
synheart org
List and manage your organizations
Work with the organizations your account belongs to. Each subcommand calls
the Synheart platform API, so you must be signed in.
synheart org list prints a table (JSON with —json); the other subcommands print
the result as JSON. Pass —org or set SYNHEART_ORG_ID to act on a specific
organization. To browse them interactively, open synheart ui.
Usage
synheart org delete: Delete an organizationsynheart org list: List your organizationssynheart org show: Show one organization
synheart org delete
Delete an organization
Deletes the organization with the given ID through the platform API. It
does not ask for confirmation, so check the ID first with synheart org show.
Needs you to be signed in and network access. Prints the result as JSON.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart org list
List your organizations
Lists the organizations your account belongs to as a table. Needs you to be
signed in and network access. With —json it prints the result as JSON.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart org show
Show one organization
Prints the details of the organization with the given ID. Needs you to be
signed in and network access. Prints the result as JSON.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart project
List and manage your projects
Work with the projects in your organization. Each subcommand calls the
Synheart platform API, so you must be signed in.
synheart project list prints a table (JSON with —json); the other subcommands
print the result as JSON. Pass —org and —tenant (or set SYNHEART_ORG_ID and
SYNHEART_TENANT_ID) to choose the scope. To browse them interactively, open
synheart ui.
Usage
synheart project delete: Delete a projectsynheart project list: List your projectssynheart project show: Show one project
synheart project delete
Delete a project
Deletes the project with the given ID through the platform API. It does
not ask for confirmation, so check the ID first with synheart project show.
Needs you to be signed in and network access. Prints the result as JSON.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart project list
List your projects
Lists the projects for your tenant as a table. Needs you to be signed in and
network access. With —json it prints the result as JSON.
Usage
Examples
--json (or --format json) to print a machine-readable body.
synheart project show
Show one project
Prints the details of the project with the given ID. Needs you to be
signed in and network access. Prints the result as JSON.
Usage
Examples
--json (or --format json) to print a machine-readable body.