cloudflare-docs icon indicating copy to clipboard operation
cloudflare-docs copied to clipboard

Enroll via the CLI guide is using obsoleted commands

Open Le0Developer opened this issue 2 years ago • 6 comments

Existing documentation URL(s)

https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/manual-deployment/#enroll-via-the-cli

What changes are you suggesting?

Running the 3rd step yields this deprecation warning:

$ warp-cli teams-enroll xxx
NOTICE:

Your organization is using Cloudflare for Teams, a security platform that makes
connections to the Internet and applications faster and safer.

What information is available to administrators of my organization?

The following information may be viewed by administrators from your
organization:

* the websites you visit
* the times you visited them

More information is available at:
- https://www.cloudflare.com/application/terms/
- https://www.cloudflare.com/application/privacypolicy/

Accept Terms of Service and Privacy Policy? [y/N] y

Warning: The "teams-enroll" command will be deprecated in a future release. Please use "registration initialize-token-callback" instead

^ last line

Additional information

No response

Le0Developer avatar Jul 26 '24 18:07 Le0Developer

using version 2024.9.346.0, the teams-enroll command no longer exists, yet is still referenced by the documentation.

$ warp-cli teams-enroll
error: unrecognized subcommand 'teams-enroll'

Usage: warp-cli [OPTIONS] <COMMAND>

For more information, try '--help'.

stuart-c-moore avatar Oct 11 '24 09:10 stuart-c-moore

Thanks for opening/updating this issue. We are tracking this work in an internal ticket (PCX-14001).

ranbel avatar Oct 11 '24 14:10 ranbel

using version 2024.9.346.0, the teams-enroll command no longer exists, yet is still referenced by the documentation.

$ warp-cli teams-enroll
error: unrecognized subcommand 'teams-enroll'

Usage: warp-cli [OPTIONS] <COMMAND>

For more information, try '--help'.

same there

pfan94 avatar Oct 11 '24 18:10 pfan94

Also https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/private-net/warp-connector/ references warp-cli account and warp-cli delete which is also not recognized. Let me know if I need to open a separate issue for this.

CleanShot 2024-10-11 at 15 06 06@2x

gatesry avatar Oct 11 '24 20:10 gatesry

Also https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/private-net/warp-connector/ references warp-cli account and warp-cli delete which is also not recognized. Let me know if I need to open a separate issue for this.

No need to open a separate issue -- we are in the process of removing these commands from the WARP Connector setup procedure (#16486).

ranbel avatar Oct 11 '24 20:10 ranbel

Replacement as far as I can tell for wrap-cli teams-enroll is warp-cli registration new <team name>

user:~$ warp-cli registration Registration settings

Usage: warp-cli registration [OPTIONS]

Commands: show Show information about the current registration new Register this client (Must be run before first connection!) delete Delete current registration organization Get the name of the current Teams organization devices Display the list of devices associated with the current registration license Attach the current registration to a different account using a license key help Print this message or the help of the given subcommand(s)

toby-j avatar Oct 11 '24 21:10 toby-j