
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
@nosana/cli
Advanced tools
The Nosana CLI is a command-line tool for interacting with the [Nosana Network](https://nosana.com), enabling users to post jobs to the network or run a Nosana Node seamlessly.
The Nosana CLI is a command-line tool for interacting with the Nosana Network, enabling users to post jobs to the network or run a Nosana Node seamlessly.
$ npm install -g @nosana/cli
# or install with yarn
$ yarn global add @nosana/cli
HINT
Alternatively, you can use npx
to use the cli directly without installing it globally:
$ npx @nosana/cli help
Once installed, you can invoke CLI commands directly from your OS command line through the nosana
executable. See the available commands by entering the following:
$ nosana help
All interactions with Nosana CLI are of the form
$ nosana [command] [options] [argument]
Available node
commands:
node view <node> View (any) Nosana Node
node join [command] Register for Nosana Grid
node start [options] <market> Start Nosana Node
node run [options] <job-definition-file> Run Job Definition File
node help [command] display help for command
Available job
commands:
job post [options] [command...] Create a job to run by Nosana Runners
job get [options] <job> Get a job and display result
job download <ipfs> [path] Download an external artifact from IPFS to specified path
job help [command] display help for command
Global options:
-V, --version output the version number
-n, --network <network> network to run on (choices: "devnet", "mainnet", default: "mainnet")
--rpc <url> RPC node to use
--log <logLevel> Log level (choices: "info", "none", "debug", "trace", default: "debug")
To get started with your Nosana Node on the Nosana Grid, you can run a node after you've installed the prerequisites with the following command:
nosana node start [options]
Options:
--provider <provider> provider used to run the job (choices: "docker", "podman", default: "podman")
-w, --wallet <wallet> path to wallet private key (default: "~/.nosana/nosana_key.json")
--docker, --podman <URI> Podman/Docker connection URI (default: "~/.nosana/podman/podman.sock")
-h, --help display help for command
With the nosana node start [options]
command you can start a Nosana Node and join the Nosana Network.
Options:
--provider <provider> provider used to run the job (choices: "docker", "podman", default: "podman")
-w, --wallet <wallet> path to wallet private key (default: "~/.nosana/nosana_key.json")
--docker, --podman <URI> Podman/Docker connection URI (default: "~/.nosana/podman/podman.sock")
-h, --help display help for command
With the nosana job post [options] [command...]
command you can post nosana jobs to the Nosana Network. The default job type is container
, meaning nodes will run your job in docker containers.
The following command will run echo hello world
with the default ubuntu
docker image (can be changed with the --image
flag), while we specify the --wait
flag to wait for the results:
$ nosana job post echo hello world --wait
All available options for post
:
--airdrop request an airdrop when low on SOL on devnet (default: true)
--gpu enable GPU on node
-o, --output <path> specify which folder inside the container you want to upload
--type <type> type to run (default: "container")
-i, --image <image> docker image to use (default: "ubuntu")
--f, --file <path> file with the JSON flow
--wait wait for job to be completed and show result
--download download external artifacts (implies --wait)
Please visit our documentation for a full list of commands and examples.
For technical details on how the Nosana CLI works, refer to the technical documentation:
FAQs
The Nosana CLI is a command-line tool for interacting with the [Nosana Network](https://nosana.com), enabling users to post jobs to the network or run a Nosana Node seamlessly.
We found that @nosana/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.