The APOD CLI is a command-line interface that allows you to fetch and view Astronomy Picture of the Day (APOD) data from NASA's API.
- Fetch APOD data for a specified date range
- Show APOD title, date, and URL in the terminal
- Optional command-line flags to specify the date range
Download the executable from releases
brew tap marcusziade/apod-cli
brew install apod-cli
- Make sure you have Go installed on your computer.
- Clone this repository to your local machine.
- Generate an API key from api.nasa.gov.
- Create a "Keys.json" file in the project directory and add your API key to it in the following format:
{
"APIKey": "your_api_key_here"
}
- Run go build in the project directory to build the binary.
- Optionally, you can move the built binary to a directory in your system PATH to make it available globally.
$ apod-cli
This will fetch APOD data for the last week and display it in the terminal.
$ apod-cli -start=2019-04-20 -end=2019-06-09
This will fetch APOD data for the specified date range (inclusive) and display it in the terminal.
If you find any issues or have a feature request, feel free to create an issue on the GitHub repository. Pull requests are also welcome!
This project is licensed under the MIT License. See the LICENSE file for details.