data
NASA CLI for Cron Jobs
Use the NASA CLI for cron jobs with headless JSON commands, schema discovery, credentials, and permission controls.
6 functions 6 read 0 write API key auth
NASA CLI for Cron Jobs
Schedule repeatable integration workflows from cron while keeping credentials in KosmoKrator config.
Use the headless CLI from cron when an operation should run without an interactive agent session. 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 Cron Jobs
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
| Function | Type | Parameters | Description |
|---|---|---|---|
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
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.