SYNOPSIS
bastille console [-ax] TARGET [USER]

DESCRIPTION
The bastille console sub-command will enter a jails shell. If a user is given, it will enter as that user.

EXAMPLES
Console into myjail:
# bastille console myjail

Console into myjail as bob:
# bastille console myjail bob

Console into a stopped jail as bob:
# bastille console -a myjail bob

#ManpageMonday #BastilleBSD #FreeBSD

SYNOPSIS
bastille config [-x] set|add PROPERTY [VALUE]
bastille config [-x] get|remove PROPERTY

DESCRIPTION
The bastille config sub-command will modify targeted jail(s) configuration and get, set, add or remove properties.

EXAMPLES
Set allow.mlock inside myjail:
# bastille config myjail set allow.mlock 1

Set to priority value of myjail:
# bastille config myjail set priority 10

Set the boot value:
# bastille config myjail set boot off

#ManpageMonday #BastilleBSD #FreeBSD

SYNOPSIS
bastille template [-ax] TARGET|convert TEMPLATE

DESCRIPTION
The bastille template sub-command will apply the specified TEMPLATE to TARGET.

-a, --auto : Auto mode. Start/stop jail(s) if required.

-x, --debug : Enable debug mode.

EXAMPLES
Apply www/nginx to myjail:
bastille template myjail www/nginx

#ManpageMonday #BastilleBSD #FreeBSD

SYNOPSIS
bastille tags [-x] TARGET add|delete tag1,tag2
bastille tags [-x] TARGET list [tag]

DESCRIPTION
The bastille tags sub-command add, remove and list tags for jails.

EXAMPLES
Add 'prod' tag to myjail and yourjail:
# bastille tags 'myjail yourjail' add prod

Show jails with the tag 'web':
# bastille tags ALL list web

#ManpageMonday #BastilleBSD #FreeBSD

SYNOPSIS
bastille setup [-ax]
bastille setup [-ax]
bridge|linux|loopback|netgraph|firewall|shared|storage|vnet

DESCRIPTION
The bastille setup sub-command will attempt to configure different options for your environment.

#ManpageMonday #BastilleBSD #FreeBSD

NAME
bastille etcupdate – Update /etc for jail(s).

SYNOPSIS
bastille etcupdate [-fx] bootstrap RELEASE
bastille etcupdate [-dx] TARGET update RELEASE
bastille etcupdate [-x] TARGET diff|resolve

DESCRIPTION
The bastille etcupdate sub-command will bootstrap a tarball from RELEASE which can then be used to update the contents of /etc inside jails after performing an upgrade.

#ManpageMonday #BastilleBSD #FreeBSD

SYNOPSIS
bastille clone [-alx] TARGET NEW_NAME IP

The bastille clone sub-command will create an exact duplicate of the targeted jail, giving it the specified NEW_NAME and IP address.

EXAMPLES
Clone myjail to newjail:
# bastille clone myjail newjail 10.23.3.4/24

Clone myjail to newjail with DHCP (VNET only):
# bastille clone myjail newjail DHCP

Clone myjail to newjail while running, with debug mode:
# bastille clone -xl myjail newjail 10.23.3.4/24

#ManpageMonday #BastilleBSD #FreeBSD

The bastille convert sub-command will convert a thin jail to a thick jail if only the TARGET argument is given.

If a TARGET and RELEASE is specified, it will convert the jail into a custom release. The jail will remain intact, and you will have a duplicate of it to use a a release base for any new jails.

EXAMPLES
Convert myjail from thin to thick:
# bastille convert myjail

Create myrelease from myjail:
# bastille convert myjail myrelease

#ManpageMonday #BastilleBSD #FreeBSD

NAME
bastille jcp – Copy file(s)/directorie(s) from jail to jail(s).

SYNOPSIS
bastille jcp [-qx] SOURCE_JAIL JAIL_PATH DESTINATION_JAIL JAIL_PATH

DESCRIPTION
The bastille jcp sub-command will copy files and directories from a single jail to any targeted jail(s).

-q, --quiet : Suppress output.

-x, --debug : Enable debug mode.

EXAMPLES
Copy /etc/resolv.conf from myjail to yourjail:
# bastille jcp myjail /etc/resolv.conf yourjail /etc

#ManpageMonday #BastilleBSD #FreeBSD

NAME
bastille rcp – Copy file(s)/directorie(s) from jail to host.

SYNOPSIS
bastille rcp [-qx] TARGET JAIL_PATH HOST_PATH

DESCRIPTION
The bastille rcp sub-command will copy JAIL_PATH to HOST_PATH from inside TARGET.

-q, --quiet : Suppress output.

-x, --debug : Enable debug mode.

EXAMPLES
Copy /etc/resolv.conf.custom to host:
# bastille rcp myjail /etc/resolv.custom /jailstuff/etc

Copy /etc to host quietly:
# bastille rcp -q myjail /etc /jailstuff/etc

#ManpageMonday #BastilleBSD