npm install -g @glazed/cliglaze COMMANDglaze config:get KEYglaze config:reset KEYglaze config:set KEY VALUEglaze config:showglaze did:createglaze did:get MODEL ALIASglaze did:inspectglaze did:merge MODEL ALIAS CONTENTSglaze did:set MODEL ALIAS CONTENTSglaze did:sign CONTENTSglaze did:verify JWSglaze help [COMMAND]glaze model:add NAME TYPE ALIAS STREAMglaze model:create NAMEglaze model:delete NAMEglaze model:deploy NAME [OUTPUT]glaze model:export NAME [OUTPUT]glaze model:import LOCALNAME IMPORTNAMEglaze model:inspect NAMEglaze model:listglaze pin:add STREAMIDglaze pin:ls [STREAMID]glaze pin:rm STREAMIDglaze stream:commits STREAMIDglaze stream:state STREAMIDglaze tile:create CONTENTglaze tile:deterministic METADATAglaze tile:content STREAMIDglaze tile:update STREAMID CONTENTglaze tile:show STREAMID
get a config value
USAGE
$ glaze config:get KEY
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
reset a config value
USAGE
$ glaze config:reset KEY
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
set a config value
USAGE
$ glaze config:set KEY VALUE
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
show the full config
USAGE
$ glaze config:show
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
create a new DID
USAGE
$ glaze did:create
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
get the contents of a record in a DID DataStore
USAGE
$ glaze did:get MODEL ALIAS
ARGUMENTS
MODEL Model name or path to JSON file
ALIAS Definition alias
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
-k, --key=key DID Private Key
--did=did DID
inspect the contents of a DID DataStore
USAGE
$ glaze did:inspect
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
-k, --key=key DID Private Key
--did=did DID
merge the contents of a record in a DID DataStore
USAGE
$ glaze did:merge MODEL ALIAS CONTENTS
ARGUMENTS
MODEL Model name or path to JSON file
ALIAS Definition alias
CONTENTS String-encoded JSON data
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
-k, --key=key DID Private Key
set the contents of a record in a DID DataStore
USAGE
$ glaze did:set MODEL ALIAS CONTENTS
ARGUMENTS
MODEL Model name or path to JSON file
ALIAS Definition alias
CONTENTS String-encoded JSON data
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
-k, --key=key DID Private Key
create a JSON Web Signature
USAGE
$ glaze did:sign CONTENTS
ARGUMENTS
CONTENTS String-encoded JSON data
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
-k, --key=key DID Private Key
verify a JSON Web Signature
USAGE
$ glaze did:verify JWS
ARGUMENTS
JWS JSON Web Signature
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
-k, --key=key DID Private Key
display help for glaze
USAGE
$ glaze help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
add a stream to a model
USAGE
$ glaze model:add NAME TYPE ALIAS STREAM
ARGUMENTS
NAME
TYPE (schema|definition|tile)
ALIAS
STREAM Stream reference or string-encoded JSON content
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
--schema=schema tile schema
create a local model
USAGE
$ glaze model:create NAME
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
delete a local model
USAGE
$ glaze model:delete NAME
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
-f, --force bypass confirmation prompt
deploy a model
USAGE
$ glaze model:deploy NAME [OUTPUT]
ARGUMENTS
NAME local model name or package
OUTPUT JSON file to output the deployed model aliases
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
export a model
USAGE
$ glaze model:export NAME [OUTPUT]
ARGUMENTS
NAME local model name or package
OUTPUT JSON file to output the model to
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
import a model into another one
USAGE
$ glaze model:import LOCALNAME IMPORTNAME
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
inspect a model
USAGE
$ glaze model:inspect NAME
ARGUMENTS
NAME local model name or package
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
list local models
USAGE
$ glaze model:list
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
pin a stream
USAGE
$ glaze pin:add STREAMID
ARGUMENTS
STREAMID ID of stream to be pinned
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
list pinned streams
USAGE
$ glaze pin:ls [STREAMID]
ARGUMENTS
STREAMID optional stream ID filter
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
unpin a stream
USAGE
$ glaze pin:rm STREAMID
ARGUMENTS
STREAMID ID of stream to be unpinned
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
list commits contained within a stream
USAGE
$ glaze stream:commits STREAMID
ARGUMENTS
STREAMID ID of the stream
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
-s, --sync Controls if the current stream state should be synced over the network or not. 'prefer-cache' will return the state from the node's local cache if present, and will sync from the network if the stream isn't in the cache. 'always-sync' always syncs from the network, even if there is cached state for the stream. 'never-sync' never syncs from the network.
get the state of a Stream
USAGE
$ glaze stream:state STREAMID
ARGUMENTS
STREAMID ID of the Stream
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
-s, --sync Controls if the current stream state should be synced over the network or not. 'prefer-cache' will return the state from the node's local cache if present, and will sync from the network if the stream isn't in the cache. 'always-sync' always syncs from the network, even if there is cached state for the stream. 'never-sync' never syncs from the network.
create a new Tile stream
USAGE
$ glaze tile:create
OPTIONS
-b, --content=content stream contents (JSON encoded as string)
-c, --ceramic=ceramic Ceramic API URL
-k, --key=key DID Private Key
-m, --metadata=metadata stream metadata
load a deterministic Tile stream, or create it if it doesn't already exist
USAGE
$ glaze tile:deterministic METADATA
ARGUMENTS
METADATA stream metadata
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
-k, --key=key DID Private Key
-s, --sync Controls if the current stream state should be synced over the network or not. 'prefer-cache' will return the state from the node's local cache if present, and will sync from the network if the stream isn't in the cache. 'always-sync' always syncs from the network, even if there is cached state for the stream. 'never-sync' never syncs from the network.
show the contents of a Tile stream
USAGE
$ glaze tile:content STREAMID
ARGUMENTS
STREAMID ID of the stream
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
-s, --sync Controls if the current stream state should be synced over the network or not. 'prefer-cache' will return the state from the node's local cache if present, and will sync from the network if the stream isn't in the cache. 'always-sync' always syncs from the network, even if there is cached state for the stream. 'never-sync' never syncs from the network.
Update a stream
USAGE
$ glaze tile:update STREAMID
ARGUMENTS
STREAMID ID of the stream
OPTIONS
-b, --content=content new contents for the stream
-c, --ceramic=ceramic Ceramic API URL
-k, --key=key DID Private Key
-m, --metadata=metadata Optional metadata for the stream
show the contents of a Tile stream
USAGE
$ glaze tile:show STREAMID
ARGUMENTS
STREAMID ID of the stream
OPTIONS
-c, --ceramic=ceramic Ceramic API URL
-s, --sync Controls if the current stream state should be synced over the network or not. 'prefer-cache' will return the state from the node's local cache if present, and will sync from the network if the stream isn't in the cache. 'always-sync' always syncs from the network, even if there is cached state for the stream. 'never-sync' never syncs from the network.
Apache-2.0 OR MIT