Artifact tools

Command Code publishes and manages artifacts with two tools. You don't call them yourself: you ask, and Command Code picks the tool. This page is for when you want to know exactly what it can do.

Both run through Command Code's own servers, like the web tools, so they work with every model. They load only when a session needs them. artifact_manage with list runs without asking; everything else asks first in the default permission mode.

Publishes an HTML file from your project as a new artifact, or as a new version of one you already have.

ParameterTypeRequiredDescription
file_pathstringyesAbsolute path of the HTML file, inside the workspace. Up to 2 MB.
titlestringfor a new artifactTitle shown above the page. On a new version, renames it.
artifact_idstringnoPublish a new version of this one. Same link.
visibilitystringnoprivate (the default) or public.

A new title or visibility goes out together with the new version. If the publish fails, nothing changes: the old version stays up, shared or not, exactly as it was.

The result has the link, the artifact_id, whether it is private or public, and when it will be deleted.

Everything else about your artifacts.

ParameterTypeRequiredDescription
actionstringyeslist, visibility or delete.
artifact_idstringfor visibility and deleteThe artifact to act on.
visibilitystringfor visibilityprivate or public.
ActionDoes
listYour artifacts, newest first, with each one's link and deletion date.
visibilitypublic lets anyone with the link open it. private takes that back.
deleteDeletes it and every version. The link stops working.

What you seeWhy
The file is too bigPages are capped at 2 MB. Move big data or images to outside URLs.
Too many artifact publishes20 publishes a minute. Wait a minute.
Usage exceededYou have 200 artifacts, or this one has 50 versions. Delete some first.
Not foundIt was deleted, or it expired 7 days after its last publish.