KosmoKrator

data

Neon CLI for Headless Automation

Use the Neon CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 6 read 1 write Bearer token auth

Neon CLI for Headless Automation

Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.

Use headless automation when another tool needs a stable local command surface. The Neon CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Neon CLI for Headless Automation
kosmokrator integrations:configure neon --set access_token="$NEON_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call neon.neon_list_projects '{}' --json

Discovery Before Execution

Agents and scripts can inspect Neon docs and schemas before choosing a function.

kosmo integrations:docs neon --json
kosmo integrations:docs neon.neon_list_projects --json
kosmo integrations:schema neon.neon_list_projects --json
kosmo integrations:search "Neon" --json
kosmo integrations:list --json

Useful Neon CLI Functions

FunctionTypeParametersDescription
neon.neon_list_projects Read none List all Neon projects in the organization. Returns project IDs, names, region, and status.
neon.neon_get_project Read project_id Get details for a specific Neon project by ID. Returns full project information including connection strings, branches, and settings.
neon.neon_create_project Write name, region_id, pg_version, branch_name, database_name Create a new Neon project. Requires a name. Optionally specify a region and Postgres version.
neon.neon_list_branches Read project_id List all branches in a Neon project. Returns branch IDs, names, status, and parent branch info.
neon.neon_get_branch Read project_id, branch_id Get details for a specific branch in a Neon project. Returns branch configuration, endpoints, and state.
neon.neon_list_databases Read project_id, branch_id List all databases in a Neon project branch. Returns database names, owners, and sizes.
neon.neon_get_current_user Read none Get information about the current authenticated Neon user, including email, name, and organization membership.

Automation Notes

Related Neon CLI Pages