The first piece is to manipulate a powerful storage system. This storage engine will give us an abstraction between “My object” and “How they are stored and persisted”. This means: from our console code (the command interpreter itself)
- Clone the repository
$ git clone https://github.com/Salma-Mahmoudd/AirBnB_clone.git
- Then start the console by running the following command:
$ ./console.py
The console works both in interactive mode and non-interactive mode. To start the console in interactive mode, run the following command:
$ ./console.py
- to create a new instance:
create <class name>
- to delete an instance write
destroy <class name> <class id>
- to show the string representation of an instance
show <class name> <class id>
- to update an instance
update <class name> <id> <attribute name> <attribute value>