# Built-In Functions

The bx-plus module provides three built-in functions for comprehensive license management:

## License Management Functions

### 🔑 [BoxlangLicenseActivate](https://boxlang.ortusbooks.com/boxlang-framework/boxlang-plus/modules/bx-plus/reference/built-in-functions/boxlanglicenseactivate)

Activate a new BoxLang+ or BoxLang++ license using an email address and license key.

**Usage:**

```js
result = boxlangLicenseActivate(
    email = "admin@example.com",
    licenseKey = "XXXX-XXXX-XXXX-XXXX",
    serverType = "Production"
);
```

### ℹ️ [BoxlangLicenseInfo](https://boxlang.ortusbooks.com/boxlang-framework/boxlang-plus/modules/bx-plus/reference/built-in-functions/boxlanglicenseinfo)

Get current license status and detailed information about the active license.

**Usage:**

```js
licenseInfo = boxlangLicenseInfo();
if ( licenseInfo.isValidLicense ) {
    systemOutput( "License active until: " & licenseInfo.expirationDate );
}
```

### 🔄 [BoxlangLicenseRefresh](https://boxlang.ortusbooks.com/boxlang-framework/boxlang-plus/modules/bx-plus/reference/built-in-functions/boxlanglicenserefresh)

Refresh an existing license token to extend its validity period.

**Usage:**

```js
try {
    result = boxlangLicenseRefresh();
    if ( result.success ) {
        systemOutput( "License refreshed successfully" );
    }
} catch ( Exception e ) {
    systemOutput( "Error: " & e.message );
}
```
