CLI

Here you'll get an overview of the Javelin Command Line Interface (CLI). It's a fast, efficient way for developers and administrators to manage Javelin resources directly from their terminal, perfect for scripting, automation, and quick administrative tasks. Built on top of the Python SDK, it offers the same powerful functionality.

Installation and Setup

The CLI is included with the Javelin SDK. To get started, make sure you have the SDK installed:

pip install javelin-sdk

Set Up Environment Variables

The CLI uses environment variables for authentication. You'll need to set your Javelin base URL and API key. You can find your API key in the Javelin console under Account -> Developer Settings.

export JAVELIN_BASE_URL=your_base_url
export JAVELIN_API_KEY=your_api_key

Common Commands

CLI Authentication

javelin auth

Provider Management

Create a Provider

javelin provider create --name "example_provider" --type "closed" --config '{"api_version": "v1", "deployment_name": "example_deployment", "organization": "example_org"}'

List All Providers

Get a Specific Provider

Update a Provider

Delete a Provider

Route Management

Create a Route

List a Route

Get a Specific Route

Update a Route

Delete a Route

Create a Secret

List All Secrets

Update a Secret

Delete a Secret

Create a Template

List All Templates

Get a Specific Template

Update a Template

Delete a Template

What's Next?

  • For more programmatic controls, explore the SDK.

  • To see these commands in action, browse the AI Security Platform section of our documentation.

Last updated