Console reference
Every command Carrier adds to php carrier. Run commands from the project root: Tempest
keeps its internal storage in .carrier/ relative to the current directory (see
architecture).
php carrier # list commands
php carrier <command> --helpPassing arguments
Commands are Tempest console commands, so parameters are filled from the command line like this:
| Parameter type | Pass it as | Example |
|---|---|---|
required (<handle> in usage) |
positional | php carrier user:level Ghost 50 |
optional value ([theme=default]) |
--name=value, or positionally in order |
--theme=amber |
bool ([--quiet=false]) |
--name |
--sysop |
Failures return exit code 1 (Tempest's ExitCode::ERROR); success is 0.
Summary
| Command | Does |
|---|---|
serve |
start the listeners and run the board |
install |
copy a kit, or run a package's installer |
migrate |
run database migrations, optionally fresh and seeded |
db:seed |
run the database seeders |
user:list |
list accounts |
user:create |
create an account |
user:password |
set a password |
user:level |
set a security level |
user:delete |
delete an account |
art:show |
render art in this terminal or to HTML |
art:info |
show an art file's SAUCE record and views |
menu:list |
list menus and check ACS strings and targets |
ssh:keygen |
create SSH host keys and print fingerprints |
make:module |
generate a module class |
make:door |
generate a native door class |
about |
print the board's configuration |
Source: framework/src/Console/Commands. The app defines no commands of its own.
The listing also shows commands that come with the installed Tempest packages (completion:*, container:show, discovery:*, make:config, make:migration, make:model
and other make:* generators, schedule:*, tail:logs, generate:typescript-types). Carrier
doesn't document them; discovery:generate is covered in deployment. The
listing prints Tempest's description for about ("Shows insights about the application"), but
running php carrier about runs Carrier's command.
serve
Start every listener in ServersConfig and run until SIGINT or SIGTERM.
serve [telnet=null] [ssh=null] [rlogin=null] [web=null] [--quiet=false]| Parameter | Type | Default | Meaning |
|---|---|---|---|
telnet |
?string |
null (use config) |
telnet address, e.g. 0.0.0.0:2323, or off |
ssh |
?string |
null |
SSH address, or off |
rlogin |
?string |
null |
rlogin address, or off |
web |
?string |
null |
HTTP and websocket address, or off |
--quiet |
bool |
false |
log only to storage/logs/carrier.log, not to the console |
off, no, false and 0 (any case) disable a listener. A value given here overrides
ServersConfig for this run only. Without overrides, the addresses come from
app/Config/servers.config.php (TELNET_ADDRESS, SSH_ADDRESS, RLOGIN_ADDRESS,
WEB_ADDRESS; see configuration).
php carrier serve
php carrier serve --telnet=127.0.0.1:2323 --ssh=off --rlogin=off --web=127.0.0.1:8080 --quietOn start it prints the board name, Carrier version, PHP version and node count, then logs one
<name> listening on <address> line per listener. On a signal it tells every caller the system
is going down and disconnects them. Source: ServeCommand.php,
ServerManager.php.
install
Copy one of the framework's kits into the project, or run an installer a package or the board
declares with #[Installer].
install [name] [--force]| Argument | Meaning |
|---|---|
name |
board, web, games, amber, or another installer's name. Without it, the command lists them all and marks the installed kits. |
--force |
Replace files that already exist. Without it, they're kept and listed. |
php carrier install gamesA kit that needs board installs it first if app/Menus.php is missing. Carrier's install
takes over the name of Tempest's built-in command. It refuses to run in the Carrier repository
itself. See kits.
migrate
Run every pending MigratesUp migration (the framework's users table and the app's
migrations in app/Migrations).
migrate [--fresh=false] [--seed=false]| Parameter | Type | Default | Meaning |
|---|---|---|---|
--fresh |
bool |
false |
drop every table first. Destroys all data. |
--seed |
bool |
false |
run the seeders afterwards (same as db:seed) |
php carrier migrate
php carrier migrate --fresh --seedPrints Migrated <name> for each migration run and Dropped <table> for each table dropped.
Source: MigrateCommand.php.
db:seed
Run every discovered DatabaseSeeder (Tempest's SeederConfig). The app's
BoardSeeder creates conferences and areas, a welcome
thread, a poll and oneliners, skipping whatever already exists.
php carrier db:seedPrints Seeded <class> per seeder.
user:list
php carrier user:listOne line per account in id order: id, handle, security level, level name, calls, last login
(never if none).
user:create
user:create <handle> [--sysop=false] [level=null] [password=null]| Parameter | Type | Default | Meaning |
|---|---|---|---|
handle |
string |
required | the account's handle |
--sysop |
bool |
false |
give the account BbsConfig::$sysopLevel (default 255) and the groups users and sysops |
level |
?int |
BbsConfig::$newUserLevel (default 20) |
security level, ignored with --sysop |
password |
?string |
prompt | the password; without it you are prompted |
The prompted password must be at least 4 characters. The command fails if the handle exists.
Accounts made without --sysop get the group users.
php carrier user:create Sysop --sysop
php carrier user:create Ghost --level=50 --password=hunter22user:password
user:password <handle> [password=null]Sets the password; prompts when password is omitted. Fails if there is no such user.
php carrier user:password Ghostuser:level
user:level <handle> <level>Sets the security level, clamped to 0–255.
php carrier user:level Ghost 100user:delete
user:delete <handle>Asks for confirmation, then deletes the account.
php carrier user:delete Ghostart:show
Render theme art or an art file in your own terminal, or write it as HTML.
art:show <art> [theme=default] [html=null] [baud=0]| Parameter | Type | Default | Meaning |
|---|---|---|---|
art |
string |
required | a file path, or an art name looked up in the theme (e.g. matrix) |
theme |
string |
default |
theme to look the name up in |
html |
?string |
null |
write an HTML page to this path instead of printing |
baud |
int |
0 |
emulate this line speed in bps; 0 is full speed |
Board display codes %BN, %SN, %BT and %BL are filled from BbsConfig. Colours are sent
in the mode ColorMode::detect() picks from TERM and COLORTERM (see art).
php carrier art:show matrix
php carrier art:show main --theme=amber --baud=2400
php carrier art:show resources/themes/default/art/logon.ans --html=logon.htmlSource: ArtCommand.php.
art:info
art:info <file>Prints the SAUCE record (title, author, group, date, size, data/file type, iCE colours, font,
comments) or No SAUCE record., then the rendered size and every view placeholder
(%ET1, %VM1 …) with its column, row and width.
php carrier art:info resources/themes/default/art/matrix.ansmenu:list
php carrier menu:listPrints every menu with its title, ACS and art, its on-enter steps and forward target, and each option's key, label, action and ACS string. Then it checks the menus and prints an error per problem found:
- an ACS string that does not parse, or uses an unknown code
- a
goto()to a menu that is not defined - a
module()class that does not exist
It exits 1 if it finds any problem, so it works as a CI check. Source:
MenuCommand.php.
ssh:keygen
ssh:keygen [--force=false]Creates the SSH host keys in storage/keys/ (BbsConfig::storage('keys')) when
ssh_host_ed25519 is missing, or always with --force, then prints each key's fingerprint.
serve also creates missing keys on its first start, so the command is mainly for printing
fingerprints and for rotating keys.
| File | Key | Mode |
|---|---|---|
storage/keys/ssh_host_ed25519 |
Ed25519 secret key, base64 | 0600 |
storage/keys/ssh_host_rsa.pem |
RSA private key, PEM | 0600 |
The directory is created 0700. --force replaces both keys; callers who saved the old
fingerprint get a host-key warning. Source: HostKeys.php.
make:module
make:module <name>Writes app/Modules/<Class>.php, where <Class> is name with - and _ removed and words
capitalised (rumor-mill → RumorMill). It refuses to overwrite an existing file. The
generated class extends Carrier\Menu\Module, sets $activity, and its handle() prints a
header and a greeting, pauses, and returns null. It prints the line to add it to a menu:
php carrier make:module rumor-mill
# Created app/Modules/RumorMill.php
# Add it to a menu in app/Menus.php: $menu->option('X', 'RumorMill')->module(Modules\RumorMill::class);See modules.
make:door
make:door <name>Writes app/Doors/<Class>.php: a Module marked #[Door('<class lowercased>', title: '<Class>')]
that echoes keys until Q or Escape. DoorDiscovery finds it, so it shows up in door menus
without registration.
php carrier make:door star-trader
# Created app/Doors/StarTrader.phpSee doors.
about
php carrier aboutPrints the board name, sysop, Carrier and PHP version, node count, theme, start menu, number
of menus, door names, every registered display code, and each listener's address (or off).