KosmoKrator

data

NASA CLI for CI

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

6 functions 6 read 0 write API key auth

NASA CLI for CI

Run integration calls from CI jobs with JSON output, explicit credentials, and predictable exit status.

Use this shape when a pipeline needs to read or update an external service. The NASA CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# NASA CLI for CI
kosmokrator integrations:configure nasa --enable --read allow --write ask --json
kosmo integrations:call nasa.nasa_get_apod '{"date":"example_date","start_date":"example_start_date","end_date":"example_end_date"}' --json

Discovery Before Execution

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

kosmo integrations:docs nasa --json
kosmo integrations:docs nasa.nasa_get_apod --json
kosmo integrations:schema nasa.nasa_get_apod --json
kosmo integrations:search "NASA" --json
kosmo integrations:list --json

Useful NASA CLI Functions

FunctionTypeParametersDescription
nasa.nasa_get_apod Read date, start_date, end_date Get the NASA Astronomy Picture of the Day (APOD). Returns the daily astronomical image or photo along with an explanation written by a professional astronomer. You can request a specific date or a range of dates.
nasa.nasa_get_asteroid Read id Get detailed information about a specific Near Earth Object (asteroid) by its NASA ID. Returns orbital data, estimated diameter, close approach history, and hazard assessment.
nasa.nasa_get_asteroids Read start_date, end_date Get Near Earth Objects (asteroids) for a date range from NASA. Returns a list of asteroids with their estimated diameter, velocity, distance from Earth, and whether they are potentially hazardous.
nasa.nasa_get_current_user Read none Get information about the current NASA API configuration. The NASA API is public and does not require user authentication — this tool returns the API key status and available endpoints.
nasa.nasa_get_mars_rover_photos Read rover, sol, earth_date, camera, page Get photos from NASA Mars rovers (Curiosity, Opportunity, Spirit, Perseverance). Query by sol (Martian day) or Earth date, and optionally filter by camera. Returns photo URLs and metadata.
nasa.nasa_search_images Read q, media_type, page Search the NASA Image and Video Library for space, astronomy, and mission imagery. Returns image URLs, titles, descriptions, and metadata from NASA's vast collection.

Automation Notes

Related NASA CLI Pages