Getting Started
Getting started with Julep CLI
Overview
The julep
CLI provides a comprehensive command-line interface for interacting with the Julep platform. It enables you to manage agents, tasks, tools, and projects directly from your terminal.
Installation
Note: While the package name is julep-cli
, the installed command is simply julep
.
Configuration
The CLI stores configuration data in ~/.config/julep/config.yml
. This file is created automatically after authentication.
Project Structure
A Julep project follows a standard directory structure:
The julep.yaml
file defines your project configuration:
The julep-lock.json
file tracks the state of your project on the Julep platform, mapping local files to their remote counterparts and maintaining relationships between components. This file should be committed to version control to ensure consistent state across team members.
To know more about the schema and the usage of the julep-lock.json
file, you can read the Lockfile section.
Getting Started
To get started with the CLI, follow these steps:
Authenticate
The auth
command is used to authenticate with the Julep platform. You need to provide your API key. You can find your API key here.
Initialize Project
The init
command is used to initialize a new Julep project. There are bunch of templates to get you started which you can find here.
Sync Project
The sync
command is used to synchronize the local project with the Julep platform. This creates a julep-lock.json
file which tracks the state of the project on the Julep platform.
Edit the project
Once the project is initialized, you can edit the project in the julep.yaml
file. Add agents, tasks, tools, etc. in the src
directory.
Re-Sync Project
After editing the project, you can re-sync the project with the Julep platform. This will update the julep-lock.json
file with the latest state of the project on the Julep platform.
Run the project
The executions create
command is used to create a new execution for a task. You can find the task ID in the julep-lock.json
file.
View the execution
The logs
command is used to view the logs of an execution. When you run the executions create
command, it will return the execution ID.
You can find more commands in the Command Reference section.
Support
If you need help with further questions in Julep:
- Join our Discord community
- Check the GitHub repository
- Contact support at hey@julep.ai