Package: fabric-cli
FABRIC User CLIFabric User CLI for experimentsOverviewUser CLI supports following kinds commands:Tokens: Token managementSlices: Slice managementSlivers: Sliver managementResources: Resource managementCommandSubCommandActionInputOutputtokensissueIssue token with projectname and scopeprojectnameProject Name,scopeScopePoints user to Credential Manager to generate the tokenstokenrefreshRefresh tokenprojectnameProject Name,scopeScope,refreshtokenRefresh TokenReturns new identity and refresh tokenstokenrevokeRevoke tokenrefreshtokenRefresh TokenSuccess or Failure statusslicesqueryQuery user slice(s)idtokenIdentity Token,refreshtokenRefresh Token,projectnameProject Name,scopeScope,sliceidSlice IdList of Slices or Graph ML representing slice identified by Slice IdslicescreateCreate user sliceidtokenIdentity Token,refreshtokenRefresh Token,projectnameProject Name,scopeScope,slicenameSlice Name,slicegraphSlice graphList of Slivers created for the SliceslicesdeleteDelete user sliceidtokenIdentity Token,refreshtokenRefresh Token,projectnameProject Name,scopeScope,sliceidSlice IdSuccess or Failure StatussliversqueryQuery user sliver(s)idtokenIdentity Token,refreshtokenRefresh Token,projectnameProject Name,scopeScope,sliceidSlice Id,sliveridSliver IdList of Slivers for the slice identified by Slice Id or Sliver identified by Sliver IdresourcesqueryQuery resourcesidtokenIdentity Token,refreshtokenRefresh Token,projectnameProject Name,scopeScopeGraph ML representing the available resourcesRequirementsPython 3.7+Pre-requisitesEnsure that following are installedvirtualenvvirtualenvwrapperInstallationMultiple installation options possible. For CF development the recommended method is to install from GitHub MASTER branch:$ mkvirtualenv usercli
$ workon usercli
$ pip install git+https://github.com/fabric-testbed/fabric-cli.gitFor inclusion in tools, etc, use PyPi$ mkvirtualenv usercli
$ workon usercli
$ pip install fabric-cliConfigurationUser CLI expects the user to setFABRIC_ORCHESTRATOR_HOSTandFABRIC_CREDMGR_HOSTenvironment variables.In addition, User is expected to pass either Fabric Identity Token or Fabric Refresh Token to all the orchestrator commands.
Alternatively, user is expected to set atleast one of the environment variablesFABRIC_ID_TOKENandFABRIC_REFRESH_TOKEN.Create config.yml with default content as shown below.To enable CLI auto-completion, add following line to your ~/.bashrceval "$(_FABRIC_CLI_COMPLETE=source_bash fabric-cli)"Open a new shell to enable completion.
Or run the eval command directly in your current shell to enable it temporarily.UsageUser CLI supports token and resources commands:(usercli) $ fabric-cli
Usage: fabric-cli [OPTIONS] COMMAND [ARGS]...

Options:
  -v, --verbose
  --help         Show this message and exit.

Commands:
  resources  Resource management (set $FABRIC_ORCHESTRATOR_HOST to the...
  slices     Slice management (set $FABRIC_ORCHESTRATOR_HOST to the...
  slivers    Sliver management (set $FABRIC_ORCHESTRATOR_HOST to the...
  tokens     Token management (set $FABRIC_CREDMGR_HOST to the Credential...Token Management CommandsList of the token commands supported can be found below:(usercli) $ fabric-cli tokens
Usage: fabric-cli tokens [OPTIONS] COMMAND [ARGS]...

  Token management (set $FABRIC_CREDMGR_HOST to the Credential Manager
  Server)

Options:
  --help  Show this message and exit.

Commands:
  issue    Issue token with projectname and scope
  refresh  Refresh token
  revoke   Revoke tokenResource Management CommandsList of the resource commands supported can be found below:$ fabric-cli resources
Usage: fabric-cli resources [OPTIONS] COMMAND [ARGS]...

  Query Resources (set $FABRIC_ORCHESTRATOR_HOST to the Control Framework
  Orchestrator)

Options:
  --help  Show this message and exit.

Commands:
  query  issue token with projectname and scopeSlice Management Commands(usercli) $ fabric-cli slices
Usage: fabric-cli slices [OPTIONS] COMMAND [ARGS]...

  Slice management (set $FABRIC_ORCHESTRATOR_HOST to the Orchestrator)

Options:
  --help  Show this message and exit.

Commands:
  create  Create user slice
  delete  Delete user slice
  query   Query user slice(s)Sliver Management Commands(usercli) $ fabric-cli slivers
Usage: fabric-cli slivers [OPTIONS] COMMAND [ARGS]...

  Sliver management (set $FABRIC_ORCHESTRATOR_HOST to the Orchestrator)

Options:
  --help  Show this message and exit.

Commands:
  query  Query user slice sliver(s)