growerp 1.11.6
growerp: ^1.11.6 copied to clipboard
GrowERP installation and tools such as import and export.
GrowERP CLI Utilities #
A command line utility for GrowERP installation, import/export, and package management.
Installation #
Activate local version:
dart pub global activate --source path ~/growerp/flutter/packages/growerp
Activate public version:
dart pub global activate growerp
Subcommands #
| Command | Description |
|---|---|
help |
Display help information for all commands |
install |
Install the complete GrowERP system (frontend, backend, chat) |
import |
Import CSV data files into a GrowERP system |
export |
Export company data to CSV files (under development) |
finalize |
Finalize the import process by completing documents and periods |
createPackage |
Create a new GrowERP package with Flutter frontend and Moqui backend |
exportPackage |
Export a GrowERP package as a zip archive |
importPackage |
Import a GrowERP package from a zip archive |
help #
Display detailed help information for all available commands.
growerp help
install #
Installs the complete GrowERP system:
- Clone the repository from GitHub into the local
~/growerpdirectory - Start the backend and chat server
- Activate the dart melos global command
- Build the Flutter system
- The 'admin' package can now be started with
flutter run
growerp install
Flags:
-dev— Use the development branch instead of master-d <path>— Target directory (default:~/growerp)
import #
Upload data (ledger/glAccount, customers, products, etc.) from CSV files into GrowERP.
growerp import -i <inputDir> -u <email> -p <password> [options]
Parameters:
| Flag | Description |
|---|---|
-i <path> |
Input file or directory containing CSV files and images |
-u <email> |
User email address for login |
-p <password> |
Password for login |
-url <url> |
Backend URL (default: localhost) |
-n <name> |
New company name |
-c <currency> |
Currency ID (e.g., USD, EUR) |
-ft <fileType> |
Resume from this file type |
-fn <filename> |
Resume from this filename |
-sft <fileType> |
Stop just before this file type |
-t <seconds> |
Receive timeout (default: 600 seconds) |
Example:
growerp import -i growerpOutput -u admin@example.com -p secret123 -n "My Company" -c USD
export #
Export company-related information to CSV files. (Under development)
growerp export -u <email> -p <password> [options]
Parameters:
| Flag | Description |
|---|---|
-u <email> |
User email address for login |
-p <password> |
Password for login |
-o <dir> |
Output directory name (default: growerpCsv) |
-ft <fileType> |
Export only this file type |
-url <url> |
Backend URL |
finalize #
Finalize the import process by:
- Complete all documents posted in the ledger
- Complete orders with completed invoices
- Approve invoices and complete payments
- Process shipments
- Close past time periods
growerp finalize -u <email> -p <password> [options]
Parameters:
| Flag | Description |
|---|---|
-u <email> |
User email address for login |
-p <password> |
Password for login |
-y <YYYY> |
Close a specific fiscal year (if missing, closes all except current year) |
-url <url> |
Backend URL |
createPackage #
Create a new GrowERP package with both Flutter frontend and Moqui backend components.
growerp createPackage <name> [options]
Parameters:
| Argument/Flag | Description |
|---|---|
<name> |
Package name (without growerp_ prefix) |
-d <path> |
Target directory (default: ~/growerp) |
Creates:
flutter/packages/growerp_<name>/— Flutter frontend packagemoqui/runtime/component/growerp-<name>/— Moqui backend component
Example:
growerp createPackage inventory
exportPackage #
Export an existing GrowERP package as a zip archive for distribution or backup.
growerp exportPackage <packageName> [options]
Parameters:
| Argument/Flag | Description |
|---|---|
<packageName> |
Full package name (e.g., growerp_inventory) |
-o <dir> |
Output directory for the zip file (default: current directory) |
Example:
growerp exportPackage growerp_inventory -o ~/backups
importPackage #
Import a GrowERP package from a zip archive. Automatically adds the package to melos.yaml.
growerp importPackage <archivePath>
Parameters:
| Argument | Description |
|---|---|
<archivePath> |
Path to the zip file to import |
Example:
growerp importPackage ~/downloads/growerp_inventory.zip
convertToCsv Command #
A separate utility to convert exported CSV/ODS/XLSX files from other systems to the GrowERP CSV format.
convertToCsv <inputDir> [fileType]
Parameters:
<inputDir>— Directory containing the source files[fileType]— Optional: specific file type to convert
Example:
convertToCsv inputDir transaction
Creates a growerpOutput directory with the converted files.
Complete Conversion Workflow #
- Export files from the old system and place them in a single directory
- Create images directory (if importing images): create an
images/folder andimages.csvfile - Configure conversion rules in the
convert_to_csvprogram:- Specify file names in
getFileNamesfunction - Specify file-wide changes in
convertFilefunction - Specify column mappings in
convertRowfunction
- Specify file names in
- Convert the files:
dart pub global activate --source path ~/growerp/flutter/packages/growerp dart pub global run growerp:convertToCsv inputDir -f fileType -start yyyy/mm/dd -end yyyy/mm/dd - Import into GrowERP:
growerp import -i growerpOutput -u username -p password - Finalize the import:
growerp finalize -u username -p password
Pre-Import Checklist #
Before running import:
- Pause the 'recalculate account summaries' job
Before running finalize:
- Disable accounting SECA by modifying files as listed in initstart.sh under 'DISABLE_SECA'
After finalize:
- Re-enable the recalculate job
- Restore SECA files