Registry / http-networking / endpoints-sdk-cli

endpoints-sdk-cli

JSON →
library3.1.7jsnpmunverified

The `endpoints-sdk-cli` is a command-line interface tool designed for generating SDKs for various API endpoints. Currently at version 3.1.7, the package exhibits an active release cadence, with frequent patch and minor updates primarily addressing dependency updates and bug fixes. Its core functionality revolves around consuming Git repositories to generate client-side SDKs, simplifying interaction with defined API endpoints. While specific details on the input format (e.g., OpenAPI) are not explicitly stated in the provided context, its role as an 'endpoints SDK CLI' strongly implies it processes API definitions to produce code. A key differentiator is its focus on streamlining the SDK creation process directly from remote Git repositories via CLI commands, reducing the need for manual setup or complex configuration within development environments.

npm install endpoints-sdk-cli
INSTALL
IMPORT
SIG · ENDPOINTS-SDK-CLI
E
endpoints-sdk-cli
http-networkingjavascriptv3.1.7
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cli
This package is primarily a CLI tool and not intended for direct library-style imports. Its functionality is accessed via the 'endpoints' command in the terminal.
import { cli } from 'endpoints-sdk-cli'; cli.run(['add', 'repo']);
The CLI's main execution point ('endpoints') is exposed via the `bin` entry in `package.json`, not as a library export. Programmatic interaction is typically via `child_process.exec`.
generateSdk
This package primarily operates via CLI commands. The SDK generation process is initiated through the `endpoints` CLI command (e.g., `endpoints add <repo_url>`), rather than a directly importable function.
import { generateSdk } from 'endpoints-sdk-cli'; generateSdk({ repo: '...' });
Developers typically interact with this package by running `endpoints` commands in their shell, not by calling exported JavaScript functions directly.
EndpointsCLI
There is no exposed class or default export for programmatic instantiation of the CLI program.
import EndpointsCLI from 'endpoints-sdk-cli'; new EndpointsCLI().addRepo('...');
Attempting to import a class or default object for the CLI will result in undefined behavior as these are not exposed for public consumption as a library.

Installs the CLI globally, then demonstrates adding a remote Git repository to generate an SDK.

npm install -g endpoints-sdk-cli # Or use npx for one-off commands # npx endpoints-sdk-cli <command> # Add a remote repository containing your API definition (e.g., OpenAPI spec) # Replace with your actual repository URL and branch endpoints add https://github.com/your-org/your-api-specs.git --branch main # The CLI will process the repository and generate an SDK based on its contents. # The generated files are typically output to the current working directory # or a configurable path. Consult the official documentation for output specifics. # Example: To list available commands endpoints --help
endpoints-sdk-cli --version
Debug
Known issues
breakingThe functionality for generating SDKs from local repositories was abolished. Directly referencing local paths like `add /Users/.../local-repository/` or `add ./local-repository` will no longer work.
fix
Instead of local paths, utilize the `--branch` flag with a remote repository URL. The CLI will clone the specified branch from the remote repository.
affects: >=3.0.0
breakingRepository addition methods were unified, deprecating old syntaxes for adding remote repositories. Specific formats like `add git@github.com:username/repository.git` and `add https://github.com/[username/repository].git` may no longer be directly supported in their previous forms.
fix
Use the unified `add <repository_url> --branch <branch_name>` syntax with standard HTTPS or SSH URLs as specified by the updated CLI.
affects: >=3.0.0
gotchaVersion 3.0.0 contained a bug where path generation did not work correctly, potentially leading to incorrect file paths in generated SDKs or other output issues.
fix
Upgrade to version 3.0.1 or higher to resolve the path generation bug. `npm install -g endpoints-sdk-cli@latest`
affects: 3.0.0
Errors
Common errors & fixes
このバージョンは、パスの生成が上手くできないケースが発覚しています。v3.0.1以上を利用してください。
Path generation bug present in version 3.0.0.
fix
Upgrade the package to version 3.0.1 or any newer version (e.g., `npm install -g endpoints-sdk-cli@latest`).
Upgrade
Version history
3.1.7latest on npm
Audit
Dependencies
commanderrequiredUsed for parsing command-line arguments and structuring the CLI.
@apidevtools/json-schema-ref-parserrequiredUsed for resolving and dereferencing JSON schema references, likely for processing API definitions.
Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
endpoints-sdk-cli — npm install endpoints-sdk-cli · libregistry