@nillion/secretvaults
    Preparing search index...

    Variable NucCmdConst

    NucCmd: {
        nil: {
            db: {
                builders: {
                    create: Command;
                    delete: Command;
                    execute: Command;
                    read: Command;
                    root: Command;
                    update: Command;
                };
                collections: {
                    create: Command;
                    delete: Command;
                    execute: Command;
                    read: Command;
                    root: Command;
                    update: Command;
                };
                data: {
                    create: Command;
                    delete: Command;
                    execute: Command;
                    read: Command;
                    root: Command;
                    update: Command;
                };
                queries: {
                    create: Command;
                    delete: Command;
                    execute: Command;
                    read: Command;
                    root: Command;
                    update: Command;
                };
                root: Command;
                system: {
                    create: Command;
                    delete: Command;
                    execute: Command;
                    read: Command;
                    root: Command;
                    update: Command;
                };
                users: {
                    create: Command;
                    delete: Command;
                    execute: Command;
                    read: Command;
                    root: Command;
                    update: Command;
                };
            };
        };
    } = ...

    Command namespace for NilDB operations.

    Provides pre-configured command objects for interacting with different NilDB subsystems including system, builders, data, collections, queries, and users.

    Type declaration

    • Readonlynil: {
          db: {
              builders: {
                  create: Command;
                  delete: Command;
                  execute: Command;
                  read: Command;
                  root: Command;
                  update: Command;
              };
              collections: {
                  create: Command;
                  delete: Command;
                  execute: Command;
                  read: Command;
                  root: Command;
                  update: Command;
              };
              data: {
                  create: Command;
                  delete: Command;
                  execute: Command;
                  read: Command;
                  root: Command;
                  update: Command;
              };
              queries: {
                  create: Command;
                  delete: Command;
                  execute: Command;
                  read: Command;
                  root: Command;
                  update: Command;
              };
              root: Command;
              system: {
                  create: Command;
                  delete: Command;
                  execute: Command;
                  read: Command;
                  root: Command;
                  update: Command;
              };
              users: {
                  create: Command;
                  delete: Command;
                  execute: Command;
                  read: Command;
                  root: Command;
                  update: Command;
              };
          };
      }
    import { NucCmd } from "@nillion/secretvaults";

    // Use for creating a collection
    const command = NucCmd.nil.db.collections.create;