Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@ceramicnetwork/ceramic-cli
Advanced tools
A command line interface that allows you to interact with the Ceramic protocol.
To install the ceramic cli globally you can run:
$ npm install -g ceramic-cli
To get an overview of the available commands run:
$ ceramic -h
To start an instance of the Ceramic daemon, make sure you have ipfs running locally and execute:
$ ceramic daemon
ceramic pin add <docId>
Pin a given document.
ceramic pin rm <docId>
Unpin a given document.
ceramic pin ls
List pinned documents.
ceramic user did
Show the DID of the user.
ceramic user sign <payload>
Ask the user to sign a given payload.
ceramic user encrypt <payload>
Ask the user to encrypt a given payload.
ceramic user decrypt <JWE | CWE>
Ask the user to decrypt a given JWE or CWE.
The Ceramic daemon creates an http endpoint from which various operations can be performed.
/api/v0/create
- POST
Create a new Ceramic document.
Only content
is required.
{
content: <content-json>,
doctype: <string>, // defaults to "tile"
owners: <owners-string-array> // defaults to current user
}
/api/v0/show/<document-id>
- GET
Returns the content of the given document.
?version=<CID>
- the version of the document to show (CID of the anchor record)?v=<CID>
- the version of the document to show (CID of the anchor record)/api/v0/state/<document-id>
- GET
Returns the full state of the given document.
?version=<CID>
- the version of the document to show (CID of the anchor record)?v=<CID>
- the version of the document to show (CID of the anchor record)/api/v0/change/<document-id>
- POST
Change the content of a given document.
{
content: <content-json>,
owners: <owners-string-array>
}
/api/v0/add-record/<document-id>
- POST
Change the content of a given document by adding a signed record directly. This is useful if the wallet exists not on the ceramic node, but on the client side.
{
record: <signed-record-data>
}
/api/v0/pin/add/<document-id>
- GET
Add the given document to the pin set.
/api/v0/pin/rm/<document-id>
- GET
Remove the given document from the pin set.
/api/v0/pin/ls/
- GET
Returns the list of document ids that are currently pinned.
We are happy to accept small and large contributions. Make sure to check out the Ceramic specifications for details of how the protocol works.
FAQs
Typescript implementation of the Ceramic CLI
The npm package @ceramicnetwork/ceramic-cli receives a total of 5 weekly downloads. As such, @ceramicnetwork/ceramic-cli popularity was classified as not popular.
We found that @ceramicnetwork/ceramic-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.