
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
@heroku-cli/plugin-api
Advanced tools
$ heroku plugins:install @heroku-cli/plugin-api
heroku api METHOD [PATH]
make a manual API request
USAGE
$ heroku api METHOD [PATH] [-a <value>] [-b <value>] [-v <value>]
ARGUMENTS
METHOD GET, POST, PUT, PATCH, or DELETE
PATH endpoint to call
FLAGS
-a, --accept-inclusion=<value> Accept-Inclusion header to use
-b, --body=<value> JSON input body
-v, --version=<value> version to use (e.g. 2, 3, or 3.variant)
DESCRIPTION
make a manual API request
The api command is a convenient but low-level way to send requests
to the Heroku API. It sends an HTTP request to the Heroku API
using the given method on the given path. For methods PUT, PATCH,
and POST, it uses stdin unmodified as the request body. It prints
the response unmodified on stdout.
It is essentially like curl for the Heroku API.
Method name input will be upcased, so both 'heroku api GET /apps' and
'heroku api get /apps' are valid commands.
EXAMPLES
$ heroku api GET /apps/myapp
{
created_at: "2011-11-11T04:17:13-00:00",
id: "12345678-9abc-def0-1234-456789012345",
name: "myapp",
…
}
$ heroku api PATCH /apps/myapp/config-vars --body '{"FOO": "bar"}'
{
FOO: "bar"
…
}
$ printf '{"updates":[{"type":"web", "quantity":2}]}' | heroku api POST /apps/myapp/formation
[
{
"app": {
"name": "myapp",
"id": "01234567-89ab-cdef-0123-456789abcdef"
},
"quantity": 2,
"type": "web",
"updated_at": "2012-01-01T12:00:00Z"
...
}
]
See code: src/commands/api.ts
FAQs
access the Heroku API directly
The npm package @heroku-cli/plugin-api receives a total of 92 weekly downloads. As such, @heroku-cli/plugin-api popularity was classified as not popular.
We found that @heroku-cli/plugin-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.