man-pages/man1/cargo-owner.1.html
2021-03-31 01:06:50 +01:00

304 lines
7.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of CARGO-OWNER</TITLE>
</HEAD><BODY>
<H1>CARGO-OWNER</H1>
Section: &nbsp; (1)<BR>Updated: 2019-09-05<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
cargo-owner - Manage the owners of a crate on the registry
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<P>
<B>cargo owner [</B><I>OPTIONS</I>] --add <I>LOGIN</I> [<I>CRATE</I>]
<BR>
<B>cargo owner [</B><I>OPTIONS</I>] --remove <I>LOGIN</I> [<I>CRATE</I>]
<BR>
<B>cargo owner [</B><I>OPTIONS</I>] --list [<I>CRATE</I>]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
This command will modify the owners for a crate on the registry. Owners of a
crate can upload new versions and yank old versions. Non-team owners can also
modify the set of owners, so take care!
<P>
This command requires you to be authenticated with either the <B>--token</B> option
or using <B><A HREF="/cgi-bin/man/man2html?1+cargo-login">cargo-login</A></B>(1).
<P>
If the crate name is not specified, it will use the package name from the
current directory.
<P>
See
<I>the reference</I> &lt;<A HREF="https://doc.rust-lang.org/cargo/reference/publishing.html#cargo-owner">https://doc.rust-lang.org/cargo/reference/publishing.html#cargo-owner</A>&gt;
for more
information about owners and publishing.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<A NAME="lbAF">&nbsp;</A>
<H3>Owner Options</H3>
<P>
<B>-a</B>, <B>--add</B> <I>LOGIN</I>...
<DL COMPACT><DT id="1"><DD>
Invite the given user or team as an owner.
</DL>
<P>
<B>-r</B>, <B>--remove</B> <I>LOGIN</I>...
<DL COMPACT><DT id="2"><DD>
Remove the given user or team as an owner.
</DL>
<P>
<B>-l</B>, <B>--list</B>
<DL COMPACT><DT id="3"><DD>
List owners of a crate.
</DL>
<P>
<B>--token</B> <I>TOKEN</I>
<DL COMPACT><DT id="4"><DD>
API token to use when authenticating. This overrides the token stored in
the credentials file (which is created by <B><A HREF="/cgi-bin/man/man2html?1+cargo-login">cargo-login</A></B>(1)).
<P>
<I>Cargo config</I> &lt;<A HREF="https://doc.rust-lang.org/cargo/reference/config.html">https://doc.rust-lang.org/cargo/reference/config.html</A>&gt;
environment variables can be
used to override the tokens stored in the credentials file. The token for
crates.io may be specified with the <B>CARGO_REGISTRY_TOKEN</B> environment
variable. Tokens for other registries may be specified with environment
variables of the form <B>CARGO_REGISTRIES_NAME_TOKEN</B> where <B>NAME</B> is the name
of the registry in all capital letters.
</DL>
<P>
<B>--index</B> <I>INDEX</I>
<DL COMPACT><DT id="5"><DD>
The URL of the registry index to use.
</DL>
<P>
<B>--registry</B> <I>REGISTRY</I>
<DL COMPACT><DT id="6"><DD>
Name of the registry to use. Registry names are defined in
<I>Cargo config files</I> &lt;<A HREF="https://doc.rust-lang.org/cargo/reference/config.html">https://doc.rust-lang.org/cargo/reference/config.html</A>&gt;.
If not specified, the default registry is used, which is defined by the
<B>registry.default</B> config key which defaults to <B>crates-io</B>.
</DL>
<A NAME="lbAG">&nbsp;</A>
<H3>Display Options</H3>
<P>
<B>-v</B>, <B>--verbose</B>
<DL COMPACT><DT id="7"><DD>
Use verbose output. May be specified twice for &quot;very verbose&quot; output which
includes extra output such as dependency warnings and build script output.
May also be specified with the <B>term.verbose</B>
<I>config value</I> &lt;<A HREF="https://doc.rust-lang.org/cargo/reference/config.html">https://doc.rust-lang.org/cargo/reference/config.html</A>&gt;.
</DL>
<P>
<B>-q</B>, <B>--quiet</B>
<DL COMPACT><DT id="8"><DD>
No output printed to stdout.
</DL>
<P>
<B>--color</B> <I>WHEN</I>
<DL COMPACT><DT id="9"><DD>
Control when colored output is used. Valid values:
<P>
<DL COMPACT><DT id="10"><DD>
&bull;
<B>auto</B> (default): Automatically detect if color support is available on the
terminal.
</DL>
<P>
<DL COMPACT><DT id="11"><DD>
&bull;
<B>always</B>: Always display colors.
</DL>
<P>
<DL COMPACT><DT id="12"><DD>
&bull;
<B>never</B>: Never display colors.
</DL>
<P>
May also be specified with the <B>term.color</B>
<I>config value</I> &lt;<A HREF="https://doc.rust-lang.org/cargo/reference/config.html">https://doc.rust-lang.org/cargo/reference/config.html</A>&gt;.
</DL>
<A NAME="lbAH">&nbsp;</A>
<H3>Common Options</H3>
<P>
<B>+TOOLCHAIN</B>
<DL COMPACT><DT id="13"><DD>
If Cargo has been installed with rustup, and the first argument to <B>cargo</B>
begins with <B>+</B>, it will be interpreted as a rustup toolchain name (such
as <B>+stable</B> or <B>+nightly</B>).
See the
<I>rustup documentation</I> &lt;<A HREF="https://github.com/rust-lang/rustup/">https://github.com/rust-lang/rustup/</A>&gt;
for more information about how toolchain overrides work.
</DL>
<P>
<B>-h</B>, <B>--help</B>
<DL COMPACT><DT id="14"><DD>
Prints help information.
</DL>
<P>
<B>-Z</B> <I>FLAG</I>...
<DL COMPACT><DT id="15"><DD>
Unstable (nightly-only) flags to Cargo. Run <B>cargo -Z help</B> for
details.
</DL>
<A NAME="lbAI">&nbsp;</A>
<H2>ENVIRONMENT</H2>
<P>
See
<I>the reference</I> &lt;<A HREF="https://doc.rust-lang.org/cargo/reference/environment-variables.html">https://doc.rust-lang.org/cargo/reference/environment-variables.html</A>&gt;
for
details on environment variables that Cargo reads.
<A NAME="lbAJ">&nbsp;</A>
<H2>EXIT STATUS</H2>
<P>
0
<DL COMPACT><DT id="16"><DD>
Cargo succeeded.
</DL>
<P>
101
<DL COMPACT><DT id="17"><DD>
Cargo failed to complete.
</DL>
<A NAME="lbAK">&nbsp;</A>
<H2>EXAMPLES</H2>
<P>
<DL COMPACT><DT id="18"><DD>
1.
List owners of a package:
<P>
<DL COMPACT><DT id="19"><DD>
<PRE>
cargo owner --list foo
</PRE>
</DL>
</DL>
<P>
<DL COMPACT><DT id="20"><DD>
2.
Invite an owner to a package:
<P>
<DL COMPACT><DT id="21"><DD>
<PRE>
cargo owner --add username foo
</PRE>
</DL>
</DL>
<P>
<DL COMPACT><DT id="22"><DD>
3.
Remove an owner from a package:
<P>
<DL COMPACT><DT id="23"><DD>
<PRE>
cargo owner --remove username foo
</PRE>
</DL>
</DL>
<A NAME="lbAL">&nbsp;</A>
<H2>SEE ALSO</H2>
<P>
<B><A HREF="/cgi-bin/man/man2html?1+cargo">cargo</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+cargo-login">cargo-login</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+cargo-publish">cargo-publish</A></B>(1)
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="24"><A HREF="#lbAB">NAME</A><DD>
<DT id="25"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="26"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="27"><A HREF="#lbAE">OPTIONS</A><DD>
<DL>
<DT id="28"><A HREF="#lbAF">Owner Options</A><DD>
<DT id="29"><A HREF="#lbAG">Display Options</A><DD>
<DT id="30"><A HREF="#lbAH">Common Options</A><DD>
</DL>
<DT id="31"><A HREF="#lbAI">ENVIRONMENT</A><DD>
<DT id="32"><A HREF="#lbAJ">EXIT STATUS</A><DD>
<DT id="33"><A HREF="#lbAK">EXAMPLES</A><DD>
<DT id="34"><A HREF="#lbAL">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:08 GMT, March 31, 2021
</BODY>
</HTML>