Skip to main content

Overview

It is still in experimental phase and is not yet complete. In case of any issues, please reach out to us on Discord or email.
The julep CLI is a comprehensive command-line interface for interacting with the Julep platform. Following are the available commands.

Authentication

The julep auth command is used to authenticate your Julep CLI. This will prompt you to enter your API key and save it to the configuration file.Example:
You can get your API key from the Julep Dashboard.

Project Management

The julep init command is used to initialize a new Julep project using a predefined template. You can check the list of available templates in our library.
string
required
Name of the template to use from the library repository (default: “hello-world”)
string
Destination directory for where you want to initialize the project (default: current directory)
boolean
Skip confirmation prompt
Examples:

Task Execution

The julep run command is used to execute a task.
string
required
ID of the task to execute
json
Input data for the task
string
Path to a json file containing the input to execute the task with
boolean
Wait for the task to complete before exiting, stream logs to stdout
Examples:

Agent Management

The commands in julep agents are used to manage your agents.
The julep agents create command is used to create a new agent.
string
required
Name of the agent
string
Model to be used (e.g., gpt-4). You can find the list of models here
string
Description of the agent
json
Additional metadata (JSON format)
string
Instructions for the agent (can be repeated)
string
Path to agent definition file
Examples:
Note: When creating an agent, the agent doesn’t get automatically imported to the project. You can run julep import --agent --id <agent-id> to import the agent to the project.

Task Management

The julep tasks create command is used to create a new task.
string
required
ID of the associated agent
string
Name of the task
string
Path to task definition file
json
Additional metadata (JSON format)
boolean
Inherit tools from agent
string
Import to project after creating

Tool Management

The julep tools create command is used to create a new tool.
string
required
ID of the associated agent
string
required
Name of the tool
string
required
Type of the tool
string
Path to tool definition file
string
Description of the tool
json
Additional metadata (JSON format)
string
Import to project after creating

Execution Management

The julep executions create command is used to create a new execution for a task.
string
required
ID or name of the task to execute
json
JSON string representing the input for the task (defaults to )
string
Path to a file containing the input for the task
The CLI will soon include a julep assistant command that launches an interactive prompt for generating commands from plain language. This feature is still under development.

Miscellaneous

The julep --version or julep -v command displays the current version of the Julep CLI.

Best Practices

Project Organization

  • Keep agent, task, and tool definitions in separate directories under src/
  • Use meaningful file names that reflect their purpose
  • Follow the standard project structure

Version Control

  • DO commit julep.yaml to version control
  • DO commit julep-lock.json to version control
  • Document project dependencies and requirements

Command Line Usage

  • Use --json flag for machine-readable output
  • Use --quiet for scripting and automation
  • Always provide required parameters

File Management

  • Project Configuration: Keep your julep.yaml clean and well-organized
  • Lock File: Use julep-lock.json to track remote state and relationships
  • Source Files: Organize definitions in appropriate directories under src/

Workflow Tips

  • Use julep sync regularly to keep local and remote states in sync
  • Review changes with --json output before applying updates
  • Use the assistant mode for complex workflows: julep assistant

Security Best Practices

  • Store API keys securely
  • Use environment-specific configurations
  • Review permissions before executing destructive commands
  • Use --force flags cautiously
Always review the changes before using force flags (--force-local, --force-remote) as they can override remote or local state.

Support

If you need help with further questions in Julep: