| Ocalt Query Language
Pricing Dashboard ocalt.com v1.0

ENV & STAT

ENV reads server-side environment variables. STAT returns file metadata. Both are live verbs — they read from the runtime environment at execution time.

ENV

Read a non-sensitive environment variable by name. Variables with prefixes SECRET_, KEY_, PASSWORD_, TOKEN_, API_KEY_, or PRIVATE_ are blocked.

ENV "PATH" SET ?path AFTER EMIT ?path
Try it ›
ENV returns the server process environment. Values like HOME and PWD reflect the runtime process, not a user home directory.

STAT

Returns a metadata object for any path in /root/.

FieldTypeDescription
nametextFilename
sizenumberSize in bytes
modifiednumberUnix timestamp of last modification
is_dirbooleanTrue if path is a directory
WRITE "hello world" INTO "/root/stat_test.txt" AFTER STAT "/root/stat_test.txt" SET ?meta AFTER EMIT ?meta
Try it ›
STAT "/root/stat_test.txt" SET ?meta AFTER EMIT "Name: " & ?meta(name) & ", Size: " & ?meta(size) & " bytes, Dir: " & ?meta(is_dir)