Installation
Download Nexigon CLI, configure it with a Nexigon Hub URL and an access token, and select the organization to work in.
Download
Download the binary for your platform from the Nexigon CLI releases, which also list checksums. On Linux and macOS, make it executable:
chmod +x nexigon-cli
Move the binary to a directory on your PATH, for example ~/.local/bin.
The docs run it as nexigon-cli.
Development Builds
Every commit on the main branch of
nexigon/nexigon that passes CI has a
development build, tagged git- and the commit’s abbreviated hash. For
example, to download the latest one on Linux with an x86-64 processor:
tag="git-$(git ls-remote https://github.com/nexigon/nexigon refs/heads/main | cut -c1-7)"
curl -fL -o nexigon-cli \
"https://downloads.nexigon.dev/nexigon-cli/$tag/assets/x86_64-unknown-linux-gnu/nexigon-cli"
For other platforms, replace x86_64-unknown-linux-gnu with the Rust target,
such as aarch64-apple-darwin; on Windows, download nexigon-cli.exe. If the
download fails, use the tag of an earlier commit. Development builds are not
meant for production use.
Configure Access
Nexigon CLI authenticates with an access token:
- A user token acts with your own access to all your organizations. Create one under Account Settings → API Tokens.
- An organization API token acts within one organization and only with the permissions of its policy. Prefer it for automation. Create one under Organization Settings → API Tokens.
Run the following command and enter your Nexigon Hub URL and token:
nexigon-cli configure
The command saves both to ~/.nexigon/cli.toml:
hub-url = "https://eu.nexigon.cloud/"
token = "u_sk_..."Keep this file private, because it contains the token. Check the configuration against Nexigon Hub:
nexigon-cli auth status
The output identifies the token as UserToken or OrganizationApiToken, with
its ID and the corresponding userId or organizationId. It does not show
the secret.
Configuration Files
Nexigon CLI uses the first of these files:
- The file that the global
--configoption names. .nexigon-cli.tomlin the current working directory.~/.nexigon/cli.toml.
nexigon-cli configure --local writes .nexigon-cli.toml in the current
directory, for example to use another instance or token for one project. In a
Git repository, add the file to .gitignore. Without --local, configure
writes ~/.nexigon/cli.toml, even if a local file takes precedence.
Organization Selection
A user token can access several organizations, so resource commands need the
global --organization option with the organization’s ID, beginning with
org_. Copy it from the URL of the organization in the web interface:
nexigon-cli --organization <org-id> projects list
An organization API token selects its own organization, so the option is not needed. If you pass it, it must match the token’s organization.
The option limits lookups as well as listing and creation: a resource of
another organization returns NotFound, even if your user can access both
organizations. configure and auth status do not need the option, and
actions execute sends its input unchanged, without applying the option.
Organization Scope describes
the underlying API behavior.
Earlier versions of Nexigon CLI took the organization as an argument of
projects create and repositories create. Replace, for example,
projects create <org-id> "Production" with
projects create "Production" --organization <org-id>.