Skip to content

Repository files navigation

Codize CLI

NPM Version GitHub Actions Workflow Status GitHub License

A CLI tool for executing source files in the Codize Sandbox.

Installation

$ npm install -g @codize/cli

# without global installation
$ npx @codize/cli --help

Usage

Authentication

Generate your API key at codize.dev/settings/api-keys, then set the CODIZE_API_KEY environment variable or pass the --api-key flag:

$ export CODIZE_API_KEY="cdz_YourApiKeyHere"

Running a File

$ codize run main.ts

You can pass multiple files:

$ codize run main.ts utils.ts

JSON Output

Use --json to get structured output for programmatic use:

$ codize run main.ts --json
{
  "compile": {
    "stdout": "",
    "stderr": "",
    "output": "",
    "exitCode": 0
  },
  "run": {
    "stdout": "Hello\n",
    "stderr": "",
    "output": "Hello\n",
    "exitCode": 0
  }
}

License

MIT

About

A CLI tool for executing source files in the Codize Sandbox.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages