# API Reference ## coke - **Type:** `function` The Coke API. ### coke.os - **Type:** `string` OS information. ```lua print(coke.os) ``` ### coke.arch - **Type:** `string` Architecture information. ```lua print(os.arch) ``` ### coke.version - **Type:** `string` The Coke version. ```lua print(coke.version) ``` ### coke.getenv - **Type:** `function` Get environment variables. ```lua print(coke.getenv('PATH')) ``` ### coke.setenv - **Type:** `function` Set environment variables. ```lua coke.setenv('NAME', 'a') ``` ### coke.unsetenv - **Type:** `function` Unset environment variables. ```lua coke.unsetenv('NAME') ``` ### coke.envtable - **Type:** `function` Use table to set environment variables. ```lua coke.envtable({ NAME = 'a' }) ```