Manage Infisical service tokens
service-token
command allows you to manage service tokens for a given Infisical project.
With this command, you can create, view, and delete service tokens.
service-token create
--scope
<environment slug>:<path>
.
Here, environment slug
refers to the slug name of the environment, and path
indicates the folder path where your secrets are stored.For specifying multiple scopes, you can use multiple —scope flags.path
can be a Glob pattern--projectId
.infisical.json
generated by infisical init
command.--name
Service token generated via CLI
--expiry-seconds
1 day
--access-level
read
and or write
--token-only
false