blob: efea0270ff7af7ba890b8263940d59e2d0eea6ce [file] [log] [blame]
Todd Wang1624bf92015-04-22 16:53:57 -07001// Copyright 2015 The Vanadium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// This file was auto-generated via go generate.
6// DO NOT UPDATE MANUALLY
7
8/*
9Command deviced is used to launch, configure and manage the deviced daemon,
10which implements the v.io/v23/services/device interfaces.
11
12Usage:
Todd Wang1624bf92015-04-22 16:53:57 -070013 deviced
Todd Wangf1550cf2015-05-11 10:58:41 -070014 deviced <command>
Todd Wang1624bf92015-04-22 16:53:57 -070015
16The deviced commands are:
17 install Install the device manager.
18 uninstall Uninstall the device manager.
19 start Start the device manager.
20 stop Stop the device manager.
21 profile Dumps profile for the device manager.
22 help Display help for commands or topics
23
24The global flags are:
25 -deviced-port=0
26 the port number of assign to the device manager service. The hostname/IP
27 address part of --v23.tcp.address is used along with this port. By default,
28 the port is assigned by the OS.
29 -name=
30 name to publish the device manager at
31 -neighborhood-name=
32 if provided, it will enable sharing with the local neighborhood with the
33 provided name. The address of the local mounttable will be published to the
34 neighboorhood and everything in the neighborhood will be visible on the local
35 mounttable.
36 -proxy-port=0
37 the port number to assign to the proxy service. 0 means no proxy service.
38 -restart-exit-code=0
39 exit code to return when device manager should be restarted
40 -use-pairing-token=false
41 generate a pairing token for the device manager that will need to be provided
42 when a device is claimed
43
Arup Mukherjee0cf01582015-09-04 13:23:02 -070044 -agentsock=
45 Path to the application's security agent socket.
Todd Wang1624bf92015-04-22 16:53:57 -070046 -alsologtostderr=true
47 log to standard error as well as files
Arup Mukherjeec6dd50e2015-04-23 15:20:56 -070048 -chown=false
49 Change owner of files and directories given as command-line arguments to the
50 user specified by this flag
Todd Wang1624bf92015-04-22 16:53:57 -070051 -dryrun=false
52 Elides root-requiring systemcalls.
53 -kill=false
54 Kill process ids given as command-line arguments.
55 -log_backtrace_at=:0
56 when logging hits line file:N, emit a stack trace
57 -log_dir=
58 if non-empty, write log files to this directory
59 -logdir=
60 Path to the log directory.
61 -logtostderr=false
62 log to standard error instead of files
63 -max_stack_buf_size=4292608
64 max size in bytes of the buffer to use for logging stack traces
Jiri Simsa26f1c4d2015-08-09 17:49:40 -070065 -metadata=<just specify -metadata to activate>
66 Displays metadata for the program and exits.
Todd Wang1624bf92015-04-22 16:53:57 -070067 -minuid=501
68 UIDs cannot be less than this number.
69 -progname=unnamed_app
70 Visible name of the application, used in argv[0]
71 -rm=false
72 Remove the file trees given as command-line arguments.
73 -run=
74 Path to the application to exec.
75 -stderrthreshold=2
76 logs at or above this threshold go to stderr
77 -username=
78 The UNIX user name used for the other functions of this tool.
79 -v=0
80 log level for V logs
81 -v23.credentials=
82 directory to use for storing security credentials
83 -v23.i18n-catalogue=
84 18n catalogue files to load, comma separated
Todd Wang1624bf92015-04-22 16:53:57 -070085 -v23.namespace.root=[/(dev.v.io/role/vprod/service/mounttabled)@ns.dev.v.io:8101]
86 local namespace root; can be repeated to provided multiple roots
87 -v23.permissions.file=map[]
88 specify a perms file as <name>:<permsfile>
89 -v23.permissions.literal=
90 explicitly specify the runtime perms as a JSON-encoded access.Permissions.
91 Overrides all --v23.permissions.file flags.
92 -v23.proxy=
93 object name of proxy service to use to export services across network
94 boundaries
95 -v23.tcp.address=
96 address to listen on
97 -v23.tcp.protocol=wsh
98 protocol to listen with
99 -v23.vtrace.cache-size=1024
100 The number of vtrace traces to store in memory.
101 -v23.vtrace.collect-regexp=
102 Spans and annotations that match this regular expression will trigger trace
103 collection.
104 -v23.vtrace.dump-on-shutdown=true
105 If true, dump all stored traces on runtime shutdown.
106 -v23.vtrace.sample-rate=0
107 Rate (from 0.0 to 1.0) to sample vtrace traces.
108 -vmodule=
Cosmos Nicolaou6c363882015-06-02 11:51:27 -0700109 comma-separated list of pattern=N settings for filename-filtered logging
110 -vpath=
111 comma-separated list of pattern=N settings for file pathname-filtered logging
Todd Wang1624bf92015-04-22 16:53:57 -0700112 -workspace=
113 Path to the application's workspace directory.
114
115Deviced install
116
117Performs installation of device manager into V23_DEVICE_DIR (if the env var
118set), or into the current dir otherwise
119
120Usage:
121 deviced install [flags] [-- <arguments for device manager>]
122
123Arguments to be passed to the installed device manager
124
125The deviced install flags are:
126 -agent=
127 path to security agent
128 -devuser=
129 if specified, device manager will run as this user. Provided by devicex but
130 ignored .
131 -from=
132 if specified, performs the installation from the provided application
133 envelope object name
134 -init_helper=
135 path to sysinit helper
136 -init_mode=false
137 if set, installs the device manager with the system init service manager
138 -origin=
139 if specified, self-updates will use this origin
140 -session_mode=false
141 if set, installs the device manager to run a single session. Otherwise, the
142 device manager is configured to get restarted upon exit
143 -single_user=false
144 if set, performs the installation assuming a single-user system
145 -suid_helper=
146 path to suid helper
147
148Deviced uninstall
149
150Removes the device manager installation from V23_DEVICE_DIR (if the env var
151set), or the current dir otherwise
152
153Usage:
154 deviced uninstall [flags]
155
156The deviced uninstall flags are:
157 -suid_helper=
158 path to suid helper
159
160Deviced start
161
162Starts the device manager installed under from V23_DEVICE_DIR (if the env var
163set), or the current dir otherwise
164
165Usage:
166 deviced start
167
168Deviced stop
169
170Stops the device manager installed under from V23_DEVICE_DIR (if the env var
171set), or the current dir otherwise
172
173Usage:
174 deviced stop
175
176Deviced profile
177
178Prints the internal profile description for the device manager.
179
180Usage:
181 deviced profile
182
Todd Wang11440452015-05-29 18:05:29 -0700183Deviced help - Display help for commands or topics
Todd Wang1624bf92015-04-22 16:53:57 -0700184
185Help with no args displays the usage of the parent command.
186
187Help with args displays the usage of the specified sub-command or help topic.
188
189"help ..." recursively displays help for all commands and topics.
190
Todd Wang1624bf92015-04-22 16:53:57 -0700191Usage:
192 deviced help [flags] [command/topic ...]
193
194[command/topic ...] optionally identifies a specific sub-command or help topic.
195
196The deviced help flags are:
197 -style=compact
198 The formatting style for help output:
199 compact - Good for compact cmdline output.
200 full - Good for cmdline output, shows all global flags.
201 godoc - Good for godoc processing.
202 Override the default by setting the CMDLINE_STYLE environment variable.
Todd Wangf1550cf2015-05-11 10:58:41 -0700203 -width=<terminal width>
204 Format output to this target width in runes, or unlimited if width < 0.
205 Defaults to the terminal width if available. Override the default by setting
206 the CMDLINE_WIDTH environment variable.
Todd Wang1624bf92015-04-22 16:53:57 -0700207*/
208package main