"Bench frappe -b" Error

After I install Erpnext. I use command line “bench frappe -b”.

root@auraca-virtual-machine:~# bench frappe -b
frappe app is not installed. Run the following command to install frappe
bench get-app frappe https://github.com/frappe/frappe.git
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/frappe/bench-repo/bench/cli.py", line 42, in cli
    return old_frappe_cli()
  File "/home/frappe/bench-repo/bench/cli.py", line 94, in old_frappe_cli
    os.execv(f, [f] + sys.argv[2:])
OSError: [Errno 2] No such file or directory

Thank.

Seems you are using version 5. There is no bench frappe, its only bench. Use

bench build

How to build Code ?

@JackLe

What code do you want to build? Python is interpreted, you don’t need a build. Javascript is minified using the build system.