Use this file to discover all available pages before exploring further.
Manage local profilesFor a detailed overview, please visit the manage CLI profiles guide.
cpln profile [SUBCOMMAND]
Commands: cpln profile delete <profiles...> Delete one or more referenced profiles cpln profile get [profiles...] Retrieve one or more profiles cpln profile login [ref] Create a profile named "default" and launch a browser to begin the interactive login process cpln profile set-default <profile> Set the referenced profile as the default cpln profile token [profile] Show the JWT token of the referenced profile cpln profile update <profile> Manage the referenced profile [aliases: create]Options: --version Show version number [boolean] --help Show help [boolean]
Positionals: profile One or more profile names to deleteFormat options: --output, -o Set the output format [choices: "text", "json", "yaml", "json-slim", "yaml-slim", "tf", "crd", "names"] --color Colorize the output [boolean] [default: true] --ts Timestamp format if the output format is text (e.g., --output=text) [choices: "iso", "local", "age"] --max Maximum number of records to show. A value less than 1 will return all records. [number] [default: 50]Request options: --token Override the authorization token --endpoint Override the API URL --insecure, -k Ignore TLS errors [boolean]Debug options: --verbose, -v Enable verbose output to stderr [boolean] [default: false] --debug, -d Show all HTTP communications [boolean] [default: false]Options: --version Show version number [boolean] --help Show help [boolean]
Positionals: profiles One or more profiles to show [array] [default: []]Format options: --output, -o Set the output format [choices: "text", "json", "yaml", "json-slim", "yaml-slim", "tf", "crd", "names"] --color Colorize the output [boolean] [default: true] --ts Timestamp format if the output format is text (e.g., --output=text) [choices: "iso", "local", "age"] --max Maximum number of records to show. A value less than 1 will return all records. [number] [default: 50]Request options: --token Override the authorization token --endpoint Override the API URL --insecure, -k Ignore TLS errors [boolean]Debug options: --verbose, -v Enable verbose output to stderr [boolean] [default: false] --debug, -d Show all HTTP communications [boolean] [default: false]Options: --version Show version number [boolean] --help Show help [boolean]
Create a profile named “default” and launch a browser to begin the interactive login processUsage
cpln profile login [ref] [OPTIONS]
Reference
Debug options: --verbose, -v Enable verbose output to stderr [boolean] [default: false] --debug, -d Show all HTTP communications [boolean] [default: false]Positionals: ref The resource reference. Usually it is the name of the resource.Options: --version Show version number [boolean] --help Show help [boolean]
An empty reference will return the token for the default profile
Reference
Positionals: profile Profile to retrieve the token forCommand options: --serve Serve token on a local server [boolean] --port Port for the local server [number] [default: 43200] --jwt View your jwt for the token server [boolean] --generateToken Generate a new jwt token for the token server [boolean]Format options: --output, -o Set the output format [choices: "text", "json", "yaml", "json-slim", "yaml-slim", "tf", "crd", "names"] --color Colorize the output [boolean] [default: true] --ts Timestamp format if the output format is text (e.g., --output=text) [choices: "iso", "local", "age"] --max Maximum number of records to show. A value less than 1 will return all records. [number] [default: 50]Request options: --token Override the authorization token --endpoint Override the API URL --insecure, -k Ignore TLS errors [boolean]Debug options: --verbose, -v Enable verbose output to stderr [boolean] [default: false] --debug, -d Show all HTTP communications [boolean] [default: false]Options: --version Show version number [boolean] --help Show help [boolean]
- 'cpln profile token --serve': Create a server (default port of 43200) instead of outputting the token directly. This command generates a profile specific token to authenticate against this token server.- 'cpln profile token --serve --port PORT': Sets the port of the token server.- 'cpln profile token --jwt': Outputs the token server token for the profile.- 'cpln profile token --generateToken': Regenerates a token for the profile, for the token server.An example use case is to integrate the server to a Postman collection. The collection can then make requests to the Control Plane API without needing to manually copy the token. After the server is running, by executing the 'cpln profile token --serve' command , the user can utilize the Pre-request script below in Postman:------------------------const postRequest = { url: "http://localhost:" + pm.environment.get("cplnTokenServerPort") + "/" + pm.environment.get("profile") + "/token", method: 'GET', header: { 'authorization': "Bearer " + pm.environment.get("cplnTokenServerToken") },};pm.sendRequest(postRequest, (err, response) => { pm.environment.set("token", response.text());})------------------------
Positionals: profile Name of the profile to update. If it does not exist, a new profile with that name will be created [required]Command options: --login Launch a browser to begin the interactive login process using the referenced profile --default Set the given profile as the default --org Set the given organization as the default organization of the referenced profile --gvc Set the given GVC as the default GVC of the referenced profileFormat options: --output, -o Set the output format [choices: "text", "json", "yaml", "json-slim", "yaml-slim", "tf", "crd", "names"] --color Colorize the output [boolean] [default: true] --ts Timestamp format if the output format is text (e.g., --output=text) [choices: "iso", "local", "age"] --max Maximum number of records to show. A value less than 1 will return all records. [number] [default: 50]Request options: --token Override the authorization token --endpoint Override the API URL --insecure, -k Ignore TLS errors [boolean]Debug options: --verbose, -v Enable verbose output to stderr [boolean] [default: false] --debug, -d Show all HTTP communications [boolean] [default: false]Options: --version Show version number [boolean] --help Show help [boolean]