npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

eve-oauth-cli

v1.5.28

Published

A CLI tool for managing EVE Online OAuth2 tokens, including generation, refresh, and revocation through interactive prompts.

Readme

EVE OAuth2 Token Management CLI

⚠️ This package is currently in an experimental stage, and it likely still contains some bugs.

Efficiently manage your EVE Online OAuth2 tokens directly from the command line. Interactively handle token generation, refresh, and revocation through a series of prompts.

📋 Features

  • Interactive Prompts: Manage your OAuth2 tokens through easy-to-follow CLI prompts.
  • Token Generation: Securely generate new OAuth2 tokens for your EVE Online account.
  • Token Refresh: Seamlessly refresh your tokens to ensure continuous access without interruptions.
  • Token Revocation: Easily revoke tokens that are no longer needed or potentially compromised.
  • User-friendly Interface: Intuitive and straightforward, designed for both novice and experienced users.

🚀 Getting Started

  1. Installation:

    npm install eve-oauth-cli
  2. Usage: Start the interactive CLI prompt with:

    eve-oauth [-p password]
    • Option -p: If you do not specify a password, you will be asked to enter the password at the prompt.

⚙️ Configuration

  • Application Settings, (Client ID, Client Secret, Callback URL, Enabled Scopes): Obtain these from your EVE Online developer account.

    ❓ How to Create OAuth Token Data Initially

    • Run eve-oauth without the -p option.

    • On the top page, select Manage credentials.

    • On the next page, choose Select / New Credential.

    • Enter the details for the new EVE Application Credential.

    • Confirm your entries by selecting Yes or cancel by selecting No.

    • You will be prompted to enter a password. Enter your desired password.

      • You can also choose an empty password by pressing [Enter] without typing anything.
    • You are now ready to manage your OAuth tokens!

🚀 Run The CLI

Here's a quick overview of what the CLI prompts might look like:

Top Page

$ yarn start
[EVE OAuth2 CLI Tool]: Welcome to EVE OAuth2 CLI Tool
│
◆  📝 Please select a task:
│  ● ⚙️  Manage credentials (Manage EVE App credentials.)
│  ○ 🔒 Manage tokens
│  ○ 🔀 Clear prompt
│  ○ 🔙 Quit prompt
└

Manage Credentials

[EVE OAuth2 CLI Tool]: Welcome to EVE OAuth2 CLI Tool
│
◇  📝 Please select a task:
│  ⚙️  Manage credentials
│
◆  ❓ What would you like to do with EVE App credentials?
│  ● 🏷️  Select / New Credential
│  ○ ℹ️  View Credential by selection
│  ○ 🖌️  Edit Credential by selection
│  ○ ❌ Remove Credential by selection

Select / New Credential

[EVE OAuth2 CLI Tool]: Welcome to EVE OAuth2 CLI Tool
│
◇  📝 Please select a task:
│  ⚙️  Manage credentials
│
◇  ❓ What would you like to do with EVE App credentials?
│  🏷️  Select / New Credential
│
◆  Which EVE App credential would you like to select?
│  ○ 🖌️  Register new App credential
│  ● 🔒  "eve-oauth-prompt", characters: 3
│  ○ 🔒  "eve-oauth-webApp", characters: 5
│  ○ 🔒  "## Keyset for general purpose use ##", characters: 2
└

Here, we selected "eve-oauth-prompt".

[EVE OAuth2 CLI Tool]: ℹ️  Selected App Credential Name: eve-oauth-prompt ✅ storage
│
◆  📝 Please select a task:
│  ● ⚙️  Manage credentials (Manage EVE App credentials.)
│  ○ 🔒 Manage tokens
│  ○ 🔀 Clear prompt
│  ○ 🔙 Quit prompt
└

✍️ Obtain Access Token API

getAccessToken

The getAccessToken function retrieves and refreshes the access token for a specified character in the EVE Online OAuth system.
This function is particularly useful for ensuring that your application always has a valid access token for making authenticated requests to the EVE Online API.

Parameters

  • credentialNickname (string): The nickname of the credential set to use.
  • charNameOrId (string): The name or ID of the character for which to retrieve the access token.
  • pass (string, optional): The password for decrypting the stored credentials.

Throws

  • Error: If the credentialNickname is invalid or if the character record does not exist.

Example

import { getAccessToken } from "eve-oauth-cli/get-token.mjs";

(async () => {
  try {
    // Force refresh the access token
    const token = await getAccessToken(
      "eve-oauth-prompt",
      "tonny andre",
      "1234", // stored credentials password
    );
    console.log("Access Token:", token);
  } catch (error) {
    console.error("Error retrieving access token:", error);
  }
})();

This example demonstrates how to import the getAccessToken function and use it to retrieve and refresh an access token for a specific character.
The function will throw an error if the provided credentialNickname is invalid or if the character record does not exist.

🔗 EVE Reference Links

❓ Contributing

We welcome contributions! If you have suggestions or improvements, feel free to submit a pull request.

📝 License

This project is licensed under the MIT License.

Note: For more detailed documentation and troubleshooting, visit our GitHub repository.

📄 Copyright

© jeffy-g

CCP Copyright Notice

EVE Online and the EVE logo are the registered trademarks of CCP hf. All rights are reserved worldwide.

All other trademarks are the property of their respective owners.
EVE Online, the EVE logo, EVE and all associated logos and designs are the intellectual property of CCP hf. All artwork,
screenshots, characters, vehicles, storylines, world facts or other recognizable features of the intellectual property
relating to these trademarks are likewise the intellectual property of CCP hf.

CCP hf. has granted permission to EVE OAuth2 Token Management CLI to use EVE Online and all associated logos
and designs for promotional and information purposes on its website but does not endorse,
and is not in any way affiliated with, EVE OAuth2 Token Management CLI.

CCP is in no way responsible for the content on or functioning of this website,
nor can it be liable for any damage arising from the use of this website.