Skip to main content

axon version

Display the installed version of axon-lang.

Syntax

axon version
Or use the short flag:
axon --version
axon -V

Description

The version command displays the currently installed version of the AXON compiler and runtime. This is useful for:
  • Troubleshooting — Verify which version is installed when reporting issues
  • Compatibility — Check if you have the required version for a project
  • Updates — Confirm successful upgrades after running pip install --upgrade axon-lang

Output Format

The command outputs a single line with the package name and version:
axon-lang 0.4.0a0
Version Format: major.minor.patch[status]
  • 0.4.0 — Semantic version number
  • a0 — Alpha release indicator (removed in stable releases)

Examples

Check Installed Version

axon version
Output:
axon-lang 0.4.0a0

Use in Scripts

#!/bin/bash
VERSION=$(axon --version | cut -d' ' -f2)
echo "Running AXON $VERSION"

if [[ "$VERSION" < "0.4.0" ]]; then
    echo "Error: AXON 0.4.0+ required"
    exit 1
fi

CI/CD Version Verification

.github/workflows/test.yml
- name: Check AXON version
  run: |
    axon version
    axon --version | grep "0.4.0"

Exit Codes

CodeMeaning
0Success — Version displayed

Installation

Install or upgrade AXON

CLI Overview

All available commands

Troubleshooting

Command Not Found

If axon version fails with command not found:
# Check if axon-lang is installed
pip show axon-lang

# Reinstall if needed
pip install axon-lang

Wrong Version Displayed

If you upgraded but still see the old version:
# Force reinstall
pip install --upgrade --force-reinstall axon-lang

# Verify installation location
which axon

# Check Python environment
python -m axon.cli version

Multiple Python Environments

If you have multiple Python environments:
# Use the specific Python interpreter
python3.12 -m pip install axon-lang
python3.12 -m axon.cli version

Build docs developers (and LLMs) love