Skip to the page
Najova

Docs

/

Commands

njim

njim, the Najova Install Manager, installs Najova's parts, extensions and packages, and sets up new projects.

Type these in a terminal in your project's folder. Names aren't case sensitive, so njim i ide works too. To run, check or build code, use naja.

CommandWhat it does
Start a projectMakes a project in this folder.
Start a project, step by stepAsks about the project first.
Start a project from an extensionA project set up by an extension.
Install a part of NajovaInstalls Najova IDE or NajovaCLI.
Install an extensionInstalls an extension.
Install a packageInstalls a package.
Remove an extension or packageRemoves what njim installed.
See what's installedLists what's installed.
Which njim you haveShows the version.

Start a project

njim init

Makes a project in this folder: a config.NAIL file that names it, and a main.naja to start from. The project is named after the folder.

› njim init

Made the project my-bot here: config.NAIL and main.naja. Run it with naja run.

› naja run

Hello from my-bot!
config.NAIL
name:
> "my-bot"

version:
> "0.0.1"

main:
> "main.naja"
main.naja
$print[Hello from my-bot!]

Start a project, step by step

njim init -focus

The same as njim init, but it asks for the name, version, author, extensions and packages first.

Start a project from an extension

njim init -focused(<extension>)

A project set up by that extension, like njim init -focused(discord): a menu to make its commands. Run it again in the project to add, open or remove commands. In PowerShell you can also type -focused discord.

Install a part of Najova

njim i <part>

Installs one of Najova's own parts: IDE (Najova IDE, the editor) or NCLI (NajovaCLI, Najova in your console).

Install an extension

njim i ext <id> [-global]

Installs an extension into this project, like njim i ext discord. Add -global to install it for every project on this computer.

Install a package

njim i pack <id>

Installs a package into this project. Its id starts with its extension's, like njim i pack discord/xp.

Remove an extension or package

njim rm ext <id>
njim rm pack <id>

Removes an extension or package that njim installed. Add -global to remove the shared copy of an extension.

See what's installed

njim list [-available]

Lists what is installed in this project and for every project. -available lists what you can install.

Which njim you have

njim version

Shows the version of njim.