### Start OFBiz Application Source: https://github.com/apache/ofbiz-framework/blob/trunk/applications/commonext/src/docs/asciidoc/ofbiz-setup.adoc Starts the OFBiz application after data loading and user creation. Access the OFBiz Setup application via your browser. ```bash gradlew ofbiz ``` -------------------------------- ### Install a Plugin Source: https://github.com/apache/ofbiz-framework/blob/trunk/README.md Installs a local plugin by placing its extracted directory into the /plugins folder and running the install task. This executes the 'install' task in the plugin's build.gradle if it exists. ```bash gradlew installPlugin -PpluginId=myplugin ``` -------------------------------- ### Start OFBiz Server Gracefully Source: https://github.com/apache/ofbiz-framework/blob/trunk/README.md Initiates a graceful startup of the OFBiz server. The --start argument is default for the 'ofbiz' task. ```gradle gradlew "ofbiz --start" ``` -------------------------------- ### Start OFBiz Server in Background (Default) Source: https://github.com/apache/ofbiz-framework/blob/trunk/README.md Starts the OFBiz server in a background forked process. Output is redirected to runtime/logs/console.log. ```gradle gradlew "ofbizBackground --start" ``` ```gradle gradlew ofbizBackground ``` -------------------------------- ### Pull and Install a Plugin with Dependencies Source: https://github.com/apache/ofbiz-framework/blob/trunk/README.md Downloads a specified plugin and all its dependencies, installing them in order. Use this to automatically manage plugin installations. ```bash gradlew pullPlugin -PdependencyId="org.apache.ofbiz.plugin:myplugin:0.1.0" ``` -------------------------------- ### Start OFBiz Server in Background Source: https://github.com/apache/ofbiz-framework/blob/trunk/README.md Starts the OFBiz server in a background forked process. Output is redirected to runtime/logs/console.log. Requires quoting. ```gradle gradlew "ofbizBackground --start --portoffset 10000" ``` -------------------------------- ### Properties File Example Source: https://github.com/apache/ofbiz-framework/blob/trunk/docs/asciidoc/documentation_guidelines.adoc Basic syntax for a properties file. ```properties foo = bar ``` -------------------------------- ### Start OFBiz Application on Unix-like OS Source: https://github.com/apache/ofbiz-framework/blob/trunk/README.md Run this command on Unix-like systems to start the Apache OFBiz application. The progress indicator will not end as long as OFBiz is running. ```bash ./gradlew ofbiz ``` -------------------------------- ### Start OFBiz Server on Offset Port Source: https://github.com/apache/ofbiz-framework/blob/trunk/README.md Starts the OFBiz server with a network port offset by the specified range. Requires quoting. ```gradle gradlew "ofbiz --start --portoffset 10000" ``` -------------------------------- ### Setup Eclipse Project for OFBiz Source: https://github.com/apache/ofbiz-framework/blob/trunk/README.md Generates necessary .classpath and .project files for Eclipse and makes external library sources available for viewing. This may take a long time on the first run. ```bash gradlew eclipse ``` -------------------------------- ### CSS Styling Example Source: https://github.com/apache/ofbiz-framework/blob/trunk/docs/asciidoc/documentation_guidelines.adoc Demonstrates Cascading Stylesheet (CSS) formatting for web page styling. ```css body { background: transparent url(/images/ofbiz_logo.png) no-repeat scroll left top; color: #000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: .75em; line-height: 1.5em; padding: 50px 0 0; bgcolor: #ffffcc; } ``` -------------------------------- ### Load All OFBiz Data Source: https://github.com/apache/ofbiz-framework/blob/trunk/README.md Loads all data sets for initial setup. Use with caution in production environments as it can overwrite existing data. ```bash gradlew loadAll ``` ```bash gradlew "ofbiz --load-data" ``` -------------------------------- ### Run the OFBiz Docker Container with Demo Data Source: https://github.com/apache/ofbiz-framework/blob/trunk/DOCKER.adoc Starts an OFBiz container, publishes port 8443, loads demo data, and runs the OFBiz server. Access OFBiz at https://localhost:8443/partymgr after startup. ```shell script docker run -it -e OFBIZ_DATA_LOAD=demo --name ofbiz-docker -p 8443:8443 ofbiz-docker ``` -------------------------------- ### Document Configuration for Standalone Guides Source: https://github.com/apache/ofbiz-framework/blob/trunk/docs/asciidoc/documentation_guidelines.adoc This configuration should be included in standalone documents to ensure consistent output generation. It sets global definitions, image directory, and PDF-specific rendering options. ```asciidoc The Apache OFBiz Project :imagesdir: ./images ifdef::backend-pdf[] :title-logo-image: image::OFBiz-Logo.svg[Apache OFBiz Logo, pdfwidth=4.25in, align=center] :source-highlighter: rouge endif::[] ``` -------------------------------- ### Build the OFBiz Runtime Container Image (Explicit Target) Source: https://github.com/apache/ofbiz-framework/blob/trunk/DOCKER.adoc Explicitly builds the OFBiz runtime container image using the 'runtime' target. This image contains an uninitialized OFBiz installation. ```shell script docker build --target runtime --tag ofbiz-docker . ``` -------------------------------- ### Initialize Gradle Wrapper on Unix-like OS Source: https://github.com/apache/ofbiz-framework/blob/trunk/README.md Use this command on Unix-like systems to download and set up the Gradle wrapper. ```bash ./gradle/init-gradle-wrapper.sh ``` -------------------------------- ### Initialize Gradle Wrapper on Windows Source: https://github.com/apache/ofbiz-framework/blob/trunk/README.md Use this command on Windows to download and set up the Gradle wrapper. Ensure PowerShell is configured correctly if you encounter errors. ```bash init-gradle-wrapper ``` -------------------------------- ### Display OFBiz Server Help Source: https://github.com/apache/ofbiz-framework/blob/trunk/README.md Shows all available commands to control the OFBiz server. OFBiz server commands require quoting. ```gradle gradlew "ofbiz --help" ``` -------------------------------- ### JSON Data Example Source: https://github.com/apache/ofbiz-framework/blob/trunk/docs/asciidoc/documentation_guidelines.adoc An example of JSON data structure for representing an item. ```json { "id": 1, "name": "A green door", "price": 12.50, "tags": ["home", "green"] } ``` -------------------------------- ### Start OFBiz Server in Remote Debug Mode Source: https://github.com/apache/ofbiz-framework/blob/trunk/README.md Starts OFBiz in remote debug mode, waiting for a debugger to connect on port 5005. ```gradle gradlew ofbiz --debug-jvm ``` -------------------------------- ### Build the OFBiz Demo Container Image Source: https://github.com/apache/ofbiz-framework/blob/trunk/DOCKER.adoc Builds a container image pre-loaded with demonstration data using the 'demo' target. Useful for frequent container restarts where demo data loading time is noticeable. ```shell script docker build --target demo --tag ofbiz-docker . ``` -------------------------------- ### HTML Document Example Source: https://github.com/apache/ofbiz-framework/blob/trunk/docs/asciidoc/documentation_guidelines.adoc Basic structure of an HTML document. ```html