The Zephir Command Line

Once Zephir is installed, you’ll use the zephir command to manage the Zephir compiler for your projects. This chapter, and the ones following, are about the command itself, how to use it, and how to understand the things it outputs.

As of Zephir 0.11.7, the compiler makes use of stderr for displaying error messages. This means you can handle error outputs separately from normal ones, like so:

zephir generate 2> errors.log 1> /dev/null

  • zephir api
  • zephir build
  • zephir clean
  • zephir compile
  • zephir fullclean
  • zephir generate
  • zephir 帮助
  • zephir init
  • zephir install
  • zephir list
  • zephir stubs