Contents
Create, delete and query Contents.
Last updated
Create, delete and query Contents.
Last updated
With the Graphlit CLI, you can create content from a file or web page, specified by URL. (The CLI infers if the URL points to a file or a web page, and calls the ingestUri
mutation appropriately.)
The CLI responds with the JSON from the GraphQL API response. The id
field is the unique identifier for the content that was created, and can be used to update or delete the entity later.
You can also create content from plain text, Markdown or HTML, by pressing <enter> when asked for the URI.
You will be asked for the content name, text type and text.
You can delete content with:
You can get the full JSON details of the content with:
You can query all the contents in your project with:
You can delete all the contents in your project with:
This will delete all the content in your project (or end-user tenant), so please use caution with this command.