Download the PHP package zero-to-prod/spapi-lwa-cli without Composer
On this page you can find all versions of the php package zero-to-prod/spapi-lwa-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zero-to-prod/spapi-lwa-cli
More information about zero-to-prod/spapi-lwa-cli
Files in zero-to-prod/spapi-lwa-cli
Package spapi-lwa-cli
Short Description A CLI for connecting to Amazons Selling Partner API with Login With Amazon (LWA).
License MIT
Homepage https://github.com/zero-to-prod/spapi-lwa-cli
Informations about the package spapi-lwa-cli
Zerotoprod\SpapiLwaCli
Contents
- Introduction
- Requirements
- Installation
- Documentation Publishing
- Automatic Documentation Publishing
- Usage
- Available Commands
spapi-lwa-cli:refresh-tokenspapi-lwa-cli:client-credentialsspapi-lwa-cli:src
- Docker Image
- Local Development
- Image Development
- Contributing
Introduction
A CLI for connecting to Amazons Selling Partner API with Login With Amazon (LWA).
Requirements
- PHP 8.1 or higher.
Installation
Install Zerotoprod\SpapiLwaCli via Composer:
This will add the package to your project's dependencies and create an autoloader entry for it.
Documentation Publishing
You can publish this README to your local documentation directory.
This can be useful for providing documentation for AI agents.
This can be done using the included script:
Automatic Documentation Publishing
You can automatically publish documentation by adding the following to your composer.json:
Usage
Run this command to see the available commands:
Available Commands
spapi-lwa-cli:refresh-token
Description: Login With Amazon with a refresh_token.
Usage:
Arguments:
refresh_token(required): The LWA refresh tokenclient_id(required): Get this value when you register your applicationclient_secret(required): Get this value when you register your application
Options:
--user_agent[=USER_AGENT]: User Agent--response: Returns the full response--refresh_token: Returns the refresh_token--token_type: Returns the token_type--expires_in: Returns expires_in
Examples:
Sample Output (access token):
Sample Output (full response with --response):
spapi-lwa-cli:client-credentials
Description: Login With Amazon with client credentials.
Usage:
Arguments:
scope(required): The scope of the LWA authorization grantclient_id(required): Get this value when you register your applicationclient_secret(required): Get this value when you register your application
Options:
--user_agent[=USER_AGENT]: User Agent--response: Returns the full response--scope: Returns the scope--token_type: Returns the token_type--expires_in: Returns expires_in
Examples:
Sample Output (access token):
Sample Output (full response with --response):
spapi-lwa-cli:src
Description: Project source link
Usage:
Arguments: None
Options: None
Example:
Sample Output:
Docker Image
You can also run the cli using the docker image:
Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page if you want to contribute.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Commit changes (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature-branch). - Create a new Pull Request.
All versions of spapi-lwa-cli with dependencies
ext-json Version *
symfony/console Version ^7.2
zero-to-prod/data-model Version ^81.9
zero-to-prod/spapi-lwa Version ^2.0
ext-curl Version *
zero-to-prod/package-helper Version ^1.1.3