- Notifications
You must be signed in to change notification settings - Fork1
Platformer CLI - Manage, create and deploy Kubernetes resources on Platformer Console from your command line
License
platformercloud/cli
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Command Line Interface for thePlatformer Console
The Platformer CLI can be installed via NPM (Node Package Manager) or through a standalone binary.
RequiresNode v14+ and NPM. (Installing Node will install NPM as well)
Run
npm install -g platformer-cliThe Platformer CLI can now be accessed with the
platformercommand.
Check theReleases section and download the relavent binary based on your Operating System.
Once installed, the Platformer CLI will be accessible with the
platformercommand.
$npm install -g platformer-cli$platformer COMMANDrunning command...$platformer (-v|--version|version)platformer-cli/0.1.10 linux-x64 node-v14.15.1$platformer --help [COMMAND]USAGE $ platformer COMMAND...
platformer apply FILEPATHplatformer cluster:connect [CLUSTER]platformer cluster:listplatformer context:add NAMEplatformer context:listplatformer context:remove NAMEplatformer help [COMMAND]platformer importplatformer loginplatformer logoutplatformer select:cxt [NAME]platformer select:env [ENVIRONMENT]platformer select:org [ORGANIZATION]platformer select:proj [PROJECT]
Create resources in Platformer Console using a Kubernetes YAMLs
USAGE $ platformer apply FILEPATHARGUMENTS FILEPATH Path to YAML fileOPTIONS -A, --all Log out of all contexts -E, --environment=environment [default: do-development] Environment Name -O, --organization=organization [default: Platformer Developer Portal] Organization Name -P, --project=project [default: Temp Production] Project Name -T, --target-ns=target-ns Target namespace -h, --help show CLI help --saveSee code:src/commands/apply.ts
Connect a Kubernetes Cluster (in your kubeconfig) to the Platformer Console
USAGE $ platformer cluster:connect [CLUSTER]ARGUMENTS CLUSTER (OPTIONAL) Name of the Kubernetes Cluster to connect to the Platformer Console (must be a cluster name in your kubeconfig). If not provided, the CLI will enter an interactive mode to select a Cluster.OPTIONS -O, --organization=organization [default: Platformer Developer Portal] Organization Name -P, --project=project [default: Temp Production] Project Name -h, --help show CLI helpEXAMPLES $ platformer connect:cluster $ platformer connect:cluster <cluster-name as listed in your kubeconfig> $ platformer connect:cluster --organization <organization> --project <project> # override context defaultsSee code:src/commands/cluster/connect.ts
Lists all connected Kubernetes Clusters in a Project
USAGE $ platformer cluster:listOPTIONS -O, --organization=organization [default: Platformer Developer Portal] Organization Name -P, --project=project [default: Temp Production] Project Name -h, --help show CLI help -x, --extended show extra columns --columns=columns only show provided columns (comma-seperated) --csv output is csv format --filter=filter filter property by partial string matching, ex: name=default --no-header hide table header from output --no-truncate do not truncate output to fit screenSee code:src/commands/cluster/list.ts
Add a new context
USAGE $ platformer context:add NAMEARGUMENTS NAME Context name (must be unique)OPTIONS -h, --help show CLI helpSee code:src/commands/context/add.ts
Lists all configured contexts
USAGE $ platformer context:listOPTIONS -h, --help show CLI help -x, --extended show extra columns --columns=columns only show provided columns (comma-seperated) --csv output is csv format --filter=filter filter property by partial string matching, ex: name=default --no-header hide table header from output --no-truncate do not truncate output to fit screenSee code:src/commands/context/list.ts
Remove a context
USAGE $ platformer context:remove NAMEARGUMENTS NAME Context name to removeOPTIONS -h, --help show CLI helpSee code:src/commands/context/remove.ts
display help for platformer
USAGE $ platformer help [COMMAND]ARGUMENTS COMMAND command to show help forOPTIONS --all see all commands in CLISee code:@oclif/plugin-help
Import resources from existing namespace in a Kubernetes Cluster
USAGE $ platformer importOPTIONS -A, --all Log out of all contexts -C, --cluster=cluster (required) Cluster Name -E, --environment=environment [default: do-development] Environment Name -N, --namespace=namespace (required) Namspace -O, --organization=organization [default: Platformer Developer Portal] Organization Name -P, --project=project [default: Temp Production] Project Name -T, --target-ns=target-ns Target namespace -h, --help show CLI help --saveSee code:src/commands/import.ts
Log in to the CLI with your Platformer Account (logs into the current context)
USAGE $ platformer loginSee code:src/commands/login.ts
Log out of the CLI (from the current context)
USAGE $ platformer logoutOPTIONS -A, --all Log out of all contexts -h, --help show CLI help --context=default|devx|devc|devx2 [default: devx2] Name of a specific context to log out from (defaults to current context)See code:src/commands/logout.ts
Select a context
USAGE $ platformer select:cxt [NAME]ARGUMENTS NAME (OPTIONAL) Context name. If not provided, the CLI will prompt an interactive selectionOPTIONS -h, --help show CLI helpALIASES $ platformer select:context $ platformer select:ctxSee code:src/commands/select/ctx.ts
Select a default Environment for your current context.
USAGE $ platformer select:env [ENVIRONMENT]ARGUMENTS ENVIRONMENT (OPTIONAL) Name of the Environment to set in the current context. If not provided, the CLI will open an interactive prompt to select an Environment.OPTIONS -O, --organization=organization [default: Platformer Developer Portal] Organization Name -P, --project=project [default: Temp Production] Project Name -h, --help show CLI helpALIASES $ platformer select:environment $ platformer select:envEXAMPLES $ platformer select:environment # interactive select $ platformer select:env <environment-name>See code:src/commands/select/env.ts
Select a default Organization for your current context.
USAGE $ platformer select:org [ORGANIZATION]ARGUMENTS ORGANIZATION (OPTIONAL) Name of the Organization to set in the current context. If not provided, the CLI will open an interactive prompt to select an Organization.OPTIONS -h, --help show CLI helpALIASES $ platformer select:organization $ platformer select:org $ platformer select:organisationEXAMPLES $ platformer select:org # interactive select $ platformer select:org <organization-name>See code:src/commands/select/org.ts
Select a default Project for your current context. Requires an Organization to be set with select:org or using the --o flag
USAGE $ platformer select:proj [PROJECT]ARGUMENTS PROJECT (OPTIONAL) Name of the Project to set in the current context. If not provided, the CLI will open an interactive prompt to select an Project.OPTIONS -O, --organization=organization [default: Platformer Developer Portal] organization name -h, --help show CLI helpALIASES $ platformer select:project $ platformer select:projEXAMPLES $ platformer select:project # interactive select $ platformer select:project <project-name>See code:src/commands/select/proj.ts
About
Platformer CLI - Manage, create and deploy Kubernetes resources on Platformer Console from your command line
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Contributors5
Uh oh!
There was an error while loading.Please reload this page.