Command Line Interface
Installation
Requirements:
npm i -g @apio/cliConfiguration
To complete this tutorial you need an account.
apio account loginThe default target is the platform at https://api.apio.network, but you can change it with
apio config set apiBaseUrl https://example.comDocumentation
Open the documentation
Opens the browser at the documentation page
apio docsAccounts
Signup
Create an account
apio account createLogin
Authenticate with the platform
apio account loginLogout
Forgets authentication
apio account logoutConfiguration commands
Get configuration
Prints the current configuration to the terminal
apio config getUpdates configuration
Changes a configuration value
apio config set apiBaseUrl https://api.example.comProjects
List projects
Returns a filtered sorted and paginated list of projects.
apio projects listGet projects by uuid
Get projects by uuid, if any matches.
apio projects get <resourceId>Create projects
Creates projects. Body can be passed from a JSON file specifying it as @path.json or by passing fields as —field=value
apio projects create @resource.json --someField=someValueUpdate projects
Update projects. Update can be passed from a JSON file specifying it as @path.json or by passing fields as —field=value
apio projects update <resourceId> @resource.json --someField=someValueDelete projects by uuid
Delete projects by uuid.
apio projects delete <resourceId>Devices
List devices
Returns a filtered sorted and paginated list of devices.
apio devices listGet devices by uuid
Get devices by uuid, if any matches.
apio devices get <resourceId>Create devices
Creates devices. Body can be passed from a JSON file specifying it as @path.json or by passing fields as —field=value
apio devices create @resource.json --someField=someValueUpdate devices
Update devices. Update can be passed from a JSON file specifying it as @path.json or by passing fields as —field=value
apio devices update <resourceId> @resource.json --someField=someValueDelete devices by uuid
Delete devices by uuid.
apio devices delete <resourceId>Plants
List plants
Returns a filtered sorted and paginated list of plants.
apio plants listGet plants by uuid
Get plants by uuid, if any matches.
apio plants get <resourceId>Create plants
Creates plants. Body can be passed from a JSON file specifying it as @path.json or by passing fields as —field=value
apio plants create @resource.json --someField=someValueUpdate plants
Update plants. Update can be passed from a JSON file specifying it as @path.json or by passing fields as —field=value
apio plants update <resourceId> @resource.json --someField=someValueDelete plants by uuid
Delete plants by uuid.
apio plants delete <resourceId>Nodes
List nodes
Returns a filtered sorted and paginated list of nodes.
apio nodes listGet nodes by uuid
Get nodes by uuid, if any matches.
apio nodes get <resourceId>Create nodes
Creates nodes. Body can be passed from a JSON file specifying it as @path.json or by passing fields as —field=value
apio nodes create @resource.json --someField=someValueUpdate nodes
Update nodes. Update can be passed from a JSON file specifying it as @path.json or by passing fields as —field=value
apio nodes update <resourceId> @resource.json --someField=someValueDelete nodes by uuid
Delete nodes by uuid.
apio nodes delete <resourceId>API keys
List apikeys
Returns a filtered sorted and paginated list of apikeys.
apio apikeys listGet apikeys by uuid
Get apikeys by uuid, if any matches.
apio apikeys get <resourceId>Create apikeys
Creates apikeys. Body can be passed from a JSON file specifying it as @path.json or by passing fields as —field=value
apio apikeys create @resource.json --someField=someValueUpdate apikeys
Update apikeys. Update can be passed from a JSON file specifying it as @path.json or by passing fields as —field=value
apio apikeys update <resourceId> @resource.json --someField=someValueDelete apikeys by uuid
Delete apikeys by uuid.
apio apikeys delete <resourceId>Roles
List roles
Returns a filtered sorted and paginated list of roles.
apio roles listGet roles by uuid
Get roles by uuid, if any matches.
apio roles get <resourceId>Create roles
Creates roles. Body can be passed from a JSON file specifying it as @path.json or by passing fields as —field=value
apio roles create @resource.json --someField=someValueUpdate roles
Update roles. Update can be passed from a JSON file specifying it as @path.json or by passing fields as —field=value
apio roles update <resourceId> @resource.json --someField=someValueDelete roles by uuid
Delete roles by uuid.
apio roles delete <resourceId>ACL rules
List aclrules
Returns a filtered sorted and paginated list of aclrules.
apio aclrules listGet aclrules by uuid
Get aclrules by uuid, if any matches.
apio aclrules get <resourceId>Create aclrules
Creates aclrules. Body can be passed from a JSON file specifying it as @path.json or by passing fields as —field=value
apio aclrules create @resource.json --someField=someValueUpdate aclrules
Update aclrules. Update can be passed from a JSON file specifying it as @path.json or by passing fields as —field=value
apio aclrules update <resourceId> @resource.json --someField=someValueDelete aclrules by uuid
Delete aclrules by uuid.
apio aclrules delete <resourceId>