The projects implements the first set of concepts in the AirBnB clone web application. We are concerned with creating our data model and then managing and storing objects via a custom-built command line interpreter called "console."
git clone https://github.com/jasonmichaelhancock/AirBnB_clone.git
cd AirBnB_clone
Interactive Mode
$ ./console.py
(hbnb) help
Documented commands (type help <topic>):
========================================
EOF all create destroy help quit show update
(hbnb)
(hbnb)
(hbnb) quit
$
Non-Interactive Mode
echo "help" | ./console.py
(hbnb)
Documented commands (type help <topic>):
========================================
EOF all create destroy help quit show update
$
Command | Syntax | Summary |
---|---|---|
all | all <class> |
displays all objects in storage, or in specified class |
create | create <class> |
creates new instance of specified Class |
destroy | destroy <class> <id> |
deletes specified instance |
show | show <class> <id> |
displays instance of specified class with all attributes |
update | update <class> <id> <attribute> <attribute_value> |
updates instance attribute |
help | help |
displays available commands |
EOF | EOF |
exits console |
quit | quit |
exits console |