Skip to main content
nx1 is a command-line tool in NexusOne’s Jupyter environment that interacts with the NexusOne platform. It’s a command-line alternative to NexusOne API endpoints. Its core features span the following categories:
  • Data ingestion: Upload local or remote files.
  • Data management: Manage data quality and DataHub data products.
  • Governance and security: Manage user/group access to data, switch to different profile accounts, and interact with the Gravitino metadata service through a shared client.
  • Job orchestration: Submit, monitor, and manage Airflow jobs.
  • Platform interaction: Inspect NexusOne system health, add S3 buckets, and manage app packaged DAGs + Artifacts.
  • Query and AI assistance: Interact with data and generate suggestions.
  • Table and metadata operations: Manage tables and schemas.

Problems nx1 solves

The core problem the nx1 command-line tool solves is the complexity of constructing HTTP requests to interact directly with a NexusOne API endpoint. When you are working directly with the API, you must know a bit of computer networking, specifically, how the application-layer works. That means thinking in terms of the following:
  • HTTP methods such as GET, POST, or DELETE
  • NexusOne endpoints such as /catalogs or /tables
  • HTTP authentication headers
  • HTTP request bodies
  • Splitting the result into small chunks
  • HTTP response parsing
For example, when you are using curl to create an Airflow job in NexusOne, the command looks something like the following:
curl --request POST \
  --url https://aiapi.example.nx1cloud.com/api/jobs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "job_type": "<string>",
  "job_name": "<string>",
  "source": "<string>",
  "destination": "<string>",
  "properties_json": "<string>",
  "schedule": "<string>"
}
'
To use the previous command, you need to understand the request structure and the data sent to the API. The nx1 tool shifts your interaction from computer networking application-layer protocols like HTTP, to commands that directly represent NexusOne actions. Now, instead of manually constructing API requests, you configure your NexusOne API key and host URL once and then run a command such as:
nx1 jobs list
After running the previous command, nx1 makes and sends an API request on your behalf to the NexusOne platform.

Supported nx1 operations

The nx1 tool supports the following operations.
OperationDescription
airflowTrigger Airflow DAGs
alter-tableAlter table
appsApps management
askAsk a question
catalogsList catalogs
columnsList columns
create-catalogCreate catalog
create-schemaCreate schema
create-tableCreate table
crewsAI Crews
dataproductsData products
delete-catalogDelete catalog
delete-schemaDelete schema
delete-tableDelete table
domainsList domains
dqData quality
enginesList supported engines
filesFile management
ingestSubmit ingestion from S3
ingest-fileUpload and ingest local file
ingest-optionsGet file ingestion options
jobsJob management
kyuubiSubmit Kyuubi batch job
mirrorCreate mirroring job
pingHealth check
profileManage user profiles
s3S3 bucket management
schemasList schemas
sharesData shares
suggestGet suggestions
tablesList tables
tagsList all tags
versionGet API version

Additional resources

For more information about the supported flags and how to use them, refer to the nx1 command line reference page.