Purpose
Adal CLI delivers requests accepted by Inbound to applications reachable from your computer. Use a CLI Channel when you need to queue webhook deliveries and retry failed attempts.
Delivery flow
An external sender calls your Server URL. A Router connects the Server to a CLI Channel, whose Endpoints identify your local recipients. Adal CLI must be running for local delivery.
Before you start
Download an archive for your system from GitHub Releases, extract it, and open a terminal in the executable’s directory. Start the local application that will receive requests.
Prepare the Channel and token
Create a CLI Channel and add an Endpoint for your local application.
Check Enabled and Deliver backlog, then choose Save endpoints.
Connect the Channel to a Server through an enabled Router.
When ready to connect the client, issue a secret with the intended lifetime from the Channel's CLI token panel. Keep it private; an account API token cannot replace it.
The secret is shown when issued and cannot be retrieved afterward. Replacing or revoking a token ends its access.

CLI Endpoint in a demonstration dashboard. Use your application's address and save the settings. English interface. Open full-size screenshot.
Verify delivery
Start the client with your Channel's CLI token:
./adal-cli --token '<CLI_TOKEN>'
On Windows, in PowerShell:
.\adal-cli.exe --token '<CLI_TOKEN>'
Set the Channel Endpoint URL to http://127.0.0.1:3000. Your local application should handle POST /hook and return a 2xx response. Send a test event to the Server URL shown in the dashboard, replacing the example hostname.
curl -i 'https://SERVER_ADDRESS.se.adal.cloud/hook' \
-H 'Content-Type: application/json' --data '{"event":"demo"}'
In PowerShell:
$body = @{ event = 'demo' } | ConvertTo-Json -Compress
Invoke-WebRequest -Uri 'https://SERVER_ADDRESS.se.adal.cloud/hook' -Method Post -ContentType 'application/json' -Body $body
The client calls http://127.0.0.1:3000/hook. Check your application's log and the attempt under Inbound → Requests → Deliveries. The Server response confirms intake. The local application's response is used to record the attempt outcome.
Attempts and limits
Each Endpoint gets up to 10 attempts. A complete
2xxresponse is a success. Other HTTP codes, timeouts and network failures can trigger a retry.Each attempt has a 30-second limit, including reading the response. Queue time and the wait before retries are separate. The CLI does not follow redirects or retain the Endpoint's response body.
The incoming path and query are appended to the Endpoint base URL. Set the base URL without a query. Enable Add an idempotency key if your application uses
Idempotency-Keyto deduplicate calls.Deliver backlog allows eligible requests received while CLI was offline. Once CLI saves a job, its local journal controls resumption. See retry rules.
Public connection
The client connects to wss://cli.adal.cloud by default. Public API calls use https://api.adal.cloud.
| Option | Purpose |
|---|---|
--token |
Required CLI Channel secret |
--host |
Connection address; use wss://cli.adal.cloud for the public service |
--help |
Show help without connecting |
To select the public address explicitly:
./adal-cli --host wss://cli.adal.cloud --token '<CLI_TOKEN>'
ADAL_API_HOST can set the connection address. --host takes precedence over that variable; if neither is set, the public default is used. A hostname without a scheme uses WSS. Use the address alone, without a path, credentials, query or fragment.
Shutdown and saved work
Press Ctrl+C to stop the client. Restart it with the same connection and token to resume saved work. Preserve its saved data when restarting; it can contain request content. Restrict access and keep tokens and private request data out of screenshots and logs. A delivery can be repeated after an interruption, so your recipient should handle duplicate events safely.
Troubleshooting
Check that the Channel is connected through an enabled Router, its Endpoint is enabled and your application is reachable from your computer. Check the CLI token's expiry and whether it has been revoked. Inspect the request's delivery history before sending the same event again.
Deliver backlog controls delivery of requests received while the client was absent. Turning it off does not cancel work already accepted by the client.