Home / Docs / Specification / 30. Packages and dependencies
30.6 Commands
Release v0.4.0
With --json, each command of una ita prints one una.ita/1 document (rule 1). una --json ita lock of a package whose ita.una adds the path dependency util (§12 rule 6) prints:
json
{
"schema": "una.ita/1",
"command": "lock",
"written": ["ita.lock"],
"changes": [
{
"change": "add",
"package": "util",
"origin": "path deps/util",
"version_from": null,
"version_to": "0.2.0",
"digest_from": null,
"digest_to": "sha256:628a11aacf38c392c3224401a087d357fbee26abf719488dfdaec055872f1764",
"ceiling_from": "",
"ceiling_to": "",
"trusted_from": [],
"trusted_to": [],
"consented_from": null,
"consented_to": null,
"authority": []
}
],
"diagnostics": [],
"error": null
}una ita. The package manager is the commanduna itaof theunabinary. The same binary invoked under the nameita(itsargv[0]basename,itaorita.exe) behaves asuna ita:ita lockisuna ita lock. With--json, each command prints one document,una.ita/1:schemafirst, thencommand,written(the files it wrote) anddiagnostics; a command that resolves (lock,update,add,remove) also giveschanges, the review of §10 rule 8, afterwritten, anderrorlast, the reason it failed outside its diagnostics, such as a file it could not write, ornull, andtreegivesrootandpackagesin place ofwritten(§12 rule 9). The exit code is 1 when a diagnostic is an error, and 2 for a usage error, such as a directory withoutita.una.- Commands of this release.
una ita lock [--check [--fresh]] [--dry-run] [--accept-authority <package>]… [--accept-trust <package>@<digest>]… [--accept-key <package>]… [path](§4 rule 4, §10 rules 7 and 8, §12 rule 6, §13 rule 2, §14 rule 8);una ita update [<name>…] [--cooldown <hours>] [--now] [--dry-run] [--accept-authority <package>]… [--accept-trust <package>@<digest>]… [--accept-key <package>]…anduna ita add <name> [<version>] [--as <local>] [--from <source>] [--now] [--dry-run], on the package in the current directory (§10 rules 9 and 10);una ita tree [path]anduna ita remove <name> [path](§12 rule 9);una ita fetch [path](§14 rule 9);una ita vendor [path](§9 rule 8);una ita verify [path](§10 rule 11);una ita publish [path],una ita yank <version> [path],una ita audit [path],una ita watch <owner> [<name>…] [--from <source>],una ita bundle <file> [path]anduna ita unbundle <file> [path](§15).una ita keyjoins later. - No network, no other program. No command of this release opens a network connection: a registry is read from a local mirror directory (§14 rule 1), a submission to an
https://source stops before anything is sent (§15 rule 1), and a bundle goes through a file. Itá never starts another program.