
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
veritone-developer-cli
Advanced tools
A CLI for interacting with Veritone developer APIs and publishing apps
⚠️ WARNING: This is under active development and not yet considered stable for production use!
veritone-developer
is a command line interface (CLI) for deploying aiWARE applications to an aiWARE instance directly from their source code.
The tool analyzes a specially-formatted manifest.yaml
file in the base of a project directory,
looks at the difference between the configuration specified there and the live deployment of the application in aiWARE,
and calls the aiWARE API to make changes to bring the deployed version of the application inline with the manifest file.
⚠️ WARNING: This means it will CHANGE THINGS IN YOUR ACCOUNT! USE WITH CAUTION!
For now, we need to
git clone
this repo andnpm link
it. In the future, you should be able to usenpx
or a raw binary instead.
Wherever you want to store this repo, clone this repo to your computer and install and link the library.
git clone https://github.com/veritone/developer-cli-tool
cd developer-cli-tool
yarn install
yarn link # This allows you to use the `veritone-developer` command on the command line
In the directory for your application, create a manifest.yaml
that looks like test/manifest.yaml
.
Retrieve an aiWARE token somehow (probably by logging in and pulling it out of your cookies)
Run this to create your application in the new environment (only VERI_TOKEN
is required):
VERI_TOKEN="<your token>" \
VERI_GRAPHQL_URL="<the graphql endpoint for your environment>" \
VERI_MANIFEST="<the manifest location>" \
veritone-developer deploy
For now, there's just one command: deploy
.
And running veritone-developer
or veritone-developer deploy
does the same thing for the moment.
In the future, these will be turned into command line arguments
Token | Required | Default | Purpose |
---|---|---|---|
VERI_TOKEN | Yes | The token to use when making calls to aiWARE's API | |
VERI_GRAPHQL_URL | No | https://api.aws-dev.veritone.com/v3/graphql | The aiWARE API endpoint |
VERI_MANIFEST | No | manifest.yaml | The manifest file to process |
Running the following should successfully register a full-featured application.
⚠️ WARNING: This DOES make changes in your account. Use with caution!
cd test
VERI_TOKEN="<your token>" ../bin/veritone-developer
Running it again should ideally make no changes.
Our sketches for the manifest can be seen in our CodeSandbox. See @SteveShaffer for access if you don't have it.
Following Twilio's guide on how to build a node CLI.
But using yargs
instead of arg
.
majorVersion
number in the manifest, it should be able to push updates to the new major version though.yaml
or json
.aiware.json
tf plan
)require
to import
(per esm)We'd like to be intentional about the dependencies we bring in. There's always lots of technologies to pick from on these projects.
Here's what we'd like to explore using for various things. If there's a better alternative, we might change our minds, but here's where our minds are at right now.
yargs
for parsing CLI argspkg
for bundling a binarylistr
for progress meterschalk
for colored STDOUTinquirer
for interactive inputsShould have a command line synonym shorter than veritone-developer
Should be able to run via npx
npx veritone-developer deploy
Should be able to run as a standalone binary
curl https://scripts.veritone.com/veritone-developer | bash
FAQs
A CLI for interacting with Veritone developer APIs and publishing apps
The npm package veritone-developer-cli receives a total of 1 weekly downloads. As such, veritone-developer-cli popularity was classified as not popular.
We found that veritone-developer-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.