Pexels CLI
Pexels CLI is a command-line interface for interacting with the Pexels API. It allows you to search for photos, videos, and collections, as well as retrieve individual media items by their ID.
Installation
-
Clone the repository:
-
Navigate to the project directory:
-
Build the project:
Usage
Before using the CLI, make sure to set your Pexels API key in a .env
file:
PEXELS_API_KEY=your_api_key_here
Commands
-
Search Photos:
-
Search Videos:
-
Get Photo by ID:
-
Get Video by ID:
-
Search Collections:
-
Search Media:
Documentation
For detailed documentation, please refer to Documentation.
License
Licensed under either of
- Apache License, Version 2.0, LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0
- MIT license LICENSE-MIT or http://opensource.org/licenses/MIT
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 or MIT license, shall be dual licensed as above, without any additional terms or conditions.