tscircuit / freerouting-cli

A command line interface to the freerouting API
MIT License
1 stars 1 forks source link

freerouting API CLI

A CLI tool for interacting with the freerouting API, maintained by tscircuit.

npm install -g freerouting

Initial Setup

Before using the CLI, you need to configure your profile ID. The easiest way is to generate a new one:

freerouting config create-profile

Alternatively, you can set a specific UUID as your profile ID:

freerouting config set-profile <uuid>

You can also optionally set a custom API base URL (defaults to https://api.freerouting.app):

freerouting config set-api-url <api-url>

Usage

The CLI follows a typical workflow for PCB autorouting:

  1. Create a session
  2. Create a job within that session
  3. Upload your design file
  4. Start the routing job
  5. Retrieve the output

Basic Workflow Example

# Create a new session
freerouting session create

# Create a new job in the session
freerouting job create --name "my-board"

# Upload your DSN file
freerouting job upload --file my-board.dsn

# Start the routing process
freerouting job start

# Get the routed output (saves to the same filename by default)
freerouting job output

Starting a Local Freerouting Server

Want to run freerouting locally?

freerouting server start

This will pull the latest docker image, start a local server on port 37864, then configure your api url to http://localhost:37864. To reset your api url just do freerouting config reset

Available Commands

Session Management

Job Management

System Commands

Configuration

Acknowledgements

We are not affiliated with the freerouting project beyond sponsoring it! If the freerouting project wants us to give the npm handle for a more official cli just reach out to @seveibar!