Name

nicl

Synopsis

nicl [options] datasource [command]

Modifies entries in the NetInfo database. You can manipulate directories and properties with nicl. The datasource may be the path to a NetInfo directory (such as /_ ) or the filesystem path of a NetInfo database (you must use the -raw option for this). Use -raw to work directly with the NetInfo database, such as /var/db/netinfo/local.nidb. This is useful in cases when the NetInfo daemon is down (such as when you boot into single-user mode).

Options

-c

Create a new data source.

-p

Prompt for a password. You can use this instead of prefixing the command with sudo.

-P password

Use the specified password.

-q

Be quiet.

-raw

Indicates that the datasource is a filesystem path to a NetInfo database.

-ro

Open datasource as read-only.

-t

Treats the domain as a tagged domain, which includes a machine name and a tagged NetInfo database.

-u user

Use the specified user’s identity when running the command. You’ll be prompted for a password.

-v

Be verbose.

-x500

Use X.500 names (see the nicl manpage for more details).

Commands

-append path key val ...

Appends a value to an existing property. The property is created if it does not already exist.

-copy path newparent

Copies the specified path to a new parent path.

-create path [ key [ val ... ] ]

Creates a NetInfo directory specified by path.

-delete path [ key [ val ... ] ]

Destroys the specified path and all its contents. If you specify a key and/or value, only the specified key is ...

Get Mac OS X in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.