Usage

# Track jobs and keep your runs organized.

Review recent jobs, submit new scripts, and keep an eye on usage. This page mirrors the Mags console layout for quick reference.

Usage summary Recent jobs

Sign in to view usage data.

CLI Status

    mags list
    mags status <job-id>
    mags logs <job-id>

Use the CLI to check job status anytime.

Usage summary

## Your most recent activity.

Sign in to see usage data. Use email login or Google sign-in.

CPU seconds

—

Last 30 days.

Memory GB-seconds

—

Last 30 days.

Storage GB-seconds

—

Last 30 days.

Submit a job

## Start a run from the CLI or API.

### CLI

    mags run 'echo Hello World'

    mags run -w myproject \
      'python3 app.py'

    # Upload files and run
    mags run -f script.py -f data.csv \
      'python3 script.py'

    # Schedule a cron job
    mags cron add --name "backup" \
      --schedule "0 0 * * *" -w myproject \
      'tar czf /root/backup.tar.gz /root/data'

### API

    curl -X POST https://api.magpiecloud.com/api/v1/mags-jobs \
      -H "Authorization: Bearer $MAGS_API_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
        "script": "echo Hello World",
        "type": "inline",
        "workspace_id": "myproject",
        "persistent": true
      }'

Recent jobs

## Keep an eye on current work.

Name Status Created Duration Logs
No jobs yet. — — — —

Launch a job with `mags run` and it will appear here.