Script your firewall with the API and CLI
An API is a way for programs to talk to the box. Every screen in Firecradle uses the same REST API, so anything you can click, a script can do. The firecradle command line tool, or CLI, uses that API too.
- One API for screen and scripts
- API tokens
- Config as code
- Shell completion
- Built-in API docs

A few commands
These come from the command list in the Firecradle docs. Add --json to most of them to get output a script can read.
firecradle statusShow how the box is doing.firecradle postureShow how safe the setup is, in plain words.firecradle firewall rules listList the firewall rules.firecradle config export -o site.yamlSave the whole setup to a file, with secrets left out.firecradle config apply -f site.yamlLoad a saved setup. It asks you to confirm first.firecradle topWatch the box live in your terminal.
The REST API
Same API as the screens
The web screens and the CLI both call the same API. Nothing is hidden from scripts.
Built-in docs
The API describes itself, and its docs can be browsed page by page. Calls are grouped by area.
API tokens
Give a script its own token. Tokens can expire or be revoked, and they get no more than their role allows.
Same safety checks
Each change through the API checks roles and inputs. Firewall changes keep the anti-lockout check.
The command line tool
Works on the box, no setup
On the box, the CLI finds its own local token. Off the box, you sign in once and it saves a token.
Config as code
Export the whole setup to a JSON or YAML file. Keep it in version control. Apply it again later.
Completion and a man page
Tab completion works in bash and zsh. A man page ships with the tool.
When the network is down
A rescue menu on the console
Plug in a screen and keyboard, or a serial cable. A menu can reset the admin password or load safe firewall rules.
Rescue keeps the safety checks
Safe rules from the rescue menu use the same anti-lockout check as the API.
How to get access
Each box carries its own API docs.
Join early access
Early access boxes come with the API and CLI. Ask us on the early access form, and we will help you get started.
Questions people ask
Does Firecradle have an API?
Yes. A REST API drives every screen. The firecradle command line tool uses it too.
How do scripts sign in?
With an API token. Tokens can expire or be revoked, and they never get more than their role.
Can I keep my firewall config in version control?
Yes. Export the setup to a JSON or YAML file with secrets left out, and apply it again later.