Get started

CLI Reference

The nf CLI is the primary interface for managing NodeFoundry from the command line. Install it on any machine with network access to the master node.


Installation

Terminal
$ curl -fsSL https://get.nodefoundry.io/cli | bash
Terminal
$ brew install nodefoundry/tap/nf

Configuration

The CLI reads connection settings from a .nf.json file in the current directory. This file stores the API host, port, and authentication token.

Authentication

Log in with nf user login to store a session token:

Terminal
$ nf user login --username admin --password secret
Logged in as Admin (admin)

Global flags

All commands support the following global flag:

FlagDescription
--jsonOutput results as JSON instead of styled terminal output

Command index