Copy
Ask AI
cpln rest [SUBCOMMAND]
Copy
Ask AI
Commands:
cpln rest create <path> Submit a POST request followed by a GET request against the referenced path
cpln rest delete <path> Submit a DELETE request against the referenced path
cpln rest edit <path> Launches the default editor with the contents of the referenced path
cpln rest get <path> Submit a GET request against the referenced path
cpln rest patch <path> Submit a PATCH request against the referenced path
cpln rest post <path> Submit a POST request against the referenced path
cpln rest put <path> Submit a PUT request against the referenced path
Context options:
--profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable
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:
--help Show help [boolean]
rest create
Submit a POST request followed by a GET request against the referenced path UsageCopy
Ask AI
cpln rest create <path> --file FILE_NAME [OPTIONS]
If using the option —file -, press Control-D (or Control-Z if you are using Windows) to submit the request
Reference
Reference
Copy
Ask AI
Positionals:
path Resource path (e.g., /org/test/user/adam) [required]
Command options:
--file, -f File to load the request from. Use `--file -` to enable input from stdin.
--header, -H HTTP headers in curl format: "x-header: value" [array]
Context options:
--profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable
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:
--help Show help [boolean]
Example
Example
Copy
Ask AI
cpln rest create /org --file create-org.json
rest delete
Submit a DELETE request against the referenced path UsageCopy
Ask AI
cpln rest delete <path> [OPTIONS]
Reference
Reference
Copy
Ask AI
Positionals:
path Resource path (e.g., /org/test/user/adam) [required]
Command options:
--header, -H HTTP headers in curl format: "x-header: value" [array]
Context options:
--profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable
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:
--help Show help [boolean]
Example
Example
Copy
Ask AI
cpln rest delete /org/demo-cpln-organization/gvc/demo-gvc
rest edit
Launches the default editor with the contents of the referenced path UsageCopy
Ask AI
cpln rest edit <path> [OPTIONS]
The default editor can be set by using the EDITOR environment variable.
Reference
Reference
Copy
Ask AI
Positionals:
path Resource path (e.g., /org/test/user/adam) [required]
Command options:
--header, -H HTTP headers in curl format: "x-header: value" [array]
Context options:
--profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable
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:
--help Show help [boolean]
Example
Example
Copy
Ask AI
cpln rest edit /org/demo-cpln-organization
rest get
Submit a GET request against the referenced path UsageCopy
Ask AI
cpln rest get <path> [OPTIONS]
An empty reference will return all references
Reference
Reference
Copy
Ask AI
Positionals:
path Resource path (e.g., /org/test/user/adam) [required]
Command options:
--header, -H HTTP headers in curl format: "x-header: value" [array]
Context options:
--profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable
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:
--help Show help [boolean]
Example
Example
Copy
Ask AI
cpln rest get /org/demo-cpln-organization
rest patch
Submit a PATCH request against the referenced path UsageCopy
Ask AI
cpln rest patch <path> --file FILE_NAME [OPTIONS]
If using the option —file -, press Control-D (or Control-Z if you are using Windows) to submit the request
Reference
Reference
Copy
Ask AI
Positionals:
path Resource path (e.g., /org/test/user/adam) [required]
Command options:
--file, -f File to load the request from. Use `--file -` to enable input from stdin.
--header, -H HTTP headers in curl format: "x-header: value" [array]
Context options:
--profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable
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:
--help Show help [boolean]
Example
Example
Copy
Ask AI
cpln rest patch /org/demo-cpln-organization --file update-org.json
rest post
Submit a POST request against the referenced path UsageCopy
Ask AI
cpln rest post <path> --file FILE_NAME [OPTIONS]
If using the option —file -, press Control-D (or Control-Z if you are using Windows) to submit the request
Reference
Reference
Copy
Ask AI
Positionals:
path Resource path (e.g., /org/test/user/adam) [required]
Command options:
--file, -f File to load the request from. Use `--file -` to enable input from stdin.
--header, -H HTTP headers in curl format: "x-header: value" [array]
Context options:
--profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable
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:
--help Show help [boolean]
Example
Example
Copy
Ask AI
cpln rest post /org --file new-org.json
rest put
Submit a PUT request against the referenced path UsageCopy
Ask AI
cpln rest put <path> [OPTIONS]
If using the option —file -, press Control-D (or Control-Z if you are using Windows) to submit the request
Reference
Reference
Copy
Ask AI
Positionals:
path Resource path (e.g., /org/test/user/adam) [required]
Command options:
--file, -f File to load the request from. Use `--file -` to enable input from stdin.
--header, -H HTTP headers in curl format: "x-header: value" [array]
Context options:
--profile Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable
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:
--help Show help [boolean]
Example
Example
Copy
Ask AI
cpln rest put /org/demo-cpln-organization --file update-org.json