2015-02-18 06:03:21 +03:00
|
|
|
<div class="short">
|
|
|
|
|
|
|
|
CLI Apps
|
|
|
|
========
|
|
|
|
|
2015-04-29 00:03:11 +03:00
|
|
|
Our simple command-line applications.
|
2015-02-18 06:03:21 +03:00
|
|
|
|
|
|
|
You can find them in `/main/app`.
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:begin`](#begin)
|
|
|
|
|
|
|
|
`~zod/try=> :begin [~ship-name [~valid-ticket-for-ship]]`
|
|
|
|
|
2015-05-07 04:53:05 +03:00
|
|
|
Start a ship. `:begin` collects all of the necessary information to
|
2015-02-18 06:03:21 +03:00
|
|
|
start an Urbit ship. Takes an option `[~ship-name]` or
|
|
|
|
`[~ship-name [~valid-ticket-for-ship]]` pair.
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:cat`](#cat)
|
|
|
|
|
|
|
|
`~zod/try=> :cat path-to-file [...]`
|
|
|
|
|
|
|
|
"cat" a file. `:cat` either prints a file, or concatenates and then
|
|
|
|
prints multiple files to the terminal.
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:cp`](#cp)
|
|
|
|
|
|
|
|
`~zod/try=> :cp /path/to/source /path/to/destination`
|
|
|
|
|
|
|
|
Copy a file to a given location.
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:grep`](#grep)
|
|
|
|
|
|
|
|
`~zod/try=> :grep 'literal'`
|
|
|
|
|
2015-03-06 22:22:12 +03:00
|
|
|
"grep" a file or standard input. Currently only supports a literal cord,
|
|
|
|
but will eventuall support regular expressions.
|
2015-02-18 06:03:21 +03:00
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:hi`](#hi)
|
|
|
|
|
|
|
|
`~zod/try=> :hi ~ship ["message"]`
|
|
|
|
|
|
|
|
Send a ship a message which is empty by default, becoming their neighbor
|
|
|
|
in the process. Often used to ping ships to check connectivity.
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:into`](#into)
|
|
|
|
|
|
|
|
`~zod/try=> :into /path/to/file 'contents'`
|
|
|
|
|
|
|
|
Write text to a file. If the specified file does not exist, create a
|
2015-03-06 22:22:12 +03:00
|
|
|
file by that name. If it does exist, replace its contents.
|
2015-02-18 06:03:21 +03:00
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:label`](#label)
|
|
|
|
|
|
|
|
`~zod/try=> :label %path %label`
|
|
|
|
|
|
|
|
"label". Add a label to a change number.
|
|
|
|
|
|
|
|
~zod/try=> :label %try %zebra
|
|
|
|
= new /~zod/try/3
|
|
|
|
~zod/try=> :ls /=try/zebra
|
|
|
|
readme
|
|
|
|
|
|
|
|
Note that adding a label is part of the delta stream and creates a new
|
|
|
|
change number, `3`.
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:ls`](#ls)
|
|
|
|
|
|
|
|
`~zod/try=> :ls path/to/directory`
|
|
|
|
|
|
|
|
"ls". List files at a path. Unlike "ls" in Unix, the current path `%`
|
|
|
|
must be explicitly given (you cannot call `:ls` with no arguments to
|
|
|
|
display the files at the current path).
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:mv`](#mv)
|
|
|
|
|
|
|
|
`~zod/try=> :mv /path/to/source /path/to/destination`
|
|
|
|
|
|
|
|
Move a file to a given location, creating a new revision of the source
|
|
|
|
that omits the moved file.
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:reload`](#reload)
|
|
|
|
|
|
|
|
`~zod/try=> :reload %vane-name [...]`
|
|
|
|
|
|
|
|
Reload the standard library (zuse) and/or arvo vanes. If zuse is
|
|
|
|
reloaded, vanes depending on the changes must be reloaded as well. For
|
|
|
|
example `:reload %zuse %ford` is necessary to make use of changes in
|
|
|
|
application code or the REPL.
|
|
|
|
|
|
|
|
Possible values for %vane-name see [Overview](overview.md "overview"):
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:reset`](#reset)
|
|
|
|
|
|
|
|
`~zod/try=> :reset`
|
|
|
|
|
|
|
|
Reloads all vanes. See [`:reset`] for reloading only or a specific vane.
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:rm`](#rm)
|
|
|
|
|
|
|
|
`~zod/try=> :rm /path/to/source`
|
|
|
|
|
|
|
|
Remove a file.
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:solid`](#solid)
|
|
|
|
|
|
|
|
`~zod/try=> :solid`
|
|
|
|
|
|
|
|
compiles a kernel into a new full urbit.pill
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:sync`](#sync)
|
|
|
|
|
|
|
|
`:sync %source-desk ~hidduc-posmeg %target-desk`
|
|
|
|
|
|
|
|
Sets up a subscription to the source desk on the target ship name to the
|
|
|
|
target desk on your ship.
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:ticket`](#ticket)
|
|
|
|
|
|
|
|
`~zod/try=> :ticket ~ship-name`
|
|
|
|
|
|
|
|
Creates a will for a ship. `:ticket` outputs the ticket for a Urbit
|
|
|
|
ship. Takes an option `[~ship-name]`. On destroyes this command creates
|
|
|
|
a yacht and takes the option \`[\~yacht-name-destroyer-name]
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:thumb`](#thumb)
|
|
|
|
|
|
|
|
`~zod/try=> :thumb ~ship-name`
|
|
|
|
|
|
|
|
Show the ships information. Only works if you issued a [`:hi`]
|
|
|
|
[\`\~ship-name] beforehand.
|
|
|
|
|
|
|
|
This command is not avaible since the switch from batz to `%gall`!
|
|
|
|
|
|
|
|
Use this for the time beeing: - will:
|
|
|
|
`~zod/try=> ((hard (unit gcos)) .^(%a /=gcos=/~ship-name))` - raw will:
|
|
|
|
`~zod/try=> ((hard will) .^(%a /=will=/~ship-name))`
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:unsync`](#unsync)
|
|
|
|
|
|
|
|
`:unsync %source-desk ~hidduc-posmeg %target-desk`
|
|
|
|
|
|
|
|
Cancels the subscription to the source desk on the target ship name to
|
|
|
|
the target desk on your ship.
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:verb`](#verb)
|
|
|
|
|
|
|
|
`~zod/try=> :verb`
|
|
|
|
|
|
|
|
Turn verbose arvo mode on/off.
|
|
|
|
|
|
|
|
You'll see events, internal cards, and effects.
|
|
|
|
|
|
|
|
[%unix p=%wake //temp]
|
|
|
|
[ %give
|
|
|
|
%t
|
|
|
|
%wake
|
|
|
|
~[
|
|
|
|
/c/tyme
|
|
|
|
/g/a/~zod/._~~.58_~~.shell_~~.terminal__/w/drug/~zod/main
|
|
|
|
/g/a/~harnyr-darlux-bitrux-litnum--falbec-tacsev-magdus-tobsyn/began/u
|
|
|
|
/g/a/~harnyr-darlux-bitrux-litnum--falbec-tacsev-magdus-tobsyn/._~~.2_~~.shell_~~.terminal__/u/to-gan
|
|
|
|
/g/a/~harnyr-darlux-bitrux-litnum--falbec-tacsev-magdus-tobsyn/._~~.shell_~~.terminal__/u/child/2/main
|
|
|
|
/g/a/~harnyr-darlux-bitrux-litnum--falbec-tacsev-magdus-tobsyn/terminal/u/txt
|
|
|
|
/d/term-mess
|
|
|
|
//term/1
|
|
|
|
]
|
|
|
|
]
|
|
|
|
[ %give
|
|
|
|
%c
|
|
|
|
%writ
|
|
|
|
~[
|
|
|
|
/g/a/~zod/._~~.58_~~.shell_~~.terminal__/w/drug/~zod
|
|
|
|
/g/a/~harnyr-darlux-bitrux-litnum--falbec-tacsev-magdus-tobsyn/began/u
|
|
|
|
/g/a/~harnyr-darlux-bitrux-litnum--falbec-tacsev-magdus-tobsyn/._~~.2_~~.shell_~~.terminal__/u/to-gan
|
|
|
|
/g/a/~harnyr-darlux-bitrux-litnum--falbec-tacsev-magdus-tobsyn/._~~.shell_~~.terminal__/u/child/2/main
|
|
|
|
/g/a/~harnyr-darlux-bitrux-litnum--falbec-tacsev-magdus-tobsyn/terminal/u/txt
|
|
|
|
/d/term-mess
|
|
|
|
//term/1
|
|
|
|
]
|
|
|
|
]
|
|
|
|
...
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
### [`:ye`](#ye)
|
|
|
|
|
|
|
|
`~zod/try=> :ye ["message"]`
|
|
|
|
|
|
|
|
Send a message to all ships. Often used to announce a continuity breach.
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|