0.0.22 • Published 8 months ago

hydra-ai-cli v0.0.22

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

hydra-ai-cli

Hydra AI command-line tool for managing your Hydra API projects and their keys

Install

npm install --global hydra-ai-cli

Usage

  Hydra AI command-line tool

  Usage
    $ hydra <command> [options]

  Commands
    signup              Sign up for a new Hydra AI account
    login               Log in to Hydra AI
    listProjects        List all projects for the user
    createProject       Create a new Hydra AI project
    addProvider         Add a provider to a project (default: OpenAI)
    generateKey         Generate an API key for a project
    init                Initialize a new Hydra AI project by creating a `hydra-config.ts` file
    add                 Add a hydra component to your project

  Examples
    $ hydra signup
    $ hydra login
    $ hydra listProjects
    $ hydra createProject
    $ hydra addProvider --id <project_id>
    $ hydra generateKey --id <project_id> --name <key_name>
    $ hydra init --src <path_to_components_directory>
    $ hydra add control-bar

Commands

signup

Create a Hydra API account.

login

Log in to your Hydra API account.

createProject

Initialize a new Hydra API project. This will guide you through:

  • project creation
  • provider key upload
  • api key generation

listProjects

List all your Hydra API projects.

addProvider --id <project_id>

Adds an AI provider key for your project to use. For now, only add one, and it should be for openai.

generateKey --id <project_id> --name <key_name>

Generate a new API key for your project that you can then use to call the Hydra API with. The "name" field can be any string, and is not used internally.

init --src <path_to_components_directory>

Initialize a new Hydra AI project by creating a hydra-config.ts file. The src argument is the path to the directory containing your components.

add <component_name>

Add a hydra component to your project.

0.0.20

8 months ago

0.0.21

8 months ago

0.0.22

8 months ago

0.0.17

8 months ago

0.0.18

8 months ago

0.0.19

8 months ago

0.0.16

9 months ago

0.0.14

9 months ago

0.0.13

9 months ago

0.0.12

9 months ago

0.0.11

9 months ago

0.0.10

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago