Just Commands Reference
Just is a command runner that provides convenient shortcuts for common development tasks. The AgentOps project includes a comprehensivejustfile
with commands for setup, development, testing, and deployment.
Installation
First, install Just if you haven’t already:Quick Reference
View all available commands:Setup Commands
just setup
Complete development environment setup - runs the full initialization process.
- Copies environment files (
.env.example
→.env
, etc.) - Installs all dependencies (root, API, dashboard)
- Sets up development environment
- First time setting up the project
- After a fresh clone
- When you want to reset your development environment
just install
Install all project dependencies across all services.
- Installs root Node.js dependencies (
bun install
) - Installs Python development dependencies (
uv pip install -r requirements-dev.txt
) - Installs API dependencies (
cd api && uv pip install -e .
) - Installs dashboard dependencies (
cd dashboard && bun install
)
- After pulling changes that modify dependencies
- When
package.json
,pyproject.toml
, or requirements files change
API Development Commands
just api-native
Run the API server natively (fastest for development).
- Starts the FastAPI server using
uv run python run.py
- Runs on
http://localhost:8000
- Provides fastest reload times for development
- Active API development
- You need fastest iteration cycles
- Debugging API code
just api-build
Build the API Docker image.
- Builds Docker image for the API service
- Uses
./scripts/just-api-build.sh
- Optional Stripe integration support
- Preparing for Docker-based deployment
- Testing Docker build process
- Before running
just api-run
just api-run
Run the API server in a Docker container.
- Runs the API service using Docker
- Uses
./scripts/just-api-run.sh
- Includes all necessary environment variables
- Optional Stripe integration
- Testing Docker deployment locally
- You need isolated environment
- Production-like testing
just api-test
Run API tests using pytest.
- Changes to
api/
directory - Runs
pytest
with all configured tests - Includes unit and integration tests
- Before committing API changes
- Validating API functionality
- Continuous integration
Frontend Development Commands
just fe-run
Run the dashboard development server.
- Changes to
dashboard/
directory - Installs dependencies (
bun install
) - Starts development server (
bun run dev
) - Available at
http://localhost:3000
- Active dashboard development
- Testing frontend changes
- Full-stack development
just fe-build
Build the dashboard for production.
- Changes to
dashboard/
directory - Builds optimized production bundle (
bun run build
) - Generates static assets
- Preparing for production deployment
- Testing production build locally
- Performance optimization
just fe-test
Run frontend tests.
- Changes to
dashboard/
directory - Runs test suite (
bun test
) - Includes unit and component tests
- Before committing frontend changes
- Validating UI functionality
- Continuous integration
Code Quality Commands
just lint
Run all linting checks across the project.
- Runs
bun run lint
from project root - Checks JavaScript/TypeScript files with ESLint
- Checks Python files with Ruff
- Validates code style and quality
- Before committing changes
- Code review preparation
- Maintaining code quality
just format
Format all code using project standards.
- Runs
ruff format
for Python files - Applies consistent code formatting
- Fixes automatically correctable issues
- Before committing changes
- Standardizing code style
- Preparing for code review
just test
Run all tests across the project.
- Runs
just api-test
(API tests) - Runs
just fe-test
(frontend tests) - Comprehensive test suite execution
- Before major releases
- Validating entire system
- Continuous integration
Docker Management Commands
just up
Start all services with Docker Compose.
- Runs
docker-compose up -d
- Starts all defined services in detached mode
- Creates networks and volumes as needed
- Starting development environment
- Testing full system integration
- Docker-based development
just down
Stop all Docker services.
- Runs
docker-compose down
- Stops and removes containers
- Preserves volumes and networks
- Stopping development environment
- Switching between development modes
- Cleaning up running services
just logs
View Docker logs for all services.
- Runs
docker-compose logs -f
- Shows real-time logs from all services
- Useful for debugging and monitoring
- Debugging service issues
- Monitoring application behavior
- Troubleshooting problems
just clean
Clean up Docker resources.
- Runs
docker-compose down -v
(stops services and removes volumes) - Runs
docker system prune -f
(removes unused Docker resources) - Frees up disk space
- Cleaning up development environment
- Freeing disk space
- Resolving Docker issues
- Fresh start needed
Command Combinations and Workflows
Full Development Setup
Docker Development
Testing Workflow
Production Preparation
Environment-Specific Usage
Development Environment
Integration Testing
Production Testing
Troubleshooting Just Commands
Command Not Found
Permission Issues
Environment Issues
Docker Issues
Custom Commands and Extensions
You can extend thejustfile
with your own commands. Add to the bottom of the file:
Best Practices
Daily Development
just api-native
for API development (fastest)just fe-run
for frontend developmentjust lint && just test
before commits
Integration Testing
just up
for full environmentjust logs
for monitoringjust clean
when issues arise
Production Preparation
just api-build && just fe-build
for production buildsjust test
for validationjust up
for final testing
Related Documentation
- Backend Setup Guide - Complete setup instructions
- Docker Guide - Docker-specific commands
- Development Workflow - Development best practices