CLI
Command reference
trustisto help <command> prints the same information in the terminal.
Global flags
| Flag | Meaning |
|---|---|
--api-url <url> |
Trustisto address to talk to. Defaults to the TRUSTISTO_API_URL environment variable, then https://trustisto.com. Logins are kept per address. |
--json |
Print the result as JSON. Supported by whoami and template deploy. |
--help |
Show help for the command. |
trustisto login
Log in with your e-mail and API token. See Logging in.
Shell
trustisto login [--email <email>] [--token <token>]| Flag | Meaning |
|---|---|
--email |
Account e-mail. Also read from TRUSTISTO_EMAIL. Asked for when left out. |
--token |
API token from Settings > Integrations. Also read from TRUSTISTO_TOKEN. Asked for when left out. |
trustisto logout
Forget the saved login for the Trustisto address.
Shell
trustisto logouttrustisto whoami
Show who you are logged in as, checking the token with the API.
Shell
trustisto whoami [--json]trustisto template new
Create a template from the base package for its type. See Creating a template.
Shell
trustisto template new <path> --type <popup|topbar|mail> [--categories <list>]| Argument / flag | Meaning |
|---|---|
<path> |
Folder to create. Must not exist or must be empty. |
--type |
Required. popup, topbar or mail. |
--categories |
Comma separated: collect, increase, guide, connect. Asked for when left out. |
trustisto template start
Serve a template folder for preview in the browser. See Preview and validation.
Shell
trustisto template start [path] [--port <port>]| Argument / flag | Meaning |
|---|---|
[path] |
Template folder. Defaults to the current folder. |
--port |
Port to listen on. Defaults to 8080. |
trustisto template validate
Check a template the way the upload does. Exits with code 1 when something is wrong. See Preview and validation.
Shell
trustisto template validate [path]trustisto template deploy
Validate the template and upload it to the panel as a template of your organization. See Deploying.
Shell
trustisto template deploy [path] [--name <name>] [--yes] [--new] [--json]| Argument / flag | Meaning |
|---|---|
[path] |
Template folder. Defaults to the current folder. |
--name |
Name of a newly created template. Asked for when left out. |
-y, --yes |
Overwrite the deployed template without asking. |
--new |
Create another template even when the folder is already deployed. |
--json |
Print the deployed template as JSON. |
trustisto template delete
Delete the deployed template from the panel. The local folder stays as it is.
Shell
trustisto template delete [path] [--yes]| Argument / flag | Meaning |
|---|---|
[path] |
Template folder. Defaults to the current folder. |
-y, --yes |
Delete without asking. |