LogoLogo
  • JuliaOS Documentation Hub
  • About JuliaOS
    • Mission & Vision
    • Features and Capabilities
    • Roadmap
    • Tokenomics
  • Ecosystem
    • Overview
  • Partners
    • Heurist
    • Fetch.ai
    • Soulgraph
    • cheqd.io
    • Aethir
    • Anyone
    • TensorLabs
    • Hashpower
  • Technology
    • Overview
    • Open Source
      • Modular Framework
      • CLI Mode
    • AI Platform
      • Dashboard
      • Agent Management
      • Swarm Management
      • Marketplace
      • Mining
    • LLM
    • Launchpad
    • Robotics & IOT
      • SwarmIOT
      • Modular AI with Robotics
        • J3OS MiniLLM
          • 🔧 Use Cases
  • Technical
    • Overview
    • Developer Hub
      • Getting Started
        • Installation Guide
          • Github Guide
        • Basic Concepts
        • Quick Start Guide
          • Handling secrets
        • Examples and Use
          • Example: Using the Trading Functionality
          • Example: Using the Benchmarking Feature
          • Example: Multi-Agent Swarm Coordination
          • Example: Using the Python Wrapper for LLM Integration
          • Example: Using Cross-Chain Bridges
          • Example: Creating and Running a Swarm Optimization
          • Page 4
      • Best Practices
        • Performance Tuning
        • Agent/Swarm Design Patterns
        • Best Practices & Patterns
        • Security Best Practices
      • CLI
        • JuliaOS CLI Interface
        • Agent Management (CLI)
        • CLI Configuration
        • Cross-Chain Hub (CLI)
        • Swarm Management (CLI)
        • CLI Troubleshooting
        • Wallet Management (CLI)
      • Framework SDK
        • Modules
          • Bridge
          • Agents Module
          • Dex
          • Swarms Module
          • Wallet
        • Python Wrapper
          • LangChain Integration
          • Python Wrapper
      • Contributing Guide
      • Extending JuliaOS
      • Development Setup & Conventions
      • Testing & Debugging
      • Troubleshooting
    • Architecture
      • High Level JuliaOS
      • CLI <-> Backend Communication
      • Data Storage Architecture
      • Framework Internals
      • Architecture Deep Dive
        • Architectual Notes
    • Concepts
      • Core Features & Concepts
      • Agents
        • Agent Skills & Specializations
      • Swarms
      • Neural Networks
      • Blockchains & Chains
      • Bridges (Cross-Chain)
      • Integrations
        • Google ADK
        • LLMs
        • Price Feed
        • DEX Integration
      • Storage
      • Trading Capabilities
      • Use Cases
      • Wallets
      • Portfolio Optimization
  • Research
    • JuliaOS Research
  • API Documentation
    • API Reference
      • API Reference: Julia Backend Commands
      • API Reference: CLI Commands
      • API Reference: Node.js API
      • API Reference: Python API
      • API Reference
  • Community
    • Community & Support
  • FAQ
    • General
    • Technical
    • Community
Powered by GitBook
On this page
  • Environment Variables
  • Configuration Files
  • Starting the CLI
  • Project Structure Reference
  • Best Practices
Export as PDF
  1. Technical
  2. Developer Hub
  3. CLI

CLI Configuration

Proper configuration is essential for using the JuliaOS CLI effectively. This includes setting up environment variables, configuration files, and understanding the project structure.

Environment Variables

  • Copy .env.example to .env in the project root.

  • Fill in required variables (RPC URLs, API keys, etc.):

ETH_RPC_URL=YOUR_ETH_RPC_URL
SOLANA_RPC_URL=YOUR_SOLANA_RPC_URL
# ... other variables

Configuration Files

  • julia/config.toml: Main backend configuration (copy from config.example.toml and edit as needed).

  • tokens.json, bridges.json, etc.: Used for token and bridge mappings.

Starting the CLI

  • Start the Julia backend server first:

cd julia
julia --project julia_server.jl
  • In a separate terminal, start the CLI:

node scripts/interactive.cjs

Project Structure Reference

  • /julia: Julia backend code and config

  • /packages/cli: CLI source code

  • /packages/framework: Core JS/TS components

  • /packages/bridges, /packages/wallets: Integrations

  • /scripts: Utility scripts

  • /docs: Documentation

Best Practices

  • Use version control for configuration files, but never commit secrets or private keys.

  • Use .env for sensitive variables and ensure it's in .gitignore.

  • Refer to the Setup & Conventions guide for more details.

PreviousAgent Management (CLI)NextCross-Chain Hub (CLI)