It is required to have npm (TypeScript) or uv (Python) installed to use the following command.
You can quickly initialize a new job from scratch by using the CLI command bl new job.
Copy
Ask AI
bl new job
This will create a pre-scaffolded local directory where your entire code can be added. In the generated folder, you’ll find a boilerplate job with multiple steps in the entrypoint file src/index.ts / src/main.py.The template used to generate the boilerplate job is available in Blaxel’s public GitHub repository (TypeScript / Python).Start the job locally:
Copy
Ask AI
# Run the job with a sample batch filebl run job <<JOB-NAME>> --local --file batches/sample-batch.json# Or directly with --data argumentbl run job <<JOB-NAME>> --local --data '{"tasks": [{"name": "John"}]}'# Or without blaxel CLIpnpm start --name John