Command Line Operation¶
Running Arelle on the Command Line¶
Method or System |
Command |
|---|---|
Python source code |
|
Windows x64 or 32 bit |
|
MacOS App |
|
Linux/Unix |
|
Arguments¶
General Arguments¶
Flag |
Description |
|---|---|
|
Show product version, copyright, and license. |
|
Prints help message and exits |
|
Display Arelle’s version number and exit |
|
Output system diagnostics information |
|
Show Arelle’s config and cache directory and host OS environment parameters. |
Input File Arguments¶
Flag |
Description |
|---|---|
|
|
|
The |
|
The |
|
|
|
|
|
Saves the versioning report (with the diff flag) to the specified |
|
Load XBRL taxonomy packages. Option can be repeated to specify multiple packages. Specifying a directory will attempt to load all |
|
Provide non-standard archive manifest file name pattern (e.g., *taxonomyPackage.xml). Uses unix file name pattern matching. Multiple manifest files are supported in archive (such as oasis catalogs). (Replaces search for either .taxonomyPackage.xml or catalog.xml). |
|
Skip loading discovered or schemaLocated files matching pattern (unix-style file name patterns separated by |
Validation Arguments¶
Flag |
Description |
|---|---|
|
Validate the file according to the entry file type. |
|
Select which types of duplicates should trigger warnings ( |
|
Enables OIM validation for XML and iXBRL documents. OIM only formats ( |
|
Specify if base taxonomies should be validated. |
|
Validate testcases against their schemas. |
|
Specify calculations validations: |
|
DEPRECATED - XBRL v2.1 calculation linkbase validation inferring decimals. |
|
DEPRECATED - pre-2010 XBRL v2.1 calculation linkbase validation inferring precision. |
|
DEPRECATED - de-duplication of consistent facts when performing calculation validation, chooses most accurate fact. |
|
Select Edgar Filer Manual (U.S. SEC) disclosure system validation (strict). |
|
Skip walking of calculation tree during EFM validation. |
|
Specify a disclosure system, and enable disclosure system-specific validation. |
|
Select U.K. HMRC disclosure system validation. |
|
Select validation with respect to Unit Type Registry. |
|
Used with |
|
Select validation with respect testcase infosets. |
|
Compare instance facts against the instance loaded from the given URI. |
|
Compare formula output facts against the instance loaded from the given URI. |
|
Ignore detected file type and validate all files as Report Packages. |
|
Ignore detected file type and validate all files as Taxonomy Packages. |
|
Exit with a code indicating validation results: |
|
Specifies parameters for formula and validation (name=value[,name=value]). |
|
Used with |
Output Arguments¶
These arguments can override the system settings for the output options below.
Flag |
Description |
|---|---|
|
provides an |
|
Disable reversing string read order for right to left languages, useful for some locale settings |
|
overrides the standard XBRL 2.1 label role for the labels output by the following file options. |
Output File Arguments¶
The following file options determine the type of file saved by the extension of the file name, the extension may be any of:
.html, .htm, .xhtml, .json or .csv
Flag |
Description |
|---|---|
|
Write DTS tree into |
|
Write fact list into |
|
Columns for fact list file |
|
Write fact table into FILE |
|
Columns for fact table file |
|
Write concepts into |
|
Write presentation linkbase into |
|
Write table linkbase into |
|
Write calculation linkbase into |
|
Write dimensions (of definitions) into |
|
Write anchoring relationships (of definition) linkbase into |
|
Extra columns for relationship file (comma or space separated: Name, Namespace, LocalName, Documentation and References). |
|
Write formulae linkbase into |
|
Store relationships for the |
|
Specifies the file to store the |
|
Write defined role types into |
|
Write defined arcrole types into |
|
Write a test report of validation (of test cases) in specified |
|
Used with |
|
Write a test report of RSS feed processing in specified |
|
Used with |
|
Write rendered table linkbase grid into FILE (format determined by extension: |
|
Save a report loaded from OIM into this file XML file name |
|
When using |
|
Save an instance document with duplicates of the provided type ( |
Logging Arguments¶
Flag |
Description |
|---|---|
|
Write log messages into |
|
Write log file mode, |
|
Specify the Python logger |
|
Minimum |
|
Regular expression filter for logLevel. (E.g., to not match \_-semantic levels, |
|
Regular expression filter for log message code. |
|
Log file text field max length override. |
|
Log reference object properties (default). |
|
Do not log reference object properties. |
|
Truncate XML log file attribute values at length. The default is |
|
Collect profile statistics, such as timing of validation activities and formulae. |
Formula Options¶
Flag |
Description |
|---|---|
|
Specify formula action, If this option is not specified, |
|
Specify formula/assertion IDs to run, separated by a |
|
Specify formula are to be compiled but not executed. |
|
Specify the number of fact aspect combinations to cache during formula evaluations. Negative numbers have no limit. |
|
Maximum number of seconds per variable set evaluation before logging a timeout error. |
|
Maximum number of seconds to run all formula processing before logging a timeout error. |
|
Enable ParamExprResult formula tracing. |
|
Enable ParamInputValue formula tracing. |
|
Truncate interpolated expressions in formula messages to this length. |
|
Enable CallExprSource formula tracing. |
|
Enable CallExprCode formula tracing. |
|
Enable CallExprEval formula tracing. |
|
Enable CallExprResult formula tracing. |
|
Enable VarSetExprEval formula tracing. |
|
Enable VarSetExprResult formula tracing. |
|
Specify showing times of variable set evaluation. |
|
Specify formula tracing. |
|
Specify formula tracing. |
|
Specify formula tracing. |
|
Specify formula tracing. |
|
Specify trace messages for unsatisfied assertions with no formula messages. |
|
Specify formula tracing. |
|
Specify formula tracing. |
|
Specify formula tracing. |
|
Specify formula tracing. |
|
Specify formula tracing. |
|
Specify formula tracing. |
|
Specify formula tracing. |
|
Specify formula tracing. |
Configuration options¶
It is possible to specify options to be defaults for the web server, such as disclosureSystem and validations, but not including file names.
Flag |
Description |
|---|---|
|
Language for user interface (override system settings, such as program messages). Does not save setting. Requires locale country code, e.g. |
|
Log an info message for downloads to the web cache. |
|
Abort process on major error, such as when load is unable to find an entry or discovered file. |
|
Start web server on host:port[:server] for REST and web access. |
|
Skip DTS activities (loading, discovery, validation), useful when an instance needs only to be parsed. |
Internet Connectivity Arguments¶
Flag |
Description |
|---|---|
|
Modify and re-save proxy settings configuration. Enter |
|
Specify internet connectivity: |
|
Specify internet connection timeout in seconds (0 means unlimited). |
|
Specify rechecking for newer cache files |
|
Skip https SSL certificate checking. |
|
Treat |
|
Override the default location of the cache directory. |
|
Specify non-standard http header User-Agent value. |
Configuration Arguments¶
Flag |
Description |
|---|---|
|
Provide a path to a JSON file containing runtime options. These options will be overridden by any command line options provided. |
|
Specify non-standard location for configuration and cache files (overrides environment parameter |
|
Prohibits Arelle from reading and writing a config to the local cache. |
|
Specify plug-in configuration for this invocation. Enter |
Test options¶
Flag |
Description |
|---|---|
|
For testcase results, specify comma separated additional expected errors by test case id. |
|
If any filters are provided, any testcase variation path in the form {testcaseFilepath}:{testcaseVariationId} that doesn’t pass any filter will be skipped. |
|
Capture warning-level messages as validation results. Applies to testcase variations, RSS feed items, and when used with |
|
For testcase results, default configuration is to pass if any expected result is matched ( |
Standard Plugins and Options¶
Many of the plug-ins add command line (in addition to GUI menu) options. For additional detail see the plug-in documentation. A summary of standard plugin options is provided here.
inlineDocumentSet |
Specify an inline XBRL document set by JSON parameter: --file ‘[{“ixDocumentSet”:[{“file”:file1},{“file”:file2}…]}]’ |
|---|---|
|
Provides a file name into which to save an XBRL instance document derived from a loaded manifest (Japan FSA) of a document set of inline documents, or loaded single inline document. |
loadFromExcel |
Load from Excel file |
|---|---|
No command line options, but the |
profileCmdLine |
Profiles command line operation |
|---|---|
|
Specifies file into which to save a Python profiler report of the timings of Arelle Python methods and routines for the operations performed by the other command line functions. |
saveDTS |
Produces a Taxonomy Package. |
|---|---|
|
Specifies a file into which to save a Taxonomy Package representing the loaded DTS. |
saveHtmlEBAtables |
EBA Table Sets. |
|---|---|
|
Specifies an index file (usually index.html) to represent an html page that holds a table of contents to the EBA tables generated for all loaded EBA Table Linkbase tables in the DTS. |
saveLoadableExcel |
Saves an Excel workbook |
|---|---|
|
Saves an Excel workbook representing the DTS (which can be subsequently loaded by loadFromExcel.py plugin. |
saveSKOS |
Saves a SKOS (OMG standard OWL file). |
|---|---|
|
Saves a SKOS (OMG standard OWL file) representing a semantic view of a DTS based on presentation linkbase entries (for US-GAAP, IFRS, and EDInet style taxonomies). |
xbrlDB |
Saves XBRL data to a database. |
|---|---|
|
Store into XBRL DB. Provides connection string: host,[port], user, password, database, [timeout], technology. |
technology can be: |
|
For |
Example storing into postgres database using XBRL-US schema:
arelleCmdLine -f c:\temp\test.rss -v --disclosureSystem efm-pragmatic-all-years --store-to-XBRL-DB "myhost.com,8084,pgUserId,pgPassword,test_db,90,postgres"
Example storing into local MSSQL database using SQLEXPRESS instance:
arelleCmdLine -f c:\temp\test.rss -v --disclosureSystem efm-pragmatic-all-years --store-to-XBRL-DB "localhost\SQLEXPRESS,,sqlLogin,sqlPassword,,90,mssqlSemantic"
Disclosure System Selections¶
Run with --disclosureSystem=help to list the disclosure systems that are available for the currently loaded plugins.