Use the Bitnami Magento CLI tool
Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.
The Bitnami Magento Stack uses the file system ownership for one user approach.
In order to solve permissions and ownership issues, Bitnami has created the magento-cli tool. This can replace the regular magento command-line interface. To use it, execute a Magento command as shown below. Remember to replace the YOUR_MAGENTO_COMMAND placeholder with the command to be executed.
Linux and macOS
$ cd installdir/apps/magento/htdocs/
$ sudo bin/magento-cli YOUR_MAGENTO_COMMAND
Windows
$ cd installdir/apps/magento/htdocs/
$ php .\bin\magento YOUR_MAGENTO_COMMAND
Watch the following video to learn how to setup and use the Bitnami magento-cli Tool: