Technical tools ·
Mini course: drive the ERP by typing with the command console (and AI)
Some tasks are faster typed than clicked: adding a product, checking how much stock is left, preparing a quotation or doing a quick sum. The ERPSqlite command console is a line of text at the bottom of the window: type “create product DEMO 100 REF12121”, press Enter and the product exists. In this mini course you will learn it in eight short lessons, with examples you can copy as they are, and finish with some exercises to practise.

Lesson 1: open the console without stopping work
The console opens with the terminal button at the bottom right of the home screen. It appears as a panel docked at the bottom, like a code editor's terminal: the whole ERP stays usable above it.
The panel has three sizes: minimized (just a thin bar), normal and maximized, with their buttons in the header. Minimizing or closing it loses nothing: what you typed and the history are still there when you open it again, even after switching apps or tabs.
- Only administrators and users of the “Command console” group see it (Settings → Users → Groups).
- Everything the console does respects your permissions: if an app is read-only for you, the console cannot change it either.

Lesson 2: help and autocomplete
Type “help” to see every command with a one-line explanation. “help create” shows the create commands with an example of each. Verbs work in English and Spanish: create or crear, list or listar, show or ver, update or cambiar.
As you type, the console suggests how to continue: verbs, objects, fields and also real data from your database, such as your product references, customer names or order numbers. The suggestion appears greyed behind the cursor.
- Tab, the → arrow or Enter complete the suggestion; a second Enter runs it.
- ↑ and ↓ pick another suggestion from the list; without suggestions, they browse the commands you already typed.
- Texts with spaces go in quotes: "Obras Sur", "Red chair".
- Fields are written as key=value: price=45, email=ana@company.com.

Lesson 3: create with one line
The order is always verb, object and data. The usual data can be written straight away, without field names; the rest, as key=value.
- A product with price and reference: create product DEMO 100 REF12121
- A service with a cost: create product "Technician hour" 40 type=service cost=25
- A customer with email and phone: create contact "Obras Sur" obras@sur.es 600123456 customer
- A vendor: create contact "Almacenes Norte" vendor
- A CRM opportunity: create lead "Shop refit" 12000 contact="Obras Sur"
- A task with a deadline: create task "Review drawings" project="Obra Sur" deadline=2026-11-15
- A quick note: create note "Call the supplier on Monday"

Lesson 4: look things up without opening screens
You do not need the menu to look at data. Lists come out as a table in the console itself and can be filtered with a text.
- list products chair: products with “chair” in their name, reference or barcode.
- list contacts, list leads, list tasks, list sales, list invoices… with limit=50 to see more rows.
- show product REF12121: all its data and the quantity on hand.
- show sale S00012: the order with its lines.
- stock REF12121: the product's stock.
- count products: how many active products there are.

Lesson 5: change and adjust
Products and contacts are changed with update and the field to change. They are found by id, reference, barcode, name or email; if the text matches several, the console shows them and asks for the id.
- Raise a price: update product REF12121 price=120
- Change the cost and reference: update product DEMO cost=70 ref=DEMO-01
- Set a customer's phone: update contact "Obras Sur" phone=600999888
- Set the stock after a count: stock REF12121 50
- Remove a product from the catalogue: archive product REF12121


Lesson 6: a whole sale from start to finish
This is the flow that saves most time. Order lines are written as product:quantity and, for another price, @price. The product is given by its reference, barcode or name.
- Quotation: create sale "Obras Sur" REF12121:3 SIL-1:2@40
- The console answers with its number (for example S00012). Confirm it: confirm sale S00012 (the delivery is created).
- Invoice it: invoice sale S00012 (it creates the draft invoice and tells you its id).
- Validate the invoice: post invoice 15
- Buying works the same: create purchase "Almacenes Norte" REF12121:10@60, then confirm purchase and invoice purchase.

Lesson 7: the calculator
Any operation you type is calculated at once, without commands: add, subtract, multiply, divide, powers and brackets. Decimals can use a comma and the previous result is reused with “ans”.
- 1200*1,21 → 1452 (price with VAT).
- 1200*21% → 252 (just the VAT).
- (350+120)/3 → 156,666667.
- ans*2 → twice the last result.
- sqrt(16)+2^3 → 12. round, abs, sin, cos and tan (in degrees) work too.
- To be explicit: calc 100-250 or = 10/4.

Lesson 8: ask the AI
With “ai” in front you can ask in your own words. The AI knows every console command: when it needs data (whether a customer exists, a product's price), it looks it up first, gets the answer and then acts. You see every command it runs and its result, so you always know what it did.
The AI works with your permissions and remembers the last questions of the conversation, so you can go on with “now confirm it”. It uses the AI integration configured in the ERP assistant.
- ai create the product Red chair at 45 with reference SIL-1
- ai make Obras Sur a quotation for 3 red chairs and 2 DEMO
- ai how much stock of REF12121 is left and what is its price?
- ai now confirm it

Cheat sheet and exercises
To go faster, open apps from the console by name or transaction code: open Sales or open V01. The console minimizes and the app opens above.
Practise these exercises in a demo database (Settings → Databases → New database, with demo data):
- Create a product “Oak table” at 320 with reference MESA-1 and check it with show product MESA-1.
- Set its stock to 12 and check it with stock MESA-1.
- Create the customer “Interiores Luz” and make a quotation for 2 tables 10% off: first calculate 320*0,9 and use @288.
- Confirm the order, invoice it and validate the invoice.
- Ask the AI: “ai how many tables are left and how much have I invoiced to Interiores Luz?”.

Frequently asked questions
Who can use the console?
Administrators and users of the “Command console” group. Assign it in Settings → Users, Groups tab (or in a profile). Others do not see the button.
Does the console bypass permissions?
No. Every command runs as the signed-in user: if an app is read-only or not accessible, the console cannot change it either.
Do I need English?
No. Verbs and objects can be written in Spanish too, and with “ai” you can ask for anything in your own words.
Does the console block the rest of the ERP?
No. It is a panel docked at the bottom: the ERP stays usable above. You can minimize it to a bar, maximize it or close it, and it keeps what you typed.
What exactly does the AI do?
It turns your request into console commands, looks up the data it needs and runs the changes, showing you every command and its result. It does nothing you could not do by typing those commands.
Can I undo what I did?
What the console creates are normal records: correct or archive them as usual, from their app or with update and archive.