ankra canvas
Publish an HTML, SVG or Markdown file as a static page on the Ankra pages host, list the pages your organisation has published, and unpublish them.--ttl-hours) and can be unpublished at any time.
The saved canvases behind the portal’s canvas pages are a separate library:
‘library’ lists them, ‘get’, ‘create’, ‘update’ and ‘delete’ work on one, and
‘revisions’ and ‘comments’ read its history and its comment threads.
ankra canvas comments
Read and answer the comment threads on a saved canvasankra canvas comments add
Add a comment to a canvas.--reply-to answers another comment, and --element
or --revision anchor the comment to one element or one revision.
ankra canvas comments list
List a canvas’s comment threads: the open ones, and the resolved ones too with--include-resolved.
ankra canvas comments reopen
Reopen a resolved comment threadankra canvas comments resolve
Mark a comment thread resolvedankra canvas create
Save an HTML, SVG, Markdown or JSON file as a new canvas. The canvas is private to you until you share it with ‘ankra canvas update <canvas-id>--visibility
organisation’; publishing it at a public URL is ‘ankra canvas publish’.
The language is inferred from the file extension (.html and .htm, .svg, .md,
.json) and can be set with --language. A json canvas is a dashboard
specification, which the platform validates and never repairs. A file over
524288 bytes is refused.
ankra canvas delete
Delete a canvas from the library; its revisions are purged with it. Only the owner can delete a canvas. The command asks first;--yes skips the question
and declining exits 4.
ankra canvas get
Show a saved canvas and its draft revision.--content prints only the draft’s
content, so it can be written to a file; -o json prints the whole document.
ankra canvas library
List the canvases in the organisation’s library that you can see: your own and every canvas shared with the organisation, most recently updated first. These are the saved canvases themselves. ‘ankra canvas list’ lists the pages published at a public URL.ankra canvas list
List the canvas pages your organisation has publishedankra canvas publish
Publish an HTML, SVG or Markdown file and print its public URL. The language is inferred from the file extension (.html and .htm, .svg, .md) and can be set with--language. Other languages are refused, as is a file over
200000 characters.
Publishing the same file again updates the same page and keeps its URL: when
--conversation-id and --artifact-id are not given, both are derived from a hash
of the file’s absolute path, so the page is identified by where the file lives.
Moving or renaming the file publishes a new page. Pass both ids to take control
of the identity yourself, for example to update a page published from the portal
canvas.
The URL is printed last, on its own line, so scripts can take the final line of
output; with -o json the publication is printed as a JSON document instead.
ankra canvas revisions
Read the revisions of a saved canvasankra canvas revisions get
Show one revision of a canvas.--content prints only the revision’s content,
so an earlier version can be written to a file.
ankra canvas revisions list
List a canvas’s revisions, newest firstankra canvas unpublish
Unpublish a page by its id (shown by ‘ankra canvas list’). Its URL stops serving the page immediately.ankra canvas update
Change a canvas’s title, its visibility, or both.--visibility private keeps
the canvas to its owner; organisation lets every member read it. Only the
owner can change a canvas.