Last.Backend CLI

The LB CLI exposes commands for managing your services, as well as lower level tools to interact with each component of your system. This topic guides you through getting started with the CLI, including installation and logging in to create your first app.

Account

Create new account

~$ lb signup

Username: spacelavr
Email: lb@lastbackend.com
Password:

Registration completed successfully

Login to account

~$ lb login

Login: spacelavr
Password:

Login successfully

Get account information

~$ lb whoami

Username:  spacelavr
Name:  Sergey
Company:  Last.Backend
Main email:  lb@lastbackend.com
Balance:  1024

Logout

~$ lb logout

Logout successfully

Project

Creating new project

~$ lb project create --name awesome

Project `awesome` is created

Get current or some project info

~$ lb project info --name awesome

 NAME         awesome
 OWNER        spacelavr
 DESCRIPTION  awesome project for awesome ideas
 NAMESPACES   development;

Project list

~$ lb project list

 NAME          DESCRIPTION  OWNER      NAMESPACES
 awesome                    spacelavr  development;
 * no-awesome               spacelavr  development;

Select project as a current

~$ lb project select --name awesome

The project `awesome` was selected as the current

Update project description

~$ lb project update --name awesome --desc so_good

Project `awesome` is succesfully updated

Remove project

~$ lb project remove --name no-awesome

Project `no-awesome` is successfully removed

Namespace

Create namespace

~$ lb namespace create --name master

Namespace `master` is created

Get current or some project info

~$ lb namespace info --name master

 NAME         master
 DESCRIPTION  master namespace
 ENDPOINT     https://lastbackend.io
 SUFFIX       lb

Namespace list

~$ lb namespace list

 NAME         DESCRIPTION  ENDPOINT         SUFFIX
 development  some desc    https://lb.com   lb
 * master     some desc    https://lb.com   lb

Select namespace

~$ lb namespace select --name development

The namespace `development` was selected as the current

Remove namespace

~$ lb namespace remove --name master

Namespace `master` is successfully removed