Command line
The nicetrybot command: look after the server, and run the panel's tools from it or your laptop.
nicetrybot looks after a self-hosted NiceTryBot from the command line. The installer puts it in
/usr/local/bin, and each update brings the release's newest copy. On a laptop (macOS or Linux, with
curl and jq) it runs the app's commands on any NiceTryBot panel: a remote.
Looking after the server
nicetrybot update # update to the newest release (the database is backed up first)
nicetrybot update --version=X # update (or go back) to release X, like v1.3.0
nicetrybot rollback # put back the release and database from before the last update
nicetrybot apply # start the stack again with what you changed in .env
nicetrybot doctor # check the server, the containers, the panel and the app, with advice
nicetrybot status # the release, the containers and the add-ons
nicetrybot version # the release running, and the newest one
nicetrybot logs [SERVICE] # follow the logs (app, worker, scheduler, edge, vector, postgres, valkey)
nicetrybot artisan COMMAND… # run an Artisan command in the app, like admin:grant you@example.com
doctor checks the server (CPU, memory, swap, memory pressure, disk, and whether the last boot ended out
of memory), each container, the panel through the edge (response time, certificate) and the app itself
(database, cache, queue, failed jobs, edge log imports), with what to do about anything it finds.
The stack lives in /opt/nicetrybot, or NICETRY_DIR (set in /etc/default/nicetrybot by the installer
when it was put somewhere else). Each update keeps what it replaced in <dir>/.updates and the
database's backup in <dir>/backups (the newest three), and logs Docker's output to
<dir>/.updates/update.log. Self-hosting has more on updates.
Add-ons
nicetrybot addons # the marketplace add-ons built into the app
nicetrybot addons add NAME… # build add-ons in, like captchas or nicetry/captchas
nicetrybot addons remove NAME… # take add-ons out
nicetrybot addons keys # enter the licence keys paid add-ons still need
addons add asks for the Composer token from your account on nicetrybot.com the first time (or pass
--token=). NAME=KEY enters an add-on's licence key as it goes; Your licences on nicetrybot.com builds
that command for you. Self-hosting explains how they're built in.
The app's own commands
These run the app's own tools, the ones its MCP server gives AI agents, so the command, the panel and an agent all go through the same validation. On the server they act as the first administrator's team owner; on a remote, as the API token's user.
nicetrybot whoami # the team, user and abilities the commands act with
nicetrybot teams # the teams the remote's token works on (* marks the one in use)
nicetrybot team use SLUG # switch team, with a token for all your teams
nicetrybot domains # the team's domains
nicetrybot domains add HOST ORIGIN [--www] [--host-header=rewrite] [--forwarded-host-header=NAME]
nicetrybot domains check|verify|secret|remove HOST
nicetrybot domains mode HOST off|observe|enforce
nicetrybot rules [ID] # the team's rules; rules remove ID deletes one
nicetrybot gyms # the team's gyms; gyms remove ID deletes one
nicetrybot tools # every tool the token may use
nicetrybot call TOOL [key=value…]
domains add puts HOST behind the edge, forwarding to ORIGIN; domains help has more. domains check shows DNS, the origin lock and what's left to do. call runs any tool, like
nicetrybot call query-traffic group_by=country.
Remotes
On a laptop, save a panel with an API token an administrator makes in its Admin → API tokens. The
token is asked for, hidden, and kept in ~/.config/nicetrybot/remotes, readable only by you.
curl -fsSL https://github.com/NiceTryBot/nicetrybot/releases/latest/download/nicetrybot -o ~/.local/bin/nicetrybot
chmod +x ~/.local/bin/nicetrybot
nicetrybot remote add [NAME] URL # save a panel, like app.example.com, and make it the current one
nicetrybot remote NAME|URL # switch to a saved remote (or save a new one)
nicetrybot remote list # the saved remotes; * marks the current one
nicetrybot remote use NAME # make NAME current (remote use --local: back to this server)
nicetrybot remote auth [NAME] # give a remote a new token (they expire)
nicetrybot remote remove NAME # forget a remote
nicetrybot cli update # this command, to the newest release
nicetrybot cli version # this command's release, and the newest one
The server-only commands (update, rollback, addons, doctor, logs…) always work on the server
they run on.
Options
| Option | What it does |
|---|---|
--yes |
Don't ask before a rollback, or before removing a domain, rule or gym. |
--no-backup |
Update without backing up the database first (then rollback can't restore it). |
--token=TOKEN |
With addons add: the Composer token from your account on nicetrybot.com. With remote add or auth: the API token. Asked for otherwise, which keeps it out of your shell history. |
--remote=NAME |
Run an app command on that remote rather than the current one. |
--local |
Run an app command on this server's stack, even with a current remote. |
--team=SLUG |
The team to work on: on a remote with a token for all teams, for this command only; on the server, the first administrator's when left out. |
--json |
Print the app's answer as JSON. |