@platfio/cli
v0.0.3
Published
CLI wrapper for the Platfio agent-app REST API
Maintainers
Readme
Platfio CLI
The official command-line interface for running Platfio agency and tool commands.
Install
npm install -g @platfio/cliRun with:
platfio --helpYou can also run without global install:
npx @platfio/cli --helpQuick Start
platfio auth login --env production
platfio auth status --output text
platfio agencies list --output table
platfio agencies select <agencyId>
platfio tools list --output table
platfio tools run getAgency --args '{}'Command Groups
Authentication
platfio auth login [--token <token>] [--env production|staging|emulator]
platfio auth status
platfio auth logoutAgency Context
platfio user show [--refresh]
platfio agencies list [--refresh]
platfio agencies select <agencyId>
platfio agencies currentTool Discovery And Execution
platfio tools list [--refresh]
platfio tools get <toolName> [--refresh]
platfio tools run <toolName> --args '{"key":"value"}'Local State
platfio cache status
platfio cache clear
platfio config show
platfio config pathsOutput Formatting
Use --output on commands to control formatting:
json(default)jsonlcsvtabletext
Examples:
platfio agencies list --output table
platfio agencies list --output csv
platfio tools run getBusinesses --args '{"limit":3}' --output jsonlEnvironment Variables
PLATFIO_AGENT_API_BASE_URLPLATFIO_AGENT_API_ENVPLATFIO_AGENT_API_TOKENPLATFIO_CLI_HOME
Homepage
https://platfio.com/cli
