GioJSdocs
On this page

gio info

Print the OS, Node.js, package manager, server binary and @gio.js/* versions - the environment details a bug report needs.

npx gio info
bash
gio info [--json]

Reference

OptionTypeDefaultDescription
--jsonbooleanfalsePrint the report as JSON.
-h, --helpboolean-Print the help and exit with 0.

Output

text
$ npx gio info
  gio              0.1.0-beta.8
  Node.js          22.22.0
  Platform         linux-x64 (glibc), 6.8.0-45-generic
  Package manager  npm 10.9.2
  Server binary    0.1.0-beta.8 (/home/me/shop/node_modules/@gio.js/server-linux-x64/bin/giojs-server)
  @gio.js/server   0.1.0-beta.8
  @gio.js/core     0.1.0-beta.8
  @gio.js/react    0.1.0-beta.8
  create-giojs     not installed
  Project          /home/me/shop
  gio.toml         gio.toml
  NODE_ENV         (unset)
RowWhere it comes from
PlatformOS and CPU, the C library on Linux (glibc or musl), and the kernel release.
Package managerThe one running gio (npm_config_user_agent, with its version), else the one whose lockfile the project has (no version), else npm.
Server binaryThe binary gio dev would run: its package version, or GIO_SERVER_BIN / repository build, and its path. not found (...) with the reason when there is none.
@gio.js/*, create-giojsThe installed versions, as Node would resolve them from the project.
gio.tomlThe file the server would read, or none (defaults).

JSON output

json
{
  "gio": "0.1.0-beta.8",
  "node": "22.22.0",
  "platform": "linux-x64 (glibc)",
  "osRelease": "6.8.0-45-generic",
  "packageManager": "npm 10.9.2",
  "serverBinary": {
    "path": "/home/me/shop/node_modules/@gio.js/server-linux-x64/bin/giojs-server",
    "source": "package",
    "package": "@gio.js/server-linux-x64",
    "version": "0.1.0-beta.8"
  },
  "packages": {
    "@gio.js/server": "0.1.0-beta.8",
    "@gio.js/core": "0.1.0-beta.8",
    "@gio.js/react": "0.1.0-beta.8",
    "create-giojs": null
  },
  "projectRoot": "/home/me/shop",
  "gioToml": "gio.toml",
  "nodeEnv": null
}

serverBinary.source is package, env (GIO_SERVER_BIN) or workspace (a cargo build inside the GioJS repository). Without a binary it is { "missing": "<reason>", "package": "<name>" }.

Examples

Just the versions

text
$ npx gio --version
gio            0.1.0-beta.8 (@gio.js/server)
server binary  0.1.0-beta.8 (@gio.js/server-linux-x64)
@gio.js/core   0.1.0-beta.8

gio --version (-v) prints the three versions that must match; gio info adds the rest. Both print package versions, read from the installed package.json files: the server binary's is its platform package's, and the binary itself is never run to ask.

Good to know

  • gio info checks nothing and always exits with 0; use gio doctor for checks.
  • It reads no secrets and does not start the server or probe the port.

Version history

VersionChanges
v0.1.0-beta.8Introduced.