| Cmdlet | CLI equivalent | What it does |
|---|---|---|
Get-Company |
company show |
Gets the company information and integration settings. |
Get-CompanyStatus |
company status |
Gets the synchronization status. |
Get-CompanyLicence |
company licence |
Gets the dkERP licence. |
Test-CompanyConnection |
company connection |
Asks DK Plus whether it can reach the company's dkERP data. |
Sync-Company |
company sync |
Starts a synchronization (-ResetFrom resets the start time). Confirmation: High. |
Invoke-CompanyAction |
company action |
Runs a named dkERP action. Confirmation: High. |
Get-Permission |
permission show |
Shows which modules the current token may use. |
Get-Company
(Get-Company).Information.Company.Name
(Get-CompanyLicence).Settings.ValidUntil
# Is the company ready?
(Get-CompanyStatus).SyncStatus -eq 'Ready'
# A check in a script
if (-not (Test-CompanyConnection -ErrorAction SilentlyContinue)) { throw 'dkERP is not reachable' }
(Get-Permission).Customers
Sync-Company and Invoke-CompanyAction can change remote state. Preview them with -WhatIf; the preview names the connection's host and token source. Which actions exist, and what -Parameters must contain, is defined by dkERP.
Sync-Company -ResetFrom 2026-10-01 -WhatIf
Sync-Company -Confirm:$false
Invoke-CompanyAction -Name RecalcStock -Parameters 'warehouse=1' -Confirm:$false
| Cmdlet | CLI equivalent | What it does |
|---|---|---|
Get-CompanyStringSetting |
company setting string list/get |
Gets one GECTRLS setting or lists settings; -All reads every row and confirms first. |
Set-CompanyStringSetting |
company setting string update |
Updates only the bound value/comment of an existing string setting. Confirmation: Medium. |
Merge-CompanyStringSetting (alias Upsert-CompanyStringSetting) |
company setting string upsert |
Creates a missing string setting or updates an existing one. Confirmation: Medium. |
Get-CompanyNumberSetting |
company setting number list/get |
Gets or lists typed GECTRLN values. |
Set-CompanyNumberSetting |
company setting number update |
Updates bound integer, decimal, and comment values. Confirmation: Medium. |
Get-CompanyNumberSeries |
company setting number-series list/get |
Gets or lists GENUMBER number-series values. |
Set-CompanyNumberSeries |
company setting number-series update |
Updates the current number and/or comment. Confirmation: Medium. |
Get-CompanyStringSetting
Get-CompanyStringSetting -All -Confirm:$false
Get-CompanyStringSetting 'so-comment' | Set-CompanyStringSetting -Value ''
Set-CompanyStringSetting -Key 'so-comment' -Value ''
Upsert-CompanyStringSetting -Key 'so-comment' -Value ''
Get-CompanyNumberSetting -ModifiedSince 2026-10-01 -Take 100
Set-CompanyNumberSetting -Key 'tax-rate' -IntegerValue 42 -DecimalValue 1.25
Get-CompanyNumberSeries -All -Confirm:$false
Set-CompanyNumberSeries -Key 'Invoice' -Value 9001
Lists return 100 rows by default. -All confirms because it may read a large table, then uses RECORDMODIFIED cursor batches internally. Updates send KEY plus only bound values: omitted parameters and $null are unchanged, '' clears text, and zero is sent. Record IDs, timestamps, creators, and modifiers are never written. String upsert is not atomic; it reads by key and then creates or updates.
| Cmdlet | CLI equivalent | What it does |
|---|---|---|
Get-TableRecord |
table records, table record |
Reads records of a dkERP table with the fields you name, or one record with -Query. |
Get-TableField |
table fields |
Lists the field names of a table. |
Get-TableChange |
table changes |
Counts changed records. |
Get-TableDeletedRecord |
table deleted |
Lists deleted records. |
New-TableRecord |
table create |
Creates a record from a hashtable (-Value) or a flat JSON file (-Path). Confirmation: Medium. |
Update-TableRecord |
table update |
Updates the record named by -Key (a dictionary of key column names and values) from a hashtable or a JSON file. Confirmation: Medium. |
Remove-TableRecord |
table delete |
Deletes the record whose -Key field has the given -Value. Confirmation: High. |
Get-TableField ARCUST
Get-TableRecord ARCUST -Fields Number,Name -Take 10
Get-TableRecord ARCUST -Fields Number,Name -Key Group -Value 01 -ModifiedSince 2026-10-01
Get-TableRecord ARCUST -Fields Number,Name -Query 'Number=100'
Get-TableChange ARCUST -ModifiedSince 2026-10-01
Get-TableDeletedRecord ARCUST -From 2026-10-01 -Take 500
Each record is an object with one property per requested field. Every value is the text DK Plus stores. The table read cmdlets are bounded by -Take (default 100) and have no -All.
The write cmdlets use the generic table endpoints, like devop-dk table create, update, and delete. Values are dkERP text: every value must be a string, so a number, boolean, $null, or nested value is rejected (the error names the field) instead of being converted. Field names are case-insensitive and a duplicate is rejected. Everything is checked before any request is sent, writes are never retried, and the table name and key are not bound from the pipeline. New- and Update- run without a prompt and support -WhatIf (the target names the table, and for an update the key, never the values); Remove- is High impact, so it prompts unless you pass -Confirm:$false. -Path accepts a JSON file saved with or without a UTF-8 byte order mark.
New-TableRecord ARCUST -Value @{ Number = 'C-100'; Name = 'Acme' }
New-TableRecord ARCUST -Path ./record.json -WhatIf
Update-TableRecord ARCUST -Key @{ Number = 'C-100' } -Value @{ Name = 'Acme Ltd' }
Remove-TableRecord ARCUST -Key Number -Value C-100 -WhatIf
Update-TableRecord -Key is a dictionary of key column names and values (since 0.13.0; before it was a string that never worked). Name the columns of a whole index, in index order, with an [ordered] dictionary for a composite key (a plain hashtable is accepted only with one entry). The key values must not be blank or contain ,, ;, * or =. The cmdlet reads the rows that match the key first (at most two) and sends the update only when exactly one matches; no match is a non-terminating DkPlus.NotFound error and several matches is an ambiguous-key error. Whether DK Plus keeps the fields you do not send is verified on one table only, so try an update on a test company first. See Generic tables. DK Plus documents table deletes as performed at your own risk.
| Cmdlet | CLI equivalent | What it does |
|---|---|---|
Get-Dimension |
dimension list |
Reads dimensions from every level, or one level with -Level. |
Get-Currency |
currency list |
Lists currencies (-All reads every currency). |
Get-PaymentMode |
payment mode list, get |
Lists payment modes (-All reads every one) or gets one by -Number. |
Get-PaymentTerm |
payment term list, get |
Lists payment terms (-All reads every one) or gets one by -Number. |
Get-PaymentType |
payment type list, get |
Lists payment types (-All reads every one) or gets one by -Id. |
Get-Nation |
nation get |
Looks up an Icelandic national ID in the nation registry. |
-All on these lists asks for confirmation first (pass -Confirm:$false in scripts), as on every other list cmdlet.
Get-Dimension -Level 2 -ModifiedSince 2026-10-01
Get-Currency | Where-Object Number -eq 'EUR'
Get-PaymentTerm -Number 30
Get-PaymentType -Id 3
Get-Nation 4101012345
# Look up the registry entry of a customer
Get-Customer 10001 | Get-Nation
The module shares the non-secret configuration file with the devop-dk CLI.
| Cmdlet | CLI equivalent | What it does |
|---|---|---|
Get-Config |
config show, config path |
Shows the stored values, the token source the next default connection would use, and the file path. |
Set-Config |
config set, config language |
Sets BaseUrl, Language, PageSize, RetryCount, TimeoutSeconds, LogLevel, or SalesPerson. |
Get-Config
(Get-Config).Path
Set-Config -Key pageSize -Value 250
Set-Config -Language is
Set-Config -RetryCount 2 -TimeoutSeconds 60 -LogLevel Warning
Set-Config -SalesPerson S-7
-SalesPerson stores the default sales person of New-Invoice, New-Order, New-Quote, and New-RecurringSale (the salesPerson key of devop-dk config set). An explicit -SalesPerson or the document's own value wins, and Set-Config -SalesPerson '' removes the setting. Get-Config never shows a token. The column-profile commands (config columns ...) have no cmdlet; see Output and files.
| Cmdlet | CLI equivalent | What it does |
|---|---|---|
Save-Login |
login |
Verifies a token and stores it as the login shared with the CLI. |
Remove-Login |
logout |
Deletes the stored login. Confirmation: Medium. |
Connect-DkPlus |
none (module only) | Opens a connection for the session and makes it the default. |
Disconnect-DkPlus |
none (module only) | Closes one or all connections. |
Get-DkPlusConnection |
none (module only) | Shows the default connection without its token. |
Test-DkPlusConnection |
connection test |
Verifies the credentials and company connection with a read-only request. |
Save-Login # hidden prompt, then verified
Save-Login -Token (Get-Secret DkPlusToken) -SkipVerify
Connect-DkPlus -Token (Read-Host -AsSecureString 'DK Plus API token')
Get-DkPlusConnection | Format-List Name, BaseUrl, AcceptLanguage, TokenSource, ConnectedAt
Test-DkPlusConnection
Remove-Login
Disconnect-DkPlus
Tokens are always a SecureString. On Windows the stored login is kept in the non-roaming %LOCALAPPDATA%\DevOp\devop-dk folder with an owner-only access control list; a login stored by an earlier version in %APPDATA% is moved on first use, and Remove-Login removes the token at both places. Remove-Login warns when DKPLUS_API_TOKEN or DKPLUS_API_TOKEN_FILE still supplies a token, or when Connect-DkPlus connections remain open: those keep their token until you run Disconnect-DkPlus. See Connect for how the default connection is chosen.