--json flag. Agents should use it by default.
Top-Level Commands
glyph install
Installs the current glyph binary into a user-local bin directory and updates the user’s PATH configuration for future terminals.
| Platform | Default install directory |
|---|---|
| macOS, Linux | ~/.local/bin |
| Windows | %LOCALAPPDATA%\Glyph\bin |
glyph version
Prints version metadata embedded at build time.
dev, unknown, and unknown.
glyph init
Initializes a Glyph store in the current project.
.glyph/, initializes .glyph/store.db, prepares content, audit, workspace, export, and hook directories, and inserts the initial public and maintainers realms.
Do not run git init as part of Glyph bootstrap. Git is an export target; .glyph/store.db is the local source-control database.
glyph import <path>
Imports files from the project workspace into the source graph according to glyph.yaml.
.glyph/**, .git/**, dependency directories, and private transcript paths stay out of the public graph.
Use this when bootstrapping a project or when a direct filesystem edit needs to be brought back into Glyph.
glyph status
Shows store location, database location, store role, schema version, and object counts.
status so they know whether they are inside a Glyph workspace and can report the current store health.
glyph graph
Shows a compact source graph summary.
glyph viz export.
glyph auth login <server-url>
Stores a bearer token for a Glyph server.
.glyph/credentials/ with restrictive file permissions. They are local credentials and must not be exported to public Git projections.
glyph auth status
Lists server URLs with stored credentials.
glyph auth logout <server-url>
Removes a stored server token.
glyph check <realm>
Materializes a realm export and runs configured export checks.
glyph.yaml:
glyph check public fails before remote sync.
Work Commands
glyph work start <name>
Creates a new work context from a realm projection.
glyph work list
Lists all work contexts and their statuses.
| Status | Meaning |
|---|---|
active | Work projection is available for editing. |
published | Work was published to a realm. |
pruned | Work projection was removed; graph history remains. |
discarded | Reserved for future policy-controlled discard. |
glyph work status <name>
Shows one work context.
glyph work snapshot <name>
Creates a manual snapshot of a work context.
glyph work claim <name>
Claims a work context for an actor.
glyph work heartbeat <name>
Extends an active claim.
glyph work release <name>
Releases an active claim.
glyph work conflicts <name>
Detects conflicts between active work contexts.
glyph work depend <work> <depends-on>
Records a dependency between work contexts.
glyph work prune <name>
Removes a completed materialized work projection while retaining history.
.glyph/workspaces from accumulating stale projections.
glyph work discard <name>
Prototype placeholder for future policy-controlled discard.
File Commands
glyph read <work> <path>
Reads a file from a work context.
| Field | Meaning |
|---|---|
work | Work context name. |
path | File path within the work context. |
encoding | utf-8 or base64. |
content | File content. |
glyph read when a file is part of the source-control task. Direct filesystem reads are still useful for broad search and tool compatibility.
glyph write <work> <path>
Writes stdin to a file in a work context.
--reason. Reasons become provenance for audit logs and visualization.
glyph project <work> <dir>
Materializes a work context into another directory.
.glyph/workspaces.
glyph diff <work>
Shows file-level changes for a work context.
Snapshot And Publication Commands
glyph checkpoint <work>
Creates a named milestone snapshot.
glyph publish <work>
Publishes a work context into a realm.
| Mode | Use when |
|---|---|
squash | The destination realm should receive one coherent final state. |
preserve | The intermediate sequence is important and should remain visible. |
glyph publication list
Lists publication records.
glyph publication inspect <id>
Prototype placeholder for detailed publication metadata.
Hook Commands
glyph hook list
Lists installed local hooks.
.glyph/hooks/ in prototype 0.
glyph hook run <event>
Runs a local hook event.
| Event | Purpose |
|---|---|
pre-publish | Validate before publication; failures block publish. |
post-publish | Run follow-up automation; failures are recorded. |
Documentation And Skill Commands
glyph docs list
Lists documentation embedded in the binary.
glyph docs show <id>
Shows one embedded documentation page.
glyph skills list
Lists bundled agent skills.
glyph skills show <name>
Shows one bundled skill.
Git And Remote Commands
glyph export git
Exports a realm to a clean Git repository.
git on PATH. Glyph checks that dependency before doing export work.
glyph remote add <name> <spec>
Adds a remote.
| Mode | Meaning |
|---|---|
export-only | Glyph pushes the public projection to an external Git remote. |
glyph-sync | Glyph syncs full graph records and content blobs with a Glyph server. |
glyph remote list
Lists configured remotes.
glyph remote inspect <name>
Shows one remote.
glyph remote sync <name>
Runs public export checks, exports public to a clean Git repository, attaches remote history, and pushes.
glyph-sync remotes, remote sync uses the native Glyph server protocol instead of Git. It uploads missing content blobs, pushes graph records with a base cursor, pulls newer server records, and imports them into the local store.
Use --skip-checks only for emergencies:
--check to run one or more named pre-sync checks: