Preview
You're viewing the Next docs — a rolling preview of in-development changes. The current release docs may differ.
Commands
Run nexigon-cli --help, or append --help to any command, for its full
usage.
nexigon-cli [OPTIONS] <COMMAND>
| Option | Description |
|---|
--config <PATH> | Configuration file. See Configuration Files. |
--organization <ORG-ID> | Organization to operate in. Required with a user token. See Organization Selection. |
--log-level <LEVEL> | off, error, warn, info, debug, or trace. |
--log-format <FORMAT> | compact or full. |
Conventions
Commands print their results as JSON, so scripts can read IDs and other fields
with tools such as jq. Most commands accept a resource either by ID or by
path:
| Resource | Path Format | Example |
|---|
| Repository | <repository> | my-repo |
| Package | <repository>/<package> | my-repo/controller |
| Package version | <repository>/<package>/<tag> | my-repo/controller/stable |
| Asset | <repository>/<package>/<tag>/<filename> | my-repo/controller/stable/controller.rugixb |
--tag takes a tag name with optional flags separated by commas. locked
keeps the tag on this version permanently, and reassign moves the tag from
another version, for example --tag stable,reassign.
Durations, such as those of --delete-after, combine numbers with the units
s, m, h, d, and w, for example 7d or 2h30m. Days have 24 hours.
Timestamps use RFC 3339 with a time zone, such as 2027-01-31T00:00:00Z.
Setup
| Command | Description |
|---|
configure | Save a Nexigon Hub URL and token. --local writes the configuration to the current directory. |
auth status | Verify the token and print the authenticated actor. |
Remote Access
| Command | Description |
|---|
forward <device-id> <local>:<remote>... | Forward local ports on 127.0.0.1 to ports of a device until interrupted. |
http-proxy issue-url <device-id> | Issue a URL that opens an HTTP service of a device through Nexigon Hub. |
http-proxy issue-url accepts --port <PORT>, --valid-for <SECONDS>, and
--hostname <HOSTNAME>. Access Devices Remotely
shows both commands in use.
Projects
| Command | Description |
|---|
projects list | List projects. |
projects info <project-id> | Show a project. |
projects create <name> | Create a project. |
projects rename <project-id> <name> | Rename a project. |
projects delete <project-id> | Delete a project. |
projects devices list <project-id> | List a page of devices. Accepts --limit and --cursor. |
projects repositories list <project-id> | List the repositories linked to a project. |
projects repositories link <project-id> <repository-id> | Link a repository, so that devices can download from it. |
projects repositories unlink <project-id> <repository-id> | Unlink a repository. |
projects tokens list <project-id> | List deployment tokens. |
projects tokens create <project-id> <name> | Create a deployment token. Accepts --auto-accept <true|false>. |
projects tokens set-flags <token-id> --auto-accept <true|false> | Change whether a token accepts new devices. |
projects tokens delete <token-id> | Delete a deployment token. |
projects otlp get <project-id> | Show the OTLP export configuration. |
projects otlp set <project-id> <json> | Set the OTLP export configuration. |
Devices
| Command | Description |
|---|
devices info <device-id> | Show a device. |
devices create <project-id> <fingerprint> | Register a device with a fingerprint. |
devices rename <device-id> [name] | Rename a device. Without a name, clear it. |
devices delete <device-id> | Delete a device. |
devices properties list <device-id> | List the properties of a device. |
devices properties get <device-id> <name> | Show a property. |
devices properties set <device-id> <name> <json> | Set a property. --protected=true makes it read-only for the device. |
devices properties remove <device-id> <name> | Remove a property. |
devices certificates add <device-id> <fingerprint> | Add a certificate. Accepts --status. |
devices certificates set-status <certificate-id> <status> | Change a certificate’s status: pending, active, rejected, revoked, or conflict. |
devices certificates delete <certificate-id> | Delete a certificate. |
devices connections list <device-id> | List connections. Accepts --limit and --active-only <true|false>. |
devices events list <device-id> | List events. Accepts --limit. |
devices commands list <device-id> | List the commands that a device publishes. |
Repositories
| Command | Description |
|---|
repositories create <display-name> | Create a repository. Accepts --path-name and --visibility <public|private>. |
repositories resolve <repository> | Resolve a repository name to its ID. |
repositories info <repository> | Show a repository. |
repositories rename <repository> <display-name> | Rename a repository. |
repositories set-path-name <repository> <path-name> | Change the path name used in paths. |
repositories set-visibility <repository> <visibility> | Make a repository public or private. |
repositories set-slug <repository> <slug> | Set the instance-wide slug that addresses a public repository without an organization. |
repositories delete <repository> | Delete a repository. |
repositories issue-url <asset> | Issue a temporary download URL. Accepts --filename. |
repositories projects list <repository> | List the projects linked to a repository. |
repositories s3 get <repository> | Show the S3 storage configuration. |
repositories s3 set <repository> <json> | Set the S3 storage configuration. |
Assets
| Command | Description |
|---|
repositories assets upload <repository> <file> | Upload a file and print its asset ID. |
repositories assets list <repository> | List the assets of a repository. |
repositories assets info <asset> | Show an asset. |
repositories assets issue-upload-url <asset> | Issue a temporary upload URL. |
repositories assets delete <asset> | Delete an asset. |
Packages
| Command | Description |
|---|
repositories packages create <repository> <name> | Create a package. Accepts --kind, such as rugix-app, and --metadata <json>. |
repositories packages list <repository> | List packages. |
repositories packages info <package> | Show a package, including its retention policy. |
repositories packages rename <package> <name> | Rename a package. |
repositories packages set-kind <package> [kind] | Set or clear the kind. |
repositories packages set-metadata <package> <json> | Replace the metadata. |
repositories packages set-retention <package> | Replace the retention policy. Accepts --max-versions, --max-age-days, and --disable. |
repositories packages delete <package> | Delete a package. |
repositories packages versions list <package> | List a page of versions, newest first. Accepts --search, --limit, and --cursor. |
repositories packages tags list <package> | List a page of tags, most recently assigned first. Accepts the same options. |
repositories packages assets add <package> <asset-id> <filename> | Attach an asset to the package itself. Accepts --metadata. |
repositories packages assets set-metadata <package> <filename> <json> | Replace the metadata of a package asset. |
repositories packages assets remove <package> <filename> | Detach a package asset. |
Versions
| Command | Description |
|---|
repositories versions create <package> | Create a version and print its ID. Accepts --name, --tag, --metadata, --base, --delete-after, and --delete-at. |
repositories versions info <version> | Show a version with its tags and assets. |
repositories versions resolve <path> | Resolve a tag path to a version. |
repositories versions rename <version> [name] | Set or clear the display name. |
repositories versions set-metadata <version> <json> | Replace the metadata. |
repositories versions set-base <version> [base] | Set the base version. --clear removes it. |
repositories versions tag <version> --tag <tag>... | Add tags. |
repositories versions untag <version> --tag <tag>... | Remove tags. |
repositories versions mark-release <version> | Mark a version as a release. |
repositories versions unmark-release <version> | Remove the release mark of a version. |
repositories versions seal <version> | Seal a version permanently. |
repositories versions schedule-deletion <version> | Set a deletion deadline with --delete-after or --at, or remove it with --cancel. |
repositories versions delete <version> | Delete a version. |
repositories versions assets add <version> <asset-id> <filename> | Attach an asset under a filename. Accepts --metadata. |
repositories versions assets set-metadata <version> <filename> <json> | Replace the metadata of a version asset. |
repositories versions assets remove <version> <filename> | Detach a version asset. |
Publish Software and
Retain and Clean Up Versions use these commands
in complete workflows.
Actions
nexigon-cli actions execute <action> <json>
Runs any action of Nexigon Hub with JSON input
and prints its output, for example to use an action that has no dedicated
command. The API reference lists the actions and their inputs.