This is a command-line interpreter for a simplified version of AirBnB. It allows users to manage properties, amenities, and user data through a shell interface.
To start the command interpreter, run ./console.py
in your terminal.
Once the interpreter is running, you can use various commands to manage properties, amenities, and users. Here are some examples:
create <class>
: Create a new instance of a class.show <class> <id>
: Show details of a specific instance.destroy <class> <id>
: Delete a specific instance.all <class>
: Show all instances of a class, or all instances if no class is specified.update <class> <id> <attribute> <value>
: Update an attribute of a specific instance.
For a full list of commands, type help
in the interpreter.
$ ./console.py