Official CLI for itopia Spaces
An oclif-based CLI wrapper for the itopia Spaces API
For more information about itopia Spaces, see https://spaces.itopia.com
For more information about the itopia Spaces API, see https://api.spaces.itopia.com
- Download a pre-built executable for your OS, attached to the latest release.
- Save it with the name
spacesin a convenient directory. - Run
spaces helpand much more!
Questions? Requests? Please let us know on GitHub!
If you'd prefer to build your executable from source, first ensure that you have Node.js v14 and npm v7+ installed. Then, clone this repo and run the following commands inside it:
$ npm install
$ npm run buildYou should find freshly-built executables for Linux/MacOS/Windows
in the repo's /dist/ directory.
The following documentation is automatically generated. While the examples should be accurate, the "See code" hyperlinks do not work.
spaces collection:add-end-userspaces collection:deletespaces collection:listspaces collection:list-spacesspaces collection:readspaces collection:remove-end-userspaces deployment:createspaces deployment:deletespaces deployment:listspaces deployment:list-collectionsspaces deployment:list-spacesspaces deployment:readspaces deployment:updatespaces help [COMMAND]spaces image:createspaces image:deletespaces image:listspaces image:readspaces image:updatespaces loginspaces logoutspaces organization:add-adminspaces organization:deletespaces organization:listspaces organization:list-collectionsspaces organization:list-deploymentsspaces organization:list-imagesspaces organization:list-spacesspaces organization:readspaces organization:remove-adminspaces organization:updatespaces space:deletespaces space:listspaces space:read
Add an end user to a collection (this grants permission to use the collection's spaces)
USAGE
$ spaces collection:add-end-user
OPTIONS
-h, --help show CLI help
--collectionId=collectionId (required)
--deploymentId=deploymentId (required)
--email=email (required)
--notify (required)
EXAMPLE
spaces collection:end-user-add --id='abc123CollectionID' --deploymentId='abc123DeploymentID'
--emailAddress='developer@example.com' --notify
See code: src/commands/collection/add-end-user.ts
Delete a collection
USAGE
$ spaces collection:delete
OPTIONS
-h, --help show CLI help
--collectionId=collectionId (required)
--deploymentId=deploymentId (required)
EXAMPLE
spaces collection:delete --collectionId='abc123CollectionID' --deploymentId='abc123DeploymentID'
See code: src/commands/collection/delete.ts
List all of your collections
USAGE
$ spaces collection:list
OPTIONS
-h, --help show CLI help
EXAMPLE
spaces collection:list
See code: src/commands/collection/list.ts
List all spaces in a collection
USAGE
$ spaces collection:list-spaces
OPTIONS
-h, --help show CLI help
--deploymentId=deploymentId (required)
--id=id (required)
EXAMPLE
spaces collection:list-spaces --id='abc123CollectionID' --deploymentId='abc123DeploymentID'
See code: src/commands/collection/list-spaces.ts
Read all properties of a collection
USAGE
$ spaces collection:read
OPTIONS
-h, --help show CLI help
--deploymentId=deploymentId (required)
--id=id (required)
EXAMPLE
spaces collection:read --id='abc123CollectionID' --deploymentId='abc123DeploymentID'
See code: src/commands/collection/read.ts
Remove an end user from a collection (this revokes permission to use the collection's spaces)
USAGE
$ spaces collection:remove-end-user
OPTIONS
-h, --help show CLI help
--deploymentId=deploymentId (required)
--email=email (required)
--id=id (required)
EXAMPLE
spaces collection:remove-end-user --id='abc123CollectionID' --deploymentId='abc123DeploymentID'
--emailAddress='developer@example.com'
See code: src/commands/collection/remove-end-user.ts
Create a new deployment
USAGE
$ spaces deployment:create
OPTIONS
-h, --help show CLI help
--isGoogleIdentityProviderEnabled (required)
--name=name (required)
--organizationId=organizationId (required)
--region=region (required)
EXAMPLE
spaces deployment:create --name='My Deployment' --organizationId='abc123OrganizationID'
See code: src/commands/deployment/create.ts
Delete a deployment
USAGE
$ spaces deployment:delete
OPTIONS
-h, --help show CLI help
--id=id (required)
--organizationId=organizationId (required)
EXAMPLE
spaces deployment:delete --id='abc123DeploymentID' --organizationId='abc123OrganizationID'
See code: src/commands/deployment/delete.ts
List all of your deployments
USAGE
$ spaces deployment:list
OPTIONS
-h, --help show CLI help
EXAMPLE
spaces deployment:list
See code: src/commands/deployment/list.ts
List all collections in a deployment
USAGE
$ spaces deployment:list-collections
OPTIONS
-h, --help show CLI help
--id=id (required)
--organizationId=organizationId (required)
EXAMPLE
spaces deployment:list-collections --id='abc123DeploymentID' --organizationId='abc123OrganizationID'
See code: src/commands/deployment/list-collections.ts
List all spaces in a deployment
USAGE
$ spaces deployment:list-spaces
OPTIONS
-h, --help show CLI help
--id=id (required)
--organizationId=organizationId (required)
EXAMPLE
spaces deployment:list-spaces --id='abc123DeploymentID' --organizationId='abc123OrganizationID'
See code: src/commands/deployment/list-spaces.ts
Read all properties of a deployment
USAGE
$ spaces deployment:read
OPTIONS
-h, --help show CLI help
--id=id (required)
--organizationId=organizationId (required)
EXAMPLE
spaces deployment:read --id='abc123DeploymentID'
See code: src/commands/deployment/read.ts
Update one or more of a deployment's properties
USAGE
$ spaces deployment:update
OPTIONS
-h, --help show CLI help
--id=id (required)
--isGoogleIdentityProviderEnabled (required)
--name=name (required)
--organizationId=organizationId (required)
EXAMPLE
spaces deployment:update --id='abc123OrganizationID' --isGoogleIdentityProviderEnabled --name='My Deployment'
See code: src/commands/deployment/update.ts
display help for spaces
USAGE
$ spaces help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
Create a new image
USAGE
$ spaces image:create
OPTIONS
-h, --help show CLI help
--description=description (required)
--icon=icon (required)
--imageRepositoryUrl=imageRepositoryUrl (required)
--imageTag=imageTag (required)
--name=name (required)
--organizationId=organizationId (required)
--recommendedContainerSize=recommendedContainerSize (required)
--recommendedDockerPersistentStorageSizeInGigabytes=recommendedDockerPersistentStorageSizeInGigabytes (required)
--recommendedEnableDocker
--recommendedEnableInboundClipboardRedirection
--recommendedEnableOutboundClipboardRedirection
--recommendedEnablePdfPrinter
--recommendedEnablePersistentHome
--recommendedInactivityTerminationDelayInMinutes=recommendedInactivityTerminationDelayInMinutes (required)
--recommendedPersistentHomeSizeInGigabytes=recommendedPersistentHomeSizeInGigabytes (required)
--status=status (required)
EXAMPLE
spaces image:create --description='This is a very good image.' --icon='base64imagecontent'
--imageRepositoryUrl='https://my.registry.com/my/image' --imageTag='my.version'
--organizationId='abc123OrganizationID' --status=LIVE
See code: src/commands/image/create.ts
Delete an image
USAGE
$ spaces image:delete
OPTIONS
-h, --help show CLI help
--id=id (required)
--organizationId=organizationId (required)
EXAMPLE
spaces image:delete --id='abc123ImageID' --organizationId='abc123OrganizationID'
See code: src/commands/image/delete.ts
List all of your images
USAGE
$ spaces image:list
OPTIONS
-h, --help show CLI help
EXAMPLE
spaces image:list
See code: src/commands/image/list.ts
Read all properties of an image
USAGE
$ spaces image:read
OPTIONS
-h, --help show CLI help
--id=id (required)
--organizationId=organizationId (required)
EXAMPLE
spaces image:read --id='abc123ImageID' --organizationId='abc123OrganizationID'
See code: src/commands/image/read.ts
Update an image's properties
USAGE
$ spaces image:update
OPTIONS
-h, --help show CLI help
--description=description
--icon=icon
--id=id (required)
--isPublic
--organizationId=organizationId (required)
--status=status
EXAMPLE
spaces image:update --id='abc123ImageID' --description='This is a very good image.' --icon='base64imagecontent'
--organizationId='abc123OrganizationID' --status=LIVE
See code: src/commands/image/update.ts
Generate & save an authentication token
USAGE
$ spaces login
OPTIONS
-h, --help show CLI help
See code: src/commands/login.ts
Clear the saved authentication token
USAGE
$ spaces logout
OPTIONS
-h, --help show CLI help
See code: src/commands/logout.ts
Add someone to an organization's list of administrators
USAGE
$ spaces organization:add-admin
OPTIONS
-h, --help show CLI help
--email=email (required)
--id=id (required)
EXAMPLE
spaces organization:add-admin --id='abc123OrganizationID' --email='someone@example.com'
See code: src/commands/organization/add-admin.ts
Delete an organization
USAGE
$ spaces organization:delete
OPTIONS
-h, --help show CLI help
--id=id (required)
EXAMPLE
spaces organization:delete --id='abc123OrganizationID'
See code: src/commands/organization/delete.ts
List all of your organizations
USAGE
$ spaces organization:list
OPTIONS
-h, --help show CLI help
EXAMPLE
spaces organization:list
See code: src/commands/organization/list.ts
List all collections in an organization
USAGE
$ spaces organization:list-collections
OPTIONS
-h, --help show CLI help
--id=id (required)
EXAMPLE
spaces organization:list-collections --id='abc123OrganizationID'
See code: src/commands/organization/list-collections.ts
List all deployments in an organization
USAGE
$ spaces organization:list-deployments
OPTIONS
-h, --help show CLI help
--id=id (required)
EXAMPLE
spaces organization:list-deployments --id='abc123OrganizationID'
See code: src/commands/organization/list-deployments.ts
List all images in an organization
USAGE
$ spaces organization:list-images
OPTIONS
-h, --help show CLI help
--id=id (required)
EXAMPLE
spaces organization:list-images --id='abc123OrganizationID'
See code: src/commands/organization/list-images.ts
List all spaces in an organization
USAGE
$ spaces organization:list-spaces
OPTIONS
-h, --help show CLI help
--id=id (required)
EXAMPLE
spaces organization:list-spaces --id='abc123OrganizationID'
See code: src/commands/organization/list-spaces.ts
Read all properties of an organization
USAGE
$ spaces organization:read
OPTIONS
-h, --help show CLI help
--id=id (required)
EXAMPLE
spaces organization:read --id='abc123OrganizationID'
See code: src/commands/organization/read.ts
Remove someone from an organization's list of administrators
USAGE
$ spaces organization:remove-admin
OPTIONS
-h, --help show CLI help
--email=email (required)
--id=id (required)
EXAMPLE
spaces organization:remove-admin --id='abc123OrganizationID' --email='someone@example.com'
See code: src/commands/organization/remove-admin.ts
Update an organization's name
USAGE
$ spaces organization:update
OPTIONS
-h, --help show CLI help
--id=id (required)
--name=name (required)
EXAMPLE
spaces organization:update --id='abc123OrganizationID' --name='My Organization'
See code: src/commands/organization/update.ts
Delete a space
USAGE
$ spaces space:delete
OPTIONS
-h, --help show CLI help
--collectionId=collectionId (required)
--deploymentId=deploymentId (required)
--forceShutDownAllSessions
--spaceId=spaceId (required)
EXAMPLE
spaces space:delete --collectionId='abc123CollectionID' --deploymentId='abc123DeploymentID' --forceShutDownAllSessions
--spaceId='abc123SpaceID'
See code: src/commands/space/delete.ts
List all of your spaces
USAGE
$ spaces space:list
OPTIONS
-h, --help show CLI help
EXAMPLE
spaces space:list
See code: src/commands/space/list.ts
Read all properties of a space
USAGE
$ spaces space:read
OPTIONS
-h, --help show CLI help
--collectionId=collectionId (required)
--deploymentId=deploymentId (required)
--id=id (required)
EXAMPLE
spaces space:read --id='abc123SpaceID' --collectionId='abc123CollectionID' --deploymentId='abc123DeploymentID'
See code: src/commands/space/read.ts