Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ebay-cli

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ebay-cli

A CLI interface to the Ebay API

  • 0.1.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by400%
Maintainers
0
Weekly downloads
 
Created
Source

ebay-cli

Interact with the eBay API from the command line. This tool provides a simple interface to access eBay's selling APIs, with a focus on transaction management.

Installation

Install globally via npm:

npm install -g ebay-cli

Or use with Docker:

docker run -it --rm thegeektechworkshop/ebay-cli:latest

Prerequisites

Before using this tool, you'll need:

  1. An eBay developer account
  2. API credentials from the eBay developer portal:
    • Client ID
    • Certificate ID
    • Redirect URL name (RuName)

Authentication

First-time setup requires authentication with eBay:

ebay authorise <clientId> <certificateId> <redirectUrlName>

The authentication process will:

  1. Generate an authorization URL
  2. Open your browser for eBay login
  3. Ask you to paste the redirect URL back into the terminal
  4. Securely store your credentials locally

Commands

View Configuration

Display the location of your config file:

ebay config
# or
ebay c

Transactions

View your eBay transaction history:

ebay transactions [options]
# or
ebay tx [options]

Available options:

  • -f, --date-from <string> - Start date for transaction history (ISO format)
  • -t, --date-to <string> - End date for transaction history (ISO format)
  • -y, --type <string> - Filter by transaction type
  • -o, --offset <number> - Pagination offset
  • -l, --limit <number> - Number of results to return
  • -r, --raw - Output raw JSON response
  • -i, --ids - Include transaction IDs in output

Docker Usage

When using the Docker image, you'll need to mount a volume to persist your authentication:

docker run -v ~/.config/configstore:/root/.config/configstore thegeektechworkshop/ebay-cli:latest

Development

This project uses:

  • Node.js
  • Commander.js for CLI interface
  • eBay API client for Node.js
  • Docker for containerization

License

MIT License - Copyright (c) 2024 Andy Todd

See LICENSE file for details.

FAQs

Package last updated on 09 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc