Skip to main content

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.
Anyone holding the URL can open the page, so publish nothing you would not hand to that audience. Pages are static snapshots, expire after a retention period (--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 canvas

ankra 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.
Examples
Flags

ankra canvas comments list

List a canvas’s comment threads: the open ones, and the resolved ones too with --include-resolved.
Flags

ankra canvas comments reopen

Reopen a resolved comment thread
Flags

ankra canvas comments resolve

Mark a comment thread resolved
Flags

ankra 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.
Examples
Flags

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.
Flags

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.
Examples
Flags

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.
Examples
Flags

ankra canvas list

List the canvas pages your organisation has published
Flags

ankra 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.
Examples
Flags

ankra canvas revisions

Read the revisions of a saved canvas

ankra 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.
Flags

ankra canvas revisions list

List a canvas’s revisions, newest first
Flags

ankra canvas unpublish

Unpublish a page by its id (shown by ‘ankra canvas list’). Its URL stops serving the page immediately.
Flags

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.
Examples
Flags