Layr8 command line interface
Non-Interactive Mode
In non-interactive mode, the l8 command is used to execute commands. The command is specified as the first parameter, and the subcommand is specified as the second parameter. All other parameters are passed to the subcommand.
l8 <command> <subcommand> [parameters]
Interactive Mode
In interactive mode, the l8 command is used to start the REPL. The REPL is used to execute commands. The command is specified as the first parameter, and the subcommand is specified as the second parameter. All other parameters are passed to the subcommand.
l8
l8> <command> <subcommand> [parameters]
Examples (non-interactive mode)
Create a Layr8 cluster
l8 cluster up --name cluster1-company --domain layr8.org --host aws --region us-east-1 --zones 2
Examples (interactive mode)
Create a Layr8 cluster
l8> cluster up --name cluster1-company --domain layr8.org --host aws --region us-east-1 --zones 2
Default Values
Default values can be set for most parameters. This allows for a more streamlined command line experience. The default values are stored in the ~/.layr8/defaults.yaml file. The default values can be set using the defaults set command.
Examples
Set default values for a Layr8 cluster (non-interactive mode)
l8 defaults set --domain layr8.org --host aws --region us-east-1 --zones 2
Get default values for a Layr8 cluster (non-interactive mode)
l8 defaults get
Set default values for a Layr8 cluster (interactive mode)
l8> defaults set --domain layr8.org --host aws --region us-east-1 --zones 2
Get default values for a Layr8 cluster (interactive mode)
l8> defaults get
l8> defaults get domain host --format json