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.
| Command | What it does |
|---|---|
| Start a project | Makes a project in this folder. |
| Start a project, step by step | Asks about the project first. |
| Start a project from an extension | A project set up by an extension. |
| Install a part of Najova | Installs Najova IDE or NajovaCLI. |
| Install an extension | Installs an extension. |
| Install a package | Installs a package. |
| Remove an extension or package | Removes what njim installed. |
| See what's installed | Lists what's installed. |
| Which njim you have | Shows the version. |
Start a project
njim initMakes 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!name:
> "my-bot"
version:
> "0.0.1"
main:
> "main.naja"$print[Hello from my-bot!]Start a project, step by step
njim init -focusThe 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 versionShows the version of njim.