A simple command-line xyOps importer utility for bootstrapping a new install.
Use this utility to import bootstrap data into a fresh xyOps install with the built-in admin account. For example, you can provision an API key for later automation before you first sign in to the web UI. The utility signs in with your supplied credentials, uploads the backup, waits for the import result, and signs out.
Export the data you want from the xyOps System page as a XYBK file. The importer accepts plain text and gzip-compressed backups. Set the URL of the primary conductor and the credentials of a local administrator account. A fresh install uses admin:admin.
export XYOPS_BASE_URL="http://localhost:5522"
export XYOPS_CREDENTIALS="admin:admin"
npx -y @pixlcore/xyops-importer MY-XYBK-EXPORT-FILE.txt.gzImporting an XYBK file overwrites the data it targets. Use a fresh install and export only the data you want to seed.
By default, xyOps disables the scheduler, flushes queued jobs, and aborts any running jobs before importing. If the scheduler was enabled, re-enable it after the import when you're ready to run jobs. To keep the scheduler and jobs running during the import, pass --danger after the filename.
For HTTPS with a self-signed certificate, you can set XYOPS_ALLOW_UNAUTHORIZED=1 to disable certificate verification.
The command prints the full xyOps Activity report and signs out. Review the report for any import errors or warnings. The report contents do not affect the command's exit status.
Here is an example XYBK file containing a single API Key with the add_servers privilege.
# xyOps Data Export v1.0
# Hostname: xyops1
# Date/Time: Wed Nov 25 2026 19:14:50 GMT+0000 (Coordinated Universal Time)
# Format: NDJSON
# List: global/api_keys
{"cmd":"listDelete","args":["global/api_keys",false]}
{"key":"global/api_keys","value":{"page_size":100,"first_page":0,"last_page":0,"length":1,"type":"list"}}
{"key":"global/api_keys/0","value":{"type":"list_page","items":[{"active":1,"privileges":{"add_servers":true},"roles":[],"max_per_sec":0,"expires":0,"title":"Test App","description":"For demonstration purposes.\n","id":"kmwwi5xo3tbbl409","username":"admin","modified":1795634072,"created":1795634072,"revision":1,"key":"SAMPLE73909d164a964d5b2482c59SAMPLE44433498e13919d5a5","mask":"SAMP********d5a5"}]}}
# End of file
The MIT License (MIT)
Copyright (c) 2026 PixlCore LLC.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.