Documents¶
Four commands to manage IRIS source code documents: list, fetch, upload, delete. All of them print the raw Atelier REST JSON.
Document name conventions:
.cls— ObjectScript class (MyApp.Person.cls).mac/.int— routines.inc— include files.bpl/.dtl— business process / data transformation (Ensemble).hl7— HL7 schemas
list-docs¶
List source documents on the server.
Usage¶
Options¶
| Flag | Default | Description |
|---|---|---|
--namespace, -n |
IRIS_NAMESPACE setting |
Target namespace. |
--type, -t |
all types | Filter by document type: cls, mac, int, inc, … |
--generated |
off | Include generated documents (usually hidden). |
--filter, -f |
— | Filter by name prefix (e.g. MyApp). |
Examples¶
Response shape:
{
"status": {"errors": [], "summary": ""},
"result": {
"content": [
{
"name": "MyApp.Hello.cls",
"cat": "CLS",
"ts": "2026-04-18 18:07:18.850",
"upd": true,
"db": "USER",
"gen": false
}
]
}
}
get-doc¶
Fetch a single document's source.
Usage¶
Arguments¶
| Name | Type | Description |
|---|---|---|
NAME |
string | Document name (e.g. MyApp.Person.cls). |
Options¶
| Flag | Default | Description |
|---|---|---|
--namespace, -n |
IRIS_NAMESPACE setting |
Target namespace. |
Example¶
Response shape:
{
"status": {"errors": [], "summary": ""},
"result": {
"name": "MyApp.Hello.cls",
"db": "USER",
"ts": "2026-04-18 18:07:18.850",
"cat": "CLS",
"enc": false,
"content": [
"Class MyApp.Hello Extends %RegisteredObject",
"{",
"",
"ClassMethod Greet(name As %String = \"world\") As %String",
"{",
" Quit \"hello, \" _ name",
"}",
"",
"}"
]
}
}
Every element in result.content is one source line. Extract them
to a plain-text file:
If the document does not exist, Prism exits with code 1 and prints
Error: Document not found: MyApp.Hello.cls to stderr.
put-doc¶
Upload a local file to IRIS as a named document.
Usage¶
Arguments¶
| Name | Type | Description |
|---|---|---|
NAME |
string | Document name on the server (e.g. MyApp.Person.cls). |
FILE |
path | Local file whose contents will be uploaded. Must exist and be readable. |
Options¶
| Flag | Default | Description |
|---|---|---|
--namespace, -n |
IRIS_NAMESPACE setting |
Target namespace. |
Example¶
Remember that classes must be compiled before they're usable — follow
up with prism compile:
delete-doc¶
Delete a document from IRIS.
Usage¶
Arguments¶
| Name | Type | Description |
|---|---|---|
NAME |
string | Document name (e.g. MyApp.Person.cls). |
Options¶
| Flag | Default | Description |
|---|---|---|
--namespace, -n |
IRIS_NAMESPACE setting |
Target namespace. |
Example¶
Exits non-zero with Error: Document not found: ... if the document
doesn't exist.
Related¶
prism compile— compile after uploading classes.prism sql— query compiled classes via SQL.- MCP tools:
list_documents,get_document,put_document(workspace-backed),put_and_compile,delete_document. See MCP tools.